From d039b5dbae029fa6626492d29c107bdf7ddccad3 Mon Sep 17 00:00:00 2001 From: deeppandya Date: Wed, 27 Nov 2024 16:31:52 -0500 Subject: [PATCH] Clear kSafetynetStatus pref --- chromium_src/chrome/browser/prefs/browser_prefs.cc | 5 +++++ .../brave_referrals/browser/brave_referrals_service.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/chromium_src/chrome/browser/prefs/browser_prefs.cc b/chromium_src/chrome/browser/prefs/browser_prefs.cc index 421e8575b37b..64f1859ff61a 100644 --- a/chromium_src/chrome/browser/prefs/browser_prefs.cc +++ b/chromium_src/chrome/browser/prefs/browser_prefs.cc @@ -188,6 +188,11 @@ void MigrateObsoleteProfilePrefs(PrefService* profile_prefs, // Added 2024-10 brave_adaptive_captcha::MigrateObsoleteProfilePrefs(profile_prefs); +#if BUILDFLAG(IS_ANDROID) + // Added 27/11/2024: https://github.com/brave/brave-core/pull/26719 + profile_prefs->ClearPref(kSafetynetStatus); +#endif // BUILDFLAG(IS_ANDROID) + // END_MIGRATE_OBSOLETE_PROFILE_PREFS } diff --git a/components/brave_referrals/browser/brave_referrals_service.cc b/components/brave_referrals/browser/brave_referrals_service.cc index 611649f867ec..b4513579fa17 100644 --- a/components/brave_referrals/browser/brave_referrals_service.cc +++ b/components/brave_referrals/browser/brave_referrals_service.cc @@ -591,6 +591,7 @@ void RegisterPrefsForBraveReferralsService(PrefRegistrySimple* registry) { registry->RegisterIntegerPref(kReferralAttemptCount, 0); #if BUILDFLAG(IS_ANDROID) registry->RegisterTimePref(kReferralAndroidFirstRunTimestamp, base::Time()); + registry->RegisterStringPref(kSafetynetStatus, std::string()); #endif }