Deprecate TrackingProtection ONboarding Request prefs.
Bug: 344561246
Change-Id: Ia5e5ebf22694cf130269b839aaf60ef7cd521ebe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5593237
Reviewed-by: Dominic Battre <[email protected]>
Commit-Queue: Abe Boujane <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1309998}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index d226eac..172360ce 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1106,6 +1106,12 @@
inline constexpr char kReverseAutologinRejectedEmailList[] =
"reverse_autologin.rejected_email_list";
+// Deprecated 06/2024.
+inline constexpr char kTrackingProtectionOnboardingNoticeFirstRequested[] =
+ "tracking_protection.tracking_protection_onboarding_notice_first_requested";
+inline constexpr char kTrackingProtectionOnboardingNoticeLastRequested[] =
+ "tracking_protection.tracking_protection_onboarding_notice_last_requested";
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1595,6 +1601,12 @@
// Deprecated 05/2024.
registry->RegisterBooleanPref(kAutologinEnabled, true);
registry->RegisterListPref(kReverseAutologinRejectedEmailList);
+
+ // Deprecated 06/2024.
+ registry->RegisterTimePref(kTrackingProtectionOnboardingNoticeFirstRequested,
+ base::Time());
+ registry->RegisterTimePref(kTrackingProtectionOnboardingNoticeLastRequested,
+ base::Time());
}
void ClearSyncRequestedPrefAndMaybeMigrate(PrefService* profile_prefs) {
@@ -2973,6 +2985,10 @@
profile_prefs->ClearPref(kAutologinEnabled);
profile_prefs->ClearPref(kReverseAutologinRejectedEmailList);
+ // Added 06/2024.
+ profile_prefs->ClearPref(kTrackingProtectionOnboardingNoticeFirstRequested);
+ profile_prefs->ClearPref(kTrackingProtectionOnboardingNoticeLastRequested);
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS