[UPMLocalSettings] Remove the old settings migration pref

The UPM migration for the syncing users is done.
The migration pref was being written to, but not used for re-enrollment,
so it's no longer useful.

OBSOLETE_HISTOGRAMS[PasswordManager.MigratedSettingsUPMAndroid]= The
histogram is no longer needed because the UPM settings migration
strategy has changed.

Bug: 1486451
Change-Id: I17954d5794de2f5f42c17059d90b9f12993c6972
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4887476
Commit-Queue: Ivana Žužić <[email protected]>
Reviewed-by: Vasilii Sukhanov <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1203212}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 3253e27..0825338 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -949,6 +949,13 @@
 inline constexpr char kPrivacySandboxManuallyControlled[] =
     "privacy_sandbox.manually_controlled";
 
+// Deprecated 09/2023.
+// Boolean value indicating whether the regular prefs were migrated to UPM
+// settings for syncing users.
+#if BUILDFLAG(IS_ANDROID)
+const char kSettingsMigratedToUPM[] = "profile.settings_migrated_to_upm";
+#endif
+
 // Register local state used only for migration (clearing or moving to a new
 // key).
 void RegisterLocalStatePrefsForMigration(PrefRegistrySimple* registry) {
@@ -1330,6 +1337,9 @@
   registry->RegisterBooleanPref(kSyncInitialSyncFeatureSetupCompleteOnAsh,
                                 false);
 #endif
+#if BUILDFLAG(IS_ANDROID)
+  registry->RegisterBooleanPref(kSettingsMigratedToUPM, false);
+#endif
 }
 
 }  // namespace
@@ -2500,6 +2510,9 @@
 #if BUILDFLAG(IS_CHROMEOS_ASH)
   profile_prefs->ClearPref(kSyncInitialSyncFeatureSetupCompleteOnAsh);
 #endif
+#if BUILDFLAG(IS_ANDROID)
+  profile_prefs->ClearPref(kSettingsMigratedToUPM);
+#endif
 
   // Please don't delete the following line. It is used by PRESUBMIT.py.
   // END_MIGRATE_OBSOLETE_PROFILE_PREFS