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 to 0.67.119

Fixes brave/brave-browser#5531
  • Loading branch information
tmancey committed Aug 4, 2019
1 parent 1db3a40 commit c430c07
Show file tree
Hide file tree
Showing 8 changed files with 137 additions and 184 deletions.
9 changes: 3 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,9 @@ 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->RegisterBooleanPref(prefs::kHasRemovedOnboarding, false);
registry->RegisterUint64Pref(prefs::kOnboardingTimestamp, 0);
}

} // namespace brave_ads

0 comments on commit c430c07

Please sign in to comment.