Skip to content

Commit

Permalink
Follow up to there is no ads enable alert, ads are enabled by default…
Browse files Browse the repository at this point in the history
… when upgrading build from 0.62.51

Fixes brave/brave-browser#5531
Requires #3059
  • Loading branch information
tmancey committed Aug 5, 2019
1 parent 8e9ed4b commit d1ce246
Show file tree
Hide file tree
Showing 10 changed files with 175 additions and 187 deletions.
8 changes: 2 additions & 6 deletions components/brave_ads/browser/ads_service_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ void AdsServiceFactory::RegisterProfilePrefs(

registry->RegisterBooleanPref(prefs::kShouldShowMyFirstAdNotification, true);

registry->RegisterBooleanPref(
prefs::kShouldShowFirstLaunchNotification, true);
registry->RegisterBooleanPref(
prefs::kHasRemovedFirstLaunchNotification, false);
registry->RegisterUint64Pref(
prefs::kLastShownFirstLaunchNotificationTimestamp, 0);
registry->RegisterBooleanPref(prefs::kShouldShowOnboarding, true);
registry->RegisterUint64Pref(prefs::kOnboardingTimestamp, 0);
}

} // namespace brave_ads

0 comments on commit d1ce246

Please sign in to comment.