Skip to content

Commit

Permalink
Fix "Brave Ads has arrived!" notification should be shown on Linux af…
Browse files Browse the repository at this point in the history
…ter upgrade from 0.62.x
  • Loading branch information
tmancey committed Apr 23, 2019
1 parent a8680e6 commit eaff927
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 eaff927

Please sign in to comment.