Skip to content

Commit

Permalink
Merge pull request #2322 from /issues/4202-0.65.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.65.x
  • Loading branch information
bsclifton authored May 8, 2019
2 parents 6ab929b + 417e1c7 commit 230e51a
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 230e51a

Please sign in to comment.