Index: chrome/browser/notifications/message_center_notification_manager.cc |
diff --git a/chrome/browser/notifications/message_center_notification_manager.cc b/chrome/browser/notifications/message_center_notification_manager.cc |
index c6e3dccb868dbb6859f9c0ce77dcbb7348f31526..44f335258858799a3d1b920826c132bb1bc2104b 100644 |
--- a/chrome/browser/notifications/message_center_notification_manager.cc |
+++ b/chrome/browser/notifications/message_center_notification_manager.cc |
@@ -17,11 +17,18 @@ |
#include "chrome/browser/ui/host_desktop.h" |
#include "chrome/common/extensions/extension_set.h" |
#include "chrome/common/pref_names.h" |
+#include "ui/message_center/message_center_tray.h" |
MessageCenterNotificationManager::MessageCenterNotificationManager( |
message_center::MessageCenter* message_center) |
: message_center_(message_center) { |
message_center_->SetDelegate(this); |
+ |
+#if !defined(OS_CHROMEOS) |
+ // On Windows, the notification manager owns the tray icon and views. Other |
+ // platforms have global ownership and Create will return NULL. |
+ tray_.reset(message_center::CreateMessageCenterTray()); |
+#endif |
} |
MessageCenterNotificationManager::~MessageCenterNotificationManager() { |