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

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

Issue 8539038: Add ChromeBrowserMainExtraParts for non main parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplify CL. Created 9 years, 1 month 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/desktop_notification_service_factory.cc
diff --git a/chrome/browser/notifications/desktop_notification_service_factory.cc b/chrome/browser/notifications/desktop_notification_service_factory.cc
index f4402ab4eeacf2d2713774b4541b615d09e28a5e..ec8543ac807805ae1693fcaacf69f5067e8b7a69 100644
--- a/chrome/browser/notifications/desktop_notification_service_factory.cc
+++ b/chrome/browser/notifications/desktop_notification_service_factory.cc
@@ -35,8 +35,9 @@ DesktopNotificationServiceFactory::~DesktopNotificationServiceFactory() {
ProfileKeyedService* DesktopNotificationServiceFactory::BuildServiceInstanceFor(
Profile* profile) const {
- DesktopNotificationService* service =
- new DesktopNotificationService(profile, NULL);
+ DesktopNotificationService* service = new DesktopNotificationService(profile,
+ g_browser_process->notification_ui_manager());
+
return service;
}

Powered by Google App Engine
This is Rietveld 408576698