Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4413)

Unified Diff: chrome/browser/notifications/notification_system_observer.cc

Issue 2776933006: CrOS: Do not allow notifications to be added during shutdown. (Closed)
Patch Set: Trybots. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_system_observer.cc
diff --git a/chrome/browser/notifications/notification_system_observer.cc b/chrome/browser/notifications/notification_system_observer.cc
index 3285cdd0e2aadcc2561eab87f65770b9d188240d..b72bd80ca91151a1177043a61c461ff4b1d8d761 100644
--- a/chrome/browser/notifications/notification_system_observer.cc
+++ b/chrome/browser/notifications/notification_system_observer.cc
@@ -32,7 +32,7 @@ void NotificationSystemObserver::Observe(
const content::NotificationSource& source,
const content::NotificationDetails& details) {
if (type == chrome::NOTIFICATION_APP_TERMINATING) {
- ui_manager_->CancelAll();
+ ui_manager_->StartShutdown();
} else if (type == extensions::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED) {
if (!content::Source<Profile>(source)->IsOffTheRecord()) {
extensions::UnloadedExtensionInfo* extension_info =

Powered by Google App Engine
This is Rietveld 408576698