[Mac][Passwords] Remove unused Recovery pref
The recovery pref isn't used anymore. Therefore, deprecate it and remove
the util to record.
Bug: 791541
Change-Id: Icec2a1205dcfc1ecc916d053fe424235d50193ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3014416
Reviewed-by: Vasilii Sukhanov <[email protected]>
Commit-Queue: Friedrich [CET] <[email protected]>
Cr-Commit-Position: refs/heads/master@{#900007}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 0a92105..157e434a 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -616,6 +616,11 @@
const char kHintsFetcherTopHostBlocklistMinimumEngagementScore[] =
"optimization_guide.hintsfetcher.top_host_blacklist_min_engagement_score";
+// Deprecated 07/2021.
+#if defined(OS_MAC)
+const char kPasswordRecovery[] = "password_manager.password_recovery";
+#endif
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -780,6 +785,10 @@
registry->RegisterDoublePref(
kHintsFetcherTopHostBlocklistMinimumEngagementScore, 0,
PrefRegistry::LOSSY_PREF);
+
+#if defined(OS_MAC)
+ registry->RegisterTimePref(kPasswordRecovery, base::Time());
+#endif
}
} // namespace
@@ -1544,6 +1553,11 @@
profile_prefs->ClearPref(kHintsFetcherTopHostBlocklistMinimumEngagementScore);
profile_prefs->ClearPref(kTimeHintsFetcherTopHostBlocklistLastInitialized);
+ // Added 07/2021
+#if defined(OS_MAC)
+ profile_prefs->ClearPref(kPasswordRecovery);
+#endif
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS
}