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

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: Rebase on master @fa1d2262 and rearrange dependencies. 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..8c02acfc9ad4d47884832bc2527971423f52ec92 100644
--- a/chrome/browser/notifications/notification_ui_manager.cc
+++ b/chrome/browser/notifications/notification_ui_manager.cc
@@ -10,10 +10,14 @@
#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
bool NotificationUIManager::DelegatesToMessageCenter() {
+ // TODO(dewittj): remove this line when MessageCenterNotificationManager
+ // works.
+ return false;
#if defined(ENABLE_MESSAGE_CENTER)
return CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableRichNotifications);
@@ -26,8 +30,10 @@ bool NotificationUIManager::DelegatesToMessageCenter() {
// static
NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) {
#if defined(ENABLE_MESSAGE_CENTER)
- if (DelegatesToMessageCenter())
+ if (DelegatesToMessageCenter()) {
+ chrome::GetMessageCenterTray();
return new MessageCenterNotificationManager();
+ }
#endif
BalloonNotificationUIManager* balloon_manager =
new BalloonNotificationUIManager(local_state);

Powered by Google App Engine
This is Rietveld 408576698