[Quiet Notification Permission] Clean up AdaptiveQuietNotificationPermissionUiEnabler
AdaptiveQuietNotificationPermissionUiEnabler is no longer used.
Clean up pref `kQuietNotificationPermissionUiEnablingMethod` at the same
time.
Bug: 1366348
Change-Id: Ic49c44f7afea9cdf6fb0a87cc9d00c6669cdea49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6031254
Reviewed-by: Ravjit Uppal <[email protected]>
Reviewed-by: Colin Blundell <[email protected]>
Commit-Queue: Yifan Luo <[email protected]>
Cr-Commit-Position: refs/heads/main@{#1389322}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index 98f7106..696253e 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1166,6 +1166,9 @@
constexpr char kQuietNotificationPermissionShouldShowPromo[] =
"profile.content_settings.quiet_permission_ui_promo.should_show."
"notifications";
+inline constexpr char kQuietNotificationPermissionUiEnablingMethod[] =
+ "profile.content_settings.enable_quiet_permission_ui_enabling_method."
+ "notifications";
#if BUILDFLAG(IS_CHROMEOS_ASH)
// Deprecated 11/2024
@@ -1663,6 +1666,9 @@
true);
registry->RegisterBooleanPref(kQuietNotificationPermissionShouldShowPromo,
true);
+ registry->RegisterIntegerPref(kQuietNotificationPermissionUiEnablingMethod,
+ 0);
+
#if BUILDFLAG(IS_CHROMEOS_ASH)
// Deprecated 11/2024
registry->RegisterBooleanPref(kHatsPrivacyHubPostLaunchIsSelected, false);
@@ -3030,6 +3036,7 @@
// Added 11/2024
profile_prefs->ClearPref(kQuietNotificationPermissionPromoWasShown);
profile_prefs->ClearPref(kQuietNotificationPermissionShouldShowPromo);
+ profile_prefs->ClearPref(kQuietNotificationPermissionUiEnablingMethod);
#if BUILDFLAG(IS_CHROMEOS_ASH)
// Added 11/2024