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

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 768373002: Remove DesktopNotificationService::AddIconNotification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove comment Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/notifications/desktop_notification_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 338a0768d9488af065e6f15dfb0e417a06a48ea9..22ff2b0759819010ffdebe6a4cdba207757378fa 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -168,16 +168,15 @@ void NotificationImageReady(
// Origin URL must be different from the crashed extension to avoid the
// conflict. NotificationSystemObserver will cancel all notifications from
// the same origin when NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED.
- // TODO(mukai, dewittj): remove this and switch to message center
- // notifications.
- DesktopNotificationService::AddIconNotification(
- GURL("chrome://extension-crash"), // Origin URL.
- base::string16(), // Title of notification.
- message,
- notification_icon,
- base::UTF8ToUTF16(delegate->id()), // Replace ID.
- delegate.get(),
- profile);
+ Notification notification(GURL("chrome://extension-crash"),
+ base::string16(),
+ message,
+ notification_icon,
+ base::string16(),
+ base::UTF8ToUTF16(delegate->id()),
+ delegate.get());
+
+ g_browser_process->notification_ui_manager()->Add(notification, profile);
}
#endif
« no previous file with comments | « no previous file | chrome/browser/notifications/desktop_notification_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698