Skip to content

Commit

Permalink
Merge pull request #2323 from /issues/4202-0.64.x
Browse files Browse the repository at this point in the history
"Brave Ads has arrived!" notification should be shown on Linux after upgrade from 0.62.x - 0.64.x
  • Loading branch information
bsclifton committed May 8, 2019
2 parents 23587ad + 6ed0b04 commit 6198a62
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions components/brave_ads/browser/ads_service_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -427,8 +427,13 @@ void AdsServiceImpl::Start() {
}

void AdsServiceImpl::MaybeShowFirstLaunchNotification() {
auto ads_enabled = profile_->GetPrefs()->GetBoolean(
prefs::kBraveAdsEnabled);
#if defined(OS_LINUX)
auto ads_enabled = true;
#else
auto ads_enabled =
profile_->GetPrefs()->GetBoolean(prefs::kBraveAdsEnabled);
#endif

auto prefs_migrated_from_62 = profile_->GetPrefs()->GetBoolean(
prefs::kBraveAdsPrefsMigratedFrom62);

Expand Down

0 comments on commit 6198a62

Please sign in to comment.