Skip to content

Commit

Permalink
Ads not enabled by default when joining Rewards from panel 0.64.x
Browse files Browse the repository at this point in the history
Fix Ads enabled when joining Rewards via panel
  • Loading branch information
tmancey committed Apr 19, 2019
1 parent 8e3c3dc commit 5260eb4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/brave_ads/browser/ads_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,10 @@ bool AdsServiceImpl::IsAdsEnabled() const {
}

void AdsServiceImpl::SetAdsEnabled(const bool is_enabled) {
if (is_enabled) {
profile_->GetPrefs()->SetBoolean(
prefs::kBraveAdsPrefsMigratedFrom62, false);
}
profile_->GetPrefs()->SetBoolean(prefs::kBraveAdsEnabled, is_enabled);
}

Expand Down

0 comments on commit 5260eb4

Please sign in to comment.