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

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

Issue 11819048: Implement message center on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address petewil & stevenjb comments. Move MessageCenterTrayDelegate to its own class. 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/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 fb1a6c934b76f0f7b42c020c6e821ea594d1808b..2ad5982a533eaf788e539b5b7e72fd06a0699e3d 100644
--- a/chrome/browser/notifications/message_center_notification_manager.cc
+++ b/chrome/browser/notifications/message_center_notification_manager.cc
@@ -12,11 +12,18 @@
#include "chrome/browser/profiles/profile.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());
miket_OOO 2013/01/25 17:14:48 I don't have all the context I need to know for su
dewittj 2013/01/25 19:38:46 Done.
+#endif
}
MessageCenterNotificationManager::~MessageCenterNotificationManager() {

Powered by Google App Engine
This is Rietveld 408576698