commit | 032ff3667f45994e99b7665f185fe100e2f0fcbb | [log] [tgz] |
---|---|---|
author | Alison Gale <[email protected]> | Fri Dec 13 20:22:01 2024 |
committer | Chromium LUCI CQ <[email protected]> | Fri Dec 13 20:22:01 2024 |
tree | 3f59f10bd0d52ff360368a5d03c549f7bccfe945 | |
parent | 9dbfe116963e447f29b38c7738a3e6937c1d781a [diff] [blame] |
Add toast option to dismiss temporarily or permanently The non-actionable toasts will show a 3-dot menu that has an option to dismiss it for now or to stop showing the non-actionable toasts. Additionally a setting is added to control this option. Screenshot: https://screenshot.googleplex.com/5tQ7V6cFMVBvVf2 Bug: 383135477 Change-Id: I87415454038ec8169831a34bedc7a5fbf18bf4df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6090300 Commit-Queue: Alison Gale <[email protected]> Reviewed-by: Lei Zhang <[email protected]> Reviewed-by: Steven Luong <[email protected]> Code-Coverage: [email protected] <[email protected]> Cr-Commit-Position: refs/heads/main@{#1396134}
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc index bff0f19..8424b56 100644 --- a/chrome/browser/prefs/browser_prefs.cc +++ b/chrome/browser/prefs/browser_prefs.cc
@@ -1989,6 +1989,8 @@ glic::GlicConfiguration::RegisterPrefs(registry); #endif + registry->RegisterIntegerPref(prefs::kToastAlertLevel, 0); + // This is intentionally last. RegisterLocalStatePrefsForMigration(registry); }