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);
 }