From 417e1c77ae758535a2451f11c274b04f4839be36 Mon Sep 17 00:00:00 2001 From: Terry Mancey Date: Tue, 23 Apr 2019 20:33:42 +0100 Subject: [PATCH] Fix "Brave Ads has arrived!" notification should be shown on Linux after upgrade from 0.62.x --- components/brave_ads/browser/ads_service_impl.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/components/brave_ads/browser/ads_service_impl.cc b/components/brave_ads/browser/ads_service_impl.cc index fd680223372a..338d872bb203 100644 --- a/components/brave_ads/browser/ads_service_impl.cc +++ b/components/brave_ads/browser/ads_service_impl.cc @@ -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);