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

Issue 324583002: The 1st patch to disambiguate message center notifications (Closed)

Created:
6 years, 6 months ago by juyik
Modified:
6 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, sadrul, nkostylev+watch_chromium.org, tfarina, ben+ash_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, kalyank, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, Dmitry Titov
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

The 1st patch to disambiguate message center notifications This is the first half of the work to disambiguate the message center notifications originated from different profiles. It clarifies the semantics of message center as the backend of notification by: 1) Adding comments on the usage of id in the MessageCenter interface. 2) Adding a FindVisibleNotificationById(id) method to message center interface so users can directly find backend notifications without going to the notification ui manager interface. 3) Removing the redundant HasNotification() method since the FindVisibleNotificationById() can server the same purpose. Reviewers: * davemoore: please review chrome/browser/chromeos/* * jamescook: please review ash/* TBR=davemoore@chromium.org BUG=297867 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276756

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address Justin's comments. #

Total comments: 4

Patch Set 3 : Address James' comments. #

Patch Set 4 : pull rebase #

Patch Set 5 : pull rebase #

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -82 lines) Patch
M ash/display/resolution_notification_controller_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/managed/tray_locally_managed_user.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ash/system/chromeos/network/network_state_notifier_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/system/chromeos/screen_security/screen_tray_item_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ash/system/chromeos/session/tray_session_length_limit.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ash/system/web_notification/web_notification_tray_unittest.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/display/display_preferences_unittest.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl_browsertest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/extension_welcome_notification.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/extension_welcome_notification_unittest.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc View 2 chunks +11 lines, -6 lines 0 comments Download
M ui/message_center/cocoa/tray_view_controller.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/fake_message_center.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/fake_message_center.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ui/message_center/message_center.h View 2 chunks +15 lines, -1 line 0 comments Download
M ui/message_center/message_center_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/message_center_impl.cc View 8 chunks +11 lines, -15 lines 0 comments Download
M ui/message_center/message_center_impl_unittest.cc View 6 chunks +22 lines, -22 lines 0 comments Download
M ui/message_center/notification.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M ui/message_center/notification_list.h View 2 chunks +4 lines, -3 lines 0 comments Download
M ui/message_center/notification_list.cc View 1 2 chunks +7 lines, -4 lines 0 comments Download
M ui/message_center/notification_list_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
juyik
Hi Justin, I will add owners of other dependent code as reviewers after you have ...
6 years, 6 months ago (2014-06-07 18:06:43 UTC) #1
juyik
6 years, 6 months ago (2014-06-07 18:09:07 UTC) #2
dewittj
Please update your commit description to be better formatted for various tools. The "Subject:" field ...
6 years, 6 months ago (2014-06-09 18:38:19 UTC) #3
juyik
On 2014/06/09 18:38:19, dewittj wrote: > Please update your commit description to be better formatted ...
6 years, 6 months ago (2014-06-09 18:51:58 UTC) #4
dewittj
lgtm https://codereview.chromium.org/324583002/diff/1/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc File chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc (right): https://codereview.chromium.org/324583002/diff/1/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc#newcode23 chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc:23: return MessageCenter::Get()->FindVisibleNotificationById(kNotificationId) != prefer to split this into ...
6 years, 6 months ago (2014-06-09 19:59:10 UTC) #5
dewittj
lgtm https://codereview.chromium.org/324583002/diff/1/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc File chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc (right): https://codereview.chromium.org/324583002/diff/1/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc#newcode23 chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc:23: return MessageCenter::Get()->FindVisibleNotificationById(kNotificationId) != prefer to split this into ...
6 years, 6 months ago (2014-06-09 19:59:10 UTC) #6
dewittj
https://codereview.chromium.org/324583002/diff/1/ui/message_center/notification.h File ui/message_center/notification.h (right): https://codereview.chromium.org/324583002/diff/1/ui/message_center/notification.h#newcode67 ui/message_center/notification.h:67: Notification(const std::string& id, const Notification& other); by the way, ...
6 years, 6 months ago (2014-06-09 20:00:30 UTC) #7
juyik
https://codereview.chromium.org/324583002/diff/1/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc File chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc (right): https://codereview.chromium.org/324583002/diff/1/chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc#newcode23 chrome/browser/chromeos/net/network_portal_notification_controller_unittest.cc:23: return MessageCenter::Get()->FindVisibleNotificationById(kNotificationId) != On 2014/06/09 19:59:10, dewittj wrote: > ...
6 years, 6 months ago (2014-06-09 21:28:08 UTC) #8
James Cook
Also, please change the subject to say "message center notifications" or something similar. "Notifications" is ...
6 years, 6 months ago (2014-06-09 22:10:23 UTC) #9
juyik
Done. https://codereview.chromium.org/324583002/diff/20001/ash/display/resolution_notification_controller_unittest.cc File ash/display/resolution_notification_controller_unittest.cc (right): https://codereview.chromium.org/324583002/diff/20001/ash/display/resolution_notification_controller_unittest.cc#newcode127 ash/display/resolution_notification_controller_unittest.cc:127: ResolutionNotificationController::kNotificationId) != NULL; On 2014/06/09 22:10:23, James Cook ...
6 years, 6 months ago (2014-06-09 22:46:41 UTC) #10
James Cook
ash/* LGTM
6 years, 6 months ago (2014-06-09 23:27:21 UTC) #11
juyik
Hi Dave, can you do a owner review of files under chrome/browser/chromeos/*? Thanks.
6 years, 6 months ago (2014-06-10 20:26:08 UTC) #12
dewittj
On 2014/06/10 20:26:08, juyik wrote: > Hi Dave, can you do a owner review of ...
6 years, 6 months ago (2014-06-10 20:26:56 UTC) #13
juyik
The CQ bit was checked by juyik@chromium.org
6 years, 6 months ago (2014-06-11 17:09:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juyik@chromium.org/324583002/40001
6 years, 6 months ago (2014-06-11 17:11:53 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 20:31:01 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 20:35:22 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_rel/builds/26076)
6 years, 6 months ago (2014-06-11 20:35:23 UTC) #18
juyik
The CQ bit was checked by juyik@chromium.org
6 years, 6 months ago (2014-06-12 15:12:21 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/juyik@chromium.org/324583002/100001
6 years, 6 months ago (2014-06-12 15:13:08 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 18:37:48 UTC) #21
Message was sent while issue was closed.
Change committed as 276756

Powered by Google App Engine
This is Rietveld 408576698