Deprecate kSyncedLastTimePasswordCheckCompleted priority pref

kSyncedLastTimePasswordCheckCompleted pref is not used anymore. This CL
deprecates it.

Bug: 1506196
Change-Id: I317f632fe4d3263f3a6e17c73ab993307b2e3018
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5159927
Reviewed-by: Vasilii Sukhanov <[email protected]>
Reviewed-by: Marc Treib <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1244036}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 0f30675..b4c21f8 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -947,6 +947,10 @@
     "compose_has_accepted_consent";
 #endif
 
+// Deprecated 01/2024.
+const char kSyncedLastTimePasswordCheckCompleted[] =
+    "profile.credentials_last_password_checkup_time";
+
 // Register local state used only for migration (clearing or moving to a new
 // key).
 void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1328,6 +1332,10 @@
 #if BUILDFLAG(ENABLE_COMPOSE)
   registry->RegisterBooleanPref(kPrefHasAcceptedComposeConsent, false);
 #endif
+
+  // Deprecated 01/2024.
+  registry->RegisterTimePref(kSyncedLastTimePasswordCheckCompleted,
+                             base::Time());
 }
 
 void ClearSyncRequestedPrefAndMaybeMigrate(PrefService* profile_prefs) {
@@ -2547,6 +2555,9 @@
   profile_prefs->ClearPref(kPrefHasAcceptedComposeConsent);
 #endif
 
+  // Added 01/2024.
+  profile_prefs->ClearPref(kSyncedLastTimePasswordCheckCompleted);
+
   // Please don't delete the following line. It is used by PRESUBMIT.py.
   // END_MIGRATE_OBSOLETE_PROFILE_PREFS