[UPMLocalPwd] Clean up the unused migration warning prefs (pt 11)
The prefs stopped being used in crrev.com/c/6239110 so they are
deprecated.
Note: I've followed the guidelines from the README
https://chromium.googlesource.com/chromium/src/+/HEAD/chrome/browser/prefs/README.md#deleting-an-old-pref
The last step would be to clean up prefs older than a year, but there
were no prefs from February 2024 or older left to clean up so I don't
have a follow up step for that.
Bug: 377285449
Change-Id: Ie67b10c2ec7f2d1b6d6335523c8bc64d6067f0f6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6243759
Reviewed-by: Ioana Pandele <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Commit-Queue: Ivana Žužić <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1418078}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index ea871f7..745c2ce 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1092,6 +1092,14 @@
inline constexpr char kUserAgentClientHintsGREASEUpdateEnabled[] =
"policy.user_agent_client_hints_grease_update_enabled";
+#if BUILDFLAG(IS_ANDROID)
+// Deprecated 2/2025.
+inline constexpr char kLocalPasswordsMigrationWarningShownTimestamp[] =
+ "local_passwords_migration_warning_shown_timestamp";
+inline constexpr char kLocalPasswordMigrationWarningShownAtStartup[] =
+ "local_passwords_migration_warning_shown_at_startup";
+#endif // BUILDFLAG(IS_ANDROID)
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1519,6 +1527,14 @@
// Deprecated 01/2025.
registry->RegisterBooleanPref(kUsedPolicyCertificates, false);
#endif // BUILDFLAG(IS_CHROMEOS)
+
+#if BUILDFLAG(IS_ANDROID)
+ // Deprecated 02/2025.
+ registry->RegisterTimePref(kLocalPasswordsMigrationWarningShownTimestamp,
+ base::Time());
+ registry->RegisterBooleanPref(kLocalPasswordMigrationWarningShownAtStartup,
+ false);
+#endif // BUILDFLAG(IS_ANDROID)
}
} // namespace
@@ -2798,6 +2814,12 @@
profile_prefs->ClearPref(kUsedPolicyCertificates);
#endif // BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_ANDROID)
+ // Added 02/2025.
+ profile_prefs->ClearPref(kLocalPasswordsMigrationWarningShownTimestamp);
+ profile_prefs->ClearPref(kLocalPasswordMigrationWarningShownAtStartup, );
+#endif // BUILDFLAG(IS_ANDROID)
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS