| 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);
|
|
|