[CVC Prompt] Deprecate code related to local cards from card unmask flow

We had 2 local card related features that are now deprecated:
1. We used to ask users if they wanted to save their unmasked server cards locally during card unmask. This feature is not supported anymore.
2. There was also an unused code path that allowed local cards to be unmasked via CVC.
Removing all related code to these 2 features.

Bug: 1366584
Change-Id: I2b71b851667e2b5fcea48a13de42d3ba29e74789
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3926077
Reviewed-by: Jared Saul <[email protected]>
Reviewed-by: Avi Drissman <[email protected]>
Reviewed-by: Vinny Persky <[email protected]>
Reviewed-by: Elizabeth Popova <[email protected]>
Commit-Queue: Vishwas Uppoor <[email protected]>
Reviewed-by: Christos Froussios <[email protected]>
Reviewed-by: Mike Dougherty <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1087785}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index cdcfc849..28307f0 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -805,6 +805,10 @@
 const char kAutofillAssistantTriggerScriptsIsFirstTimeUser[] =
     "autofill_assistant.trigger_scripts.is_first_time_user";
 
+// Deprecated 12/2022.
+const char kAutofillWalletImportStorageCheckboxState[] =
+    "autofill.wallet_import_storage_checkbox_state";
+
 // Register local state used only for migration (clearing or moving to a new
 // key).
 void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1068,6 +1072,10 @@
   registry->RegisterBooleanPref(kAutofillAssistantTriggerScriptsEnabled, true);
   registry->RegisterBooleanPref(kAutofillAssistantTriggerScriptsIsFirstTimeUser,
                                 true);
+
+  // Deprecated 12/2022.
+  registry->RegisterBooleanPref(kAutofillWalletImportStorageCheckboxState,
+                                true);
 }
 
 }  // namespace
@@ -2110,6 +2118,9 @@
   profile_prefs->ClearPref(
       reading_list::prefs::kDeprecatedReadingListHasUnseenEntries);
 
+  // Added 12/2022.
+  profile_prefs->ClearPref(kAutofillWalletImportStorageCheckboxState);
+
   // Please don't delete the following line. It is used by PRESUBMIT.py.
   // END_MIGRATE_OBSOLETE_PROFILE_PREFS