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

Unified Diff: ui/message_center/message_center.cc

Issue 11958025: Start delegating notifications to MessageCenter on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix androif build 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: ui/message_center/message_center.cc
diff --git a/ui/message_center/message_center.cc b/ui/message_center/message_center.cc
index 394dab9ff3739015b88a7b4474d22aa86a41342a..e1a8d5ae72f2f69e8f1ab1297ad91cd125e4c74e 100644
--- a/ui/message_center/message_center.cc
+++ b/ui/message_center/message_center.cc
@@ -11,10 +11,9 @@
namespace message_center {
//------------------------------------------------------------------------------
-
-// static
-MessageCenter* MessageCenter::GetInstance() {
- return Singleton<MessageCenter>::get();
+MessageCenter::MessageCenter()
+ : delegate_(NULL) {
+ notification_list_.reset(new NotificationList(this));
}
MessageCenter::~MessageCenter() {
@@ -172,11 +171,6 @@ void MessageCenter::Delegate::OnButtonClicked(const std::string& id,
//------------------------------------------------------------------------------
// Private.
-MessageCenter::MessageCenter()
- : delegate_(NULL) {
- notification_list_.reset(new NotificationList(this));
-}
-
void MessageCenter::NotifyMessageCenterChanged(bool new_notification) {
FOR_EACH_OBSERVER(Observer,
observer_list_,

Powered by Google App Engine
This is Rietveld 408576698