[AF] Remove kAutofillAcceptSaveCreditCardPromptState pref
This pref and its associated histograms were added in 2017. We no longer
use its values or the metrics, and having it around just continues to
complicate the code base, so it would be better off cleaned up.
Change-Id: Ic9a925f1cf5958618ffcf884a6dc3f9174f05259
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3138715
Commit-Queue: Jared Saul <[email protected]>
Reviewed-by: Dominic Battré <[email protected]>
Reviewed-by: Mohamed Amir Yosef <[email protected]>
Reviewed-by: Rohit Rao <[email protected]>
Reviewed-by: Siyu An <[email protected]>
Cr-Commit-Position: refs/heads/main@{#919517}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 8faf9b6..8b5601fd 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -662,6 +662,10 @@
const char kNtpSearchSuggestionsOptOut[] = "ntp.search_suggestions_opt_out";
#endif
+// Deprecated 09/2021.
+const char kAutofillAcceptSaveCreditCardPromptState[] =
+ "autofill.accept_save_credit_card_prompt_state";
+
// Register local state used only for migration (clearing or moving to a new
// key).
void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -858,6 +862,8 @@
registry->RegisterDictionaryPref(kNtpSearchSuggestionsImpressions);
registry->RegisterBooleanPref(kNtpSearchSuggestionsOptOut, false);
#endif
+
+ registry->RegisterIntegerPref(kAutofillAcceptSaveCreditCardPromptState, 0);
}
} // namespace
@@ -1684,6 +1690,9 @@
profile_prefs->ClearPref(kNtpSearchSuggestionsOptOut);
#endif
+ // Added 09/2021.
+ profile_prefs->ClearPref(kAutofillAcceptSaveCreditCardPromptState);
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS
}