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

Issue 11684003: Make MessageCenter a singleton object and build on Windows. (Closed)

Created:
7 years, 12 months ago by dewittj
Modified:
7 years, 11 months ago
Reviewers:
stevenjb, Dmitry Titov, sky
CC:
chromium-reviews, tfarina, sadrul, ben+watch_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Allow easier cross-platform access to MessageCenter by making it a singleton object, and add it to gyp files on Windows. TBR=sky@chromium.org R=stevenjb@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175081

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address reviewer issues, fix broken tests. #

Patch Set 3 : Allow unit tests to pass. #

Patch Set 4 : Use Observer model instead of Host model. #

Total comments: 2

Patch Set 5 : Update comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -48 lines) Patch
M ash/system/web_notification/web_notification_tray.h View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M ash/system/web_notification/web_notification_tray.cc View 1 2 3 5 chunks +7 lines, -6 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 2 3 6 chunks +13 lines, -10 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M ui/message_center/message_center.h View 1 2 3 4 5 chunks +24 lines, -9 lines 0 comments Download
M ui/message_center/message_center.cc View 1 2 3 5 chunks +36 lines, -16 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/views.gyp View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dewittj
This change is to support Dmitry's work on refactoring NotificationUIManager by enabling easy access to ...
7 years, 12 months ago (2012-12-27 19:01:31 UTC) #1
stevenjb
https://codereview.chromium.org/11684003/diff/1/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/11684003/diff/1/chrome/browser/notifications/message_center_notification_manager.cc#newcode15 chrome/browser/notifications/message_center_notification_manager.cc:15: message_center_ = message_center::MessageCenter::GetInstance(); We don't need to seem to ...
7 years, 12 months ago (2012-12-27 19:49:34 UTC) #2
dewittj
https://codereview.chromium.org/11684003/diff/1/chrome/browser/notifications/message_center_notification_manager.cc File chrome/browser/notifications/message_center_notification_manager.cc (right): https://codereview.chromium.org/11684003/diff/1/chrome/browser/notifications/message_center_notification_manager.cc#newcode15 chrome/browser/notifications/message_center_notification_manager.cc:15: message_center_ = message_center::MessageCenter::GetInstance(); On 2012/12/27 19:49:34, stevenjb (chromium) wrote: ...
7 years, 12 months ago (2012-12-27 23:38:50 UTC) #3
stevenjb
https://codereview.chromium.org/11684003/diff/1/ui/message_center/message_center.cc File ui/message_center/message_center.cc (right): https://codereview.chromium.org/11684003/diff/1/ui/message_center/message_center.cc#newcode23 ui/message_center/message_center.cc:23: void MessageCenter::SetHost(Host* host) { On 2012/12/27 23:38:50, dewittj wrote: ...
7 years, 11 months ago (2013-01-02 16:35:02 UTC) #4
dewittj
ObserverList makes more sense, I agree. As far as setting the delegate, I imagine that ...
7 years, 11 months ago (2013-01-03 21:50:33 UTC) #5
stevenjb
Ah, I see, I was getting host_ and delegate_ confused. This is definitely better with ...
7 years, 11 months ago (2013-01-03 22:32:45 UTC) #6
dewittj
https://codereview.chromium.org/11684003/diff/30001/ui/message_center/message_center.h File ui/message_center/message_center.h (right): https://codereview.chromium.org/11684003/diff/30001/ui/message_center/message_center.h#newcode83 ui/message_center/message_center.h:83: // NotificationList. On 2013/01/03 22:32:45, stevenjb (chromium) wrote: > ...
7 years, 11 months ago (2013-01-04 00:18:14 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/11684003/24004
7 years, 11 months ago (2013-01-04 00:53:38 UTC) #8
commit-bot: I haz the power
7 years, 11 months ago (2013-01-04 02:08:34 UTC) #9
Message was sent while issue was closed.
Change committed as 175081

Powered by Google App Engine
This is Rietveld 408576698