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

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

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Now with more tests, and corrected copyright notices. 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/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);

Powered by Google App Engine
This is Rietveld 408576698