Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: chrome/browser/notifications/

Issue 11819048: Implement message center on Windows (Closed) Base URL:
Patch Set: remove Singleton references, merge Delegate/Observer, style cleanup. 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/
diff --git a/chrome/browser/notifications/ b/chrome/browser/notifications/
index fb1a6c934b76f0f7b42c020c6e821ea594d1808b..9ef6ee423641fbec96c78a856bcd942a12c78e4a 100644
--- a/chrome/browser/notifications/
+++ b/chrome/browser/notifications/
@@ -12,11 +12,16 @@
#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"
message_center::MessageCenter* message_center)
: message_center_(message_center) {
+ // On Windows, the notification manager owns the tray icon and views. Other
+ // platforms have global ownership and Create will return NULL.
+ tray_.reset(ui::MessageCenterTrayDelegate::CreateForPlatform());
MessageCenterNotificationManager::~MessageCenterNotificationManager() {

Powered by Google App Engine
This is Rietveld 408576698