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

Unified Diff: chrome/browser/browser_process_impl.h

Issue 11958025: Start delegating notifications to MessageCenter on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix androif build Created 7 years, 11 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/browser_process_impl.h
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h
index 393c25e62b7761f533e4bd4852f1b4f885bc02b4..5cb30b437b9641f53bd1415a94009506585d238b 100644
--- a/chrome/browser/browser_process_impl.h
+++ b/chrome/browser/browser_process_impl.h
@@ -85,6 +85,7 @@ class BrowserProcessImpl : public BrowserProcess,
virtual extensions::EventRouterForwarder*
extension_event_router_forwarder() OVERRIDE;
virtual NotificationUIManager* notification_ui_manager() OVERRIDE;
+ virtual message_center::MessageCenter* message_center() OVERRIDE;
virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE;
virtual policy::PolicyService* policy_service() OVERRIDE;
virtual IconManager* icon_manager() OVERRIDE;
@@ -141,6 +142,7 @@ class BrowserProcessImpl : public BrowserProcess,
void CreateIconManager();
void CreateIntranetRedirectDetector();
void CreateNotificationUIManager();
+ void CreateMessageCenter();
void CreateStatusTrayManager();
void CreatePrintPreviewDialogController();
void CreateBackgroundPrintingManager();
@@ -206,6 +208,12 @@ class BrowserProcessImpl : public BrowserProcess,
bool created_notification_ui_manager_;
scoped_ptr<NotificationUIManager> notification_ui_manager_;
+#if defined(ENABLE_MESSAGE_CENTER)
+ // MessageCenter keeps currently displayed UI notifications.
+ bool created_message_center_;
+ scoped_ptr<message_center::MessageCenter> message_center_;
+#endif
+
#if defined(ENABLE_AUTOMATION)
scoped_ptr<AutomationProviderList> automation_provider_list_;
#endif

Powered by Google App Engine
This is Rietveld 408576698