Skip to content

Commit

Permalink
Clear kSafetynetStatus pref
Browse files Browse the repository at this point in the history
  • Loading branch information
deeppandya committed Nov 27, 2024
1 parent 47aa035 commit cec20e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions chromium_src/chrome/browser/prefs/browser_prefs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ void MigrateObsoleteProfilePrefs(PrefService* profile_prefs,
// Added 2024-10
brave_adaptive_captcha::MigrateObsoleteProfilePrefs(profile_prefs);

#if BUILDFLAG(IS_ANDROID)
// Added 24/11/2022: https://github.com/brave/brave-core/pull/26719
profile_prefs->ClearPref(kSafetynetStatus);
#endif // BUILDFLAG(IS_ANDROID)

// END_MIGRATE_OBSOLETE_PROFILE_PREFS
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cec20e0

Please sign in to comment.