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

Issue 2064363002: Refactor MessageCenterSettingsController. (Closed)

Created:
4 years, 6 months ago by hirono
Modified:
4 years, 6 months ago
Reviewers:
dewittj
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, tapted, yusukes+watch_chromium.org, Peter Beverloo, tfarina, mlamouri+watch-notifications_chromium.org, lhchavez+watch_chromium.org, hidehiko+watch_chromium.org, Matt Giuca
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor MessageCenterSettingsController. The CL does refactoring for MessageCenterSettingsController to get rid of #ifdef macros for CHROME_OS. 1. Define NotifierSource abstract class that provides a list of specific type of notifiers. 2. Define subclass for each notifier type (APPLICATION, WEB_PAGE, SYSTEM_COMPONENT, ARC_APPLICATION). 3. Let MessageCenterSettingsController delegate to each source. BUG=620184 TEST=None Committed: https://crrev.com/d36c21d3e9698566fac911dde6473d1023009caa Cr-Commit-Position: refs/heads/master@{#400867}

Patch Set 1 #

Patch Set 2 : Remove unrelated files from the patch. #

Total comments: 10

Patch Set 3 : Rebase onto associated CL. #

Total comments: 1

Patch Set 4 : Addressed comments #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Total comments: 4

Patch Set 10 : Rebase. #

Patch Set 11 : Fix misspell. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+596 lines, -325 lines) Patch
A chrome/browser/notifications/application_notifier_source.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/notifications/application_notifier_source.cc View 1 2 3 4 5 6 7 8 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/notifications/arc_application_notifier_source_chromeos.h View 1 2 3 1 chunk +44 lines, -0 lines 0 comments Download
A + chrome/browser/notifications/arc_application_notifier_source_chromeos.cc View 1 2 3 3 chunks +22 lines, -9 lines 0 comments Download
M chrome/browser/notifications/arc_notifier_manager.cc View 1 1 chunk +0 lines, -56 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.h View 1 2 3 6 chunks +16 lines, -25 lines 0 comments Download
M chrome/browser/notifications/message_center_settings_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 chunks +56 lines, -233 lines 0 comments Download
A chrome/browser/notifications/notifier_source.h View 1 2 3 6 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/notifications/system_component_notifier_source_chromeos.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/notifications/system_component_notifier_source_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/notifications/web_page_notifier_source.h View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/notifications/web_page_notifier_source.cc View 1 2 3 4 5 6 7 8 1 chunk +144 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
hirono
PTAL. This is TODO refactoring from crrev.com/2054043002. The base patch crrev.com/2065493005 is under review. Thank ...
4 years, 6 months ago (2016-06-15 07:03:25 UTC) #2
dewittj
fyi if you set your git branch upstream to the branch with the parent issue, ...
4 years, 6 months ago (2016-06-15 20:46:03 UTC) #3
hirono
Thant's useful! Thank you
4 years, 6 months ago (2016-06-16 03:21:08 UTC) #4
dewittj
https://codereview.chromium.org/2064363002/diff/20001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/2064363002/diff/20001/chrome/browser/notifications/message_center_settings_controller.cc#newcode121 chrome/browser/notifications/message_center_settings_controller.cc:121: class ApplicationNotifiereSource : public NotifierSource, I think this deserves ...
4 years, 6 months ago (2016-06-16 19:45:36 UTC) #5
hirono
Thank you! https://codereview.chromium.org/2064363002/diff/20001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/2064363002/diff/20001/chrome/browser/notifications/message_center_settings_controller.cc#newcode121 chrome/browser/notifications/message_center_settings_controller.cc:121: class ApplicationNotifiereSource : public NotifierSource, On 2016/06/16 ...
4 years, 6 months ago (2016-06-17 04:56:47 UTC) #6
hirono
friendly ping
4 years, 6 months ago (2016-06-20 01:51:51 UTC) #7
dewittj
thank you for doing this! lgtm https://codereview.chromium.org/2064363002/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/2064363002/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc#newcode134 chrome/browser/notifications/message_center_settings_controller.cc:134: // FOr system ...
4 years, 6 months ago (2016-06-20 17:14:22 UTC) #8
hirono
Thank you! https://codereview.chromium.org/2064363002/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/2064363002/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc#newcode134 chrome/browser/notifications/message_center_settings_controller.cc:134: // FOr system components. On 2016/06/20 17:14:22, ...
4 years, 6 months ago (2016-06-21 00:46:02 UTC) #11
hirono
Thank you! https://codereview.chromium.org/2064363002/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc File chrome/browser/notifications/message_center_settings_controller.cc (right): https://codereview.chromium.org/2064363002/diff/160001/chrome/browser/notifications/message_center_settings_controller.cc#newcode134 chrome/browser/notifications/message_center_settings_controller.cc:134: // FOr system components. On 2016/06/20 17:14:22, ...
4 years, 6 months ago (2016-06-21 00:46:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2064363002/200001
4 years, 6 months ago (2016-06-21 00:46:11 UTC) #13
commit-bot: I haz the power
Committed patchset #11 (id:200001)
4 years, 6 months ago (2016-06-21 01:28:57 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-06-21 01:31:35 UTC) #16
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/d36c21d3e9698566fac911dde6473d1023009caa
Cr-Commit-Position: refs/heads/master@{#400867}

Powered by Google App Engine
This is Rietveld 408576698