Index: chrome/browser/notifications/notification_ui_manager.cc |
diff --git a/chrome/browser/notifications/notification_ui_manager.cc b/chrome/browser/notifications/notification_ui_manager.cc |
index b4b7f883662ab18a81f9163e82c857b4c59384a0..56b1279b81463fd36a26ad7ed5c11087db19bb60 100644 |
--- a/chrome/browser/notifications/notification_ui_manager.cc |
+++ b/chrome/browser/notifications/notification_ui_manager.cc |
@@ -10,6 +10,7 @@ |
#if defined(ENABLE_MESSAGE_CENTER) |
#include "chrome/browser/notifications/message_center_notification_manager.h" |
+#include "chrome/browser/ui/message_center/message_center_util.h" |
#endif |
// static |
@@ -26,8 +27,13 @@ bool NotificationUIManager::DelegatesToMessageCenter() { |
// static |
NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) { |
#if defined(ENABLE_MESSAGE_CENTER) |
- if (DelegatesToMessageCenter()) |
- return new MessageCenterNotificationManager(); |
+ if (DelegatesToMessageCenter()) { |
+ // Instantiates the singleton message center tray object. |
+ chrome::GetMessageCenterTray(); |
+ // TODO(dewittj): Enable this when MessageCenterNotificationManager does |
+ // something. |
+ // return new MessageCenterNotificationManager(); |
Pete Williamson
2013/01/23 19:52:16
Generally we don't check in commented out code, ev
dewittj
2013/01/23 22:07:51
This has been fixed in later patchsets.
|
+ } |
#endif |
BalloonNotificationUIManager* balloon_manager = |
new BalloonNotificationUIManager(local_state); |