-
Notifications
You must be signed in to change notification settings - Fork 893
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change maximum Ads per day to 12 for Android and 20 for Desktop
fixes brave/brave-browser#3849
- Loading branch information
Showing
7 changed files
with
162 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#include "brave/components/brave_ads/common/pref_names.h" | ||
|
||
namespace brave_ads { | ||
|
||
namespace prefs { | ||
|
||
const char kBraveAdsEnabled[] = "brave.brave_ads.enabled"; | ||
const char kBraveAdsPerHour[] = "brave.brave_ads.ads_per_hour"; | ||
const char kBraveAdsPerDay[] = "brave.brave_ads.ads_per_day"; | ||
const char kBraveAdsIdleThreshold[] = "brave.brave_ads.idle_threshold"; | ||
const int kBraveAdsPrefsDefaultVersion = 1; | ||
const int kBraveAdsPrefsCurrentVersion = 2; | ||
const char kBraveAdsPrefsVersion[] = "brave.brave_ads.prefs.version"; | ||
|
||
} // namespace prefs | ||
|
||
} // namespace brave_ads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_COMPONENTS_BRAVE_ADS_COMMON_PREF_NAMES_H_ | ||
#define BRAVE_COMPONENTS_BRAVE_ADS_COMMON_PREF_NAMES_H_ | ||
|
||
namespace brave_ads { | ||
|
||
namespace prefs { | ||
|
||
extern const char kBraveAdsEnabled[]; | ||
extern const char kBraveAdsPerHour[]; | ||
extern const char kBraveAdsPerDay[]; | ||
extern const char kBraveAdsIdleThreshold[]; | ||
extern const int kBraveAdsPrefsDefaultVersion; | ||
extern const int kBraveAdsPrefsCurrentVersion; | ||
extern const char kBraveAdsPrefsVersion[]; | ||
|
||
} // namespace prefs | ||
|
||
} // namespace brave_ads | ||
|
||
#endif // BRAVE_COMPONENTS_BRAVE_ADS_COMMON_PREF_NAMES_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters