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

Issue 20066003: Update notification settings to allow for multiprofile situations. (Closed)

Created:
7 years, 5 months ago by dewittj
Modified:
7 years, 4 months ago
Reviewers:
sky, jianli
CC:
chromium-reviews
Visibility:
Public.

Description

Update notification settings to allow for multiprofile situations. This introduces the NotifierGroup concept to ui/message_center, which will correspond directly to Profiles. The user will be able to select a NotifierGroup and then update the notification settings relevant to that group/profile. TBR=sky@chromium.org R=jianli@chromium.org BUG=254511, 256415, 218402 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216186

Patch Set 1 : Updated with newest mock. #

Patch Set 2 : Rebase. #

Patch Set 3 : Fix linux compile #

Patch Set 4 : Fix compile on linux_aura/chromeos #

Patch Set 5 : Add unittest. #

Patch Set 6 : Fix message_center_unittests #

Total comments: 34

Patch Set 7 : Address jianli comments #

Total comments: 1

Patch Set 8 : Leave string alone on Mac until new interface is implemented. #

Patch Set 9 : Rebase. #

Patch Set 10 : Fix chromeos screenshot test. #

Patch Set 11 : And remove unneeded include. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+887 lines, -365 lines) Patch
M chrome/browser/notifications/message_center_notification_manager.h View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_unittest_win.cc View 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.h View 1 2 3 4 5 6 7 8 9 4 chunks +29 lines, -13 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 1 2 3 4 5 6 14 chunks +130 lines, -39 lines 0 comments Download
A chrome/browser/notifications/message_center_settings_controller_unittest.cc View 1 2 3 4 5 6 1 chunk +71 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.cc View 1 2 3 4 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_mac.mm View 1 2 3 4 5 6 2 chunks +11 lines, -1 line 0 comments Download
M chrome/browser/ui/ash/screenshot_taker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M ui/base/strings/ui_strings.grd View 1 2 3 4 5 6 7 1 chunk +10 lines, -3 lines 0 comments Download
M ui/message_center/cocoa/settings_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/message_center/cocoa/settings_controller.mm View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/fake_notifier_settings_provider.h View 1 2 3 4 5 6 2 chunks +9 lines, -1 line 0 comments Download
M ui/message_center/fake_notifier_settings_provider.cc View 1 2 3 4 5 6 1 chunk +23 lines, -1 line 0 comments Download
M ui/message_center/message_center.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/message_center/notifier_settings.h View 1 2 3 4 5 6 2 chunks +44 lines, -0 lines 0 comments Download
M ui/message_center/notifier_settings.cc View 1 2 3 4 1 chunk +9 lines, -2 lines 0 comments Download
A ui/message_center/views/message_center_button_bar.h View 1 2 3 4 5 6 1 chunk +68 lines, -0 lines 0 comments Download
A ui/message_center/views/message_center_button_bar.cc View 1 2 3 4 5 6 1 chunk +210 lines, -0 lines 0 comments Download
M ui/message_center/views/message_center_view.h View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -3 lines 0 comments Download
M ui/message_center/views/message_center_view.cc View 1 2 3 4 5 6 7 8 9 chunks +50 lines, -263 lines 0 comments Download
M ui/message_center/views/notifier_settings_view.h View 1 2 3 4 5 6 4 chunks +19 lines, -1 line 0 comments Download
M ui/message_center/views/notifier_settings_view.cc View 1 2 3 4 5 6 6 chunks +150 lines, -21 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
dewittj
7 years, 4 months ago (2013-08-05 18:34:54 UTC) #1
jianli
https://codereview.chromium.org/20066003/diff/73001/chrome/browser/notifications/message_center_notification_manager.h File chrome/browser/notifications/message_center_notification_manager.h (right): https://codereview.chromium.org/20066003/diff/73001/chrome/browser/notifications/message_center_notification_manager.h#newcode216 chrome/browser/notifications/message_center_notification_manager.h:216: scoped_ptr<message_center::NotifierSettingsProvider> settings_controller_; Should we rename settings_controller_ to settings_provider_? https://codereview.chromium.org/20066003/diff/73001/chrome/browser/notifications/message_center_settings_controller.cc ...
7 years, 4 months ago (2013-08-05 20:48:03 UTC) #2
dewittj
https://codereview.chromium.org/20066003/diff/73001/chrome/browser/notifications/message_center_notification_manager.h File chrome/browser/notifications/message_center_notification_manager.h (right): https://codereview.chromium.org/20066003/diff/73001/chrome/browser/notifications/message_center_notification_manager.h#newcode216 chrome/browser/notifications/message_center_notification_manager.h:216: scoped_ptr<message_center::NotifierSettingsProvider> settings_controller_; On 2013/08/05 20:48:03, jianli wrote: > Should ...
7 years, 4 months ago (2013-08-05 22:42:28 UTC) #3
jianli
https://codereview.chromium.org/20066003/diff/87001/ui/message_center/views/notifier_settings_view.cc File ui/message_center/views/notifier_settings_view.cc (right): https://codereview.chromium.org/20066003/diff/87001/ui/message_center/views/notifier_settings_view.cc#newcode7 ui/message_center/views/notifier_settings_view.cc:7: #include <set> nit: this can be removed now.
7 years, 4 months ago (2013-08-05 23:07:26 UTC) #4
jianli
lgtm
7 years, 4 months ago (2013-08-05 23:07:31 UTC) #5
dewittj
TBR sky=ui/base/strings/ui_strings.grd Since Mac is a TODO for the UI, latest change leaves the string ...
7 years, 4 months ago (2013-08-05 23:38:13 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/20066003/126001
7 years, 4 months ago (2013-08-06 00:01:52 UTC) #7
commit-bot: I haz the power
Failed to apply patch for ui/message_center/views/message_center_view.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 4 months ago (2013-08-06 00:02:12 UTC) #8
sky
Note, I made ui/base/strings OWNERS=*, so you shouldn't need to TBR me in the future. ...
7 years, 4 months ago (2013-08-06 00:04:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/20066003/132001
7 years, 4 months ago (2013-08-06 00:36:38 UTC) #10
commit-bot: I haz the power
Retried try job too often on linux_chromeos for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chromeos&number=142487
7 years, 4 months ago (2013-08-06 02:03:06 UTC) #11
dewittj
Uploaded a new patch which changes screenshot_taker_unittest.cc - TBR sky again.
7 years, 4 months ago (2013-08-06 21:54:54 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/20066003/151001
7 years, 4 months ago (2013-08-06 21:59:41 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) telemetry_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=184334
7 years, 4 months ago (2013-08-07 03:10:16 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dewittj@chromium.org/20066003/151001
7 years, 4 months ago (2013-08-07 14:28:33 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-07 14:29:54 UTC) #16
Message was sent while issue was closed.
Change committed as 216186

Powered by Google App Engine
This is Rietveld 408576698