[B4P][Uno] Register decline of Reauth bubble as opt-out for passwords
This CL records the dismissal of the Reauth bubble upon password save
as an opt-out of password storage in the user settings, which
causes account storage not to be activated when the Uno flag is
enabled.
Additionally, it migrates those users that had declined the Reauth
bubble prior to these changes to opt-out of password storage in the
user settings as well.
Bug: b:314914048, 1509865
Change-Id: I27f6c6141d1981fa168da146d692eee96cc9331d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5094200
Commit-Queue: Amelie Schneider <[email protected]>
Reviewed-by: David Roger <[email protected]>
Reviewed-by: Victor Vianna <[email protected]>
Reviewed-by: Mohamed Amir Yosef <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1236325}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index e6ca2f5..da3656d 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -2661,6 +2661,12 @@
// Added 11/2023.
profile_prefs->ClearPref(kWebAndAppActivityEnabledForShopping);
+#if !BUILDFLAG(IS_ANDROID)
+ // Added 12/2023.
+ password_manager::features_util::MigrateDeclinedSaveOptInToExplicitOptOut(
+ profile_prefs);
+#endif // !BUILDFLAG(IS_ANDROID)
+
// Please don't delete the following line. It is used by PRESUBMIT.py.
// END_MIGRATE_OBSOLETE_PROFILE_PREFS