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

Issue 1334363002: [Eraser] First pass at removing the notification center panel. (Closed)

Created:
5 years, 3 months ago by dewittj
Modified:
5 years, 3 months ago
CC:
chromium-reviews, tfarina, peter+watch_chromium.org, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Eraser] First pass at removing the notification center panel. This just rips out the center and settings component, and does not refactor any of the delegate/interface classes to match the new reality (that is to be done later). Also TODO: removing the entry from the OSX main menu (didn't want to do xib stuff here), so for now the entry is just disabled. R=peter,rsesek,oshima,bauerb TBR=atwilson BUG=530376 Committed: https://crrev.com/751821773c1ac7189331bdf02af7d3d06bd11d00 Cr-Commit-Position: refs/heads/master@{#349425}

Patch Set 1 #

Patch Set 2 : Remove most of the Mac code for notifications #

Patch Set 3 : Also remove prefs. #

Patch Set 4 : Fix win build #

Patch Set 5 : Fix mac build #

Patch Set 6 : Moar fix #

Total comments: 12

Patch Set 7 : rsesek comments + remove resources. #

Patch Set 8 : Put tray_ back since it turns out still to be needed. #

Total comments: 8

Patch Set 9 : peter comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+136 lines, -4203 lines) Patch
M chrome/browser/app_controller_mac.mm View 1 2 3 4 5 6 4 chunks +5 lines, -15 lines 0 comments Download
M chrome/browser/background/background_contents_service_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.h View 1 2 6 chunks +0 lines, -41 lines 0 comments Download
M chrome/browser/notifications/message_center_notification_manager.cc View 1 2 3 4 5 6 5 chunks +1 line, -42 lines 0 comments Download
D chrome/browser/notifications/message_center_notification_manager_win.cc View 1 2 3 1 chunk +0 lines, -52 lines 0 comments Download
M chrome/browser/notifications/message_center_notifications_unittest.cc View 1 2 3 4 5 6 chunks +1 line, -82 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_desktop.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 4 5 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.h View 1 7 2 chunks +0 lines, -44 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/message_center_tray_bridge.mm View 1 2 7 8 4 chunks +2 lines, -145 lines 0 comments Download
D chrome/browser/ui/cocoa/notifications/message_center_tray_bridge_unittest.mm View 1 1 chunk +0 lines, -150 lines 0 comments Download
D chrome/browser/ui/views/message_center/message_center_widget_delegate.h View 1 chunk +0 lines, -106 lines 0 comments Download
D chrome/browser/ui/views/message_center/message_center_widget_delegate.cc View 1 chunk +0 lines, -245 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray.h View 2 chunks +8 lines, -83 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray.cc View 4 chunks +6 lines, -360 lines 0 comments Download
M chrome/browser/ui/views/message_center/web_notification_tray_browsertest.cc View 3 chunks +2 lines, -67 lines 0 comments Download
D chrome/browser/ui/views/message_center/web_notification_tray_win.cc View 1 chunk +0 lines, -63 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 4 5 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 1 chunk +0 lines, -12 lines 0 comments Download
M ui/message_center/BUILD.gn View 1 2 chunks +0 lines, -14 lines 0 comments Download
D ui/message_center/cocoa/settings_controller.h View 1 1 chunk +0 lines, -91 lines 0 comments Download
D ui/message_center/cocoa/settings_controller.mm View 1 1 chunk +0 lines, -343 lines 0 comments Download
D ui/message_center/cocoa/settings_entry_view.h View 1 1 chunk +0 lines, -58 lines 0 comments Download
D ui/message_center/cocoa/settings_entry_view.mm View 1 1 chunk +0 lines, -293 lines 0 comments Download
D ui/message_center/cocoa/status_item_view.h View 1 1 chunk +0 lines, -70 lines 0 comments Download
D ui/message_center/cocoa/status_item_view.mm View 1 1 chunk +0 lines, -194 lines 0 comments Download
D ui/message_center/cocoa/status_item_view_unittest.mm View 1 1 chunk +0 lines, -88 lines 0 comments Download
D ui/message_center/cocoa/tray_controller.h View 1 1 chunk +0 lines, -51 lines 0 comments Download
D ui/message_center/cocoa/tray_controller.mm View 1 1 chunk +0 lines, -113 lines 0 comments Download
D ui/message_center/cocoa/tray_controller_unittest.mm View 1 1 chunk +0 lines, -59 lines 0 comments Download
D ui/message_center/cocoa/tray_view_controller.h View 1 1 chunk +0 lines, -186 lines 0 comments Download
D ui/message_center/cocoa/tray_view_controller.mm View 1 1 chunk +0 lines, -810 lines 0 comments Download
D ui/message_center/cocoa/tray_view_controller_unittest.mm View 1 1 chunk +0 lines, -247 lines 0 comments Download
M ui/message_center/fake_message_center_tray_delegate.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -7 lines 0 comments Download
M ui/message_center/fake_message_center_tray_delegate.cc View 1 2 3 4 5 2 chunks +2 lines, -10 lines 0 comments Download
M ui/message_center/message_center.gyp View 1 2 chunks +0 lines, -14 lines 0 comments Download
M ui/message_center/message_center_tray.cc View 1 2 3 4 5 6 7 8 6 chunks +19 lines, -10 lines 0 comments Download
M ui/message_center/message_center_tray_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +86 lines, -5 lines 0 comments Download
D ui/resources/default_100_percent/mac/notification_dark_tray_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_dark_tray_do_not_disturb_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_dark_tray_do_not_disturb_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_dark_tray_do_not_disturb_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_dark_tray_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_dark_tray_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_attention_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_do_not_disturb_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_do_not_disturb_attention_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_do_not_disturb_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_do_not_disturb_empty_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_100_percent/mac/notification_tray_empty_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_dark_tray_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_dark_tray_do_not_disturb_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_dark_tray_do_not_disturb_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_dark_tray_do_not_disturb_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_dark_tray_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_dark_tray_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_attention_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_do_not_disturb_attention.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_do_not_disturb_attention_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_do_not_disturb_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_do_not_disturb_empty_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_empty.png View 1 2 3 4 5 6 Binary file 0 comments Download
D ui/resources/default_200_percent/mac/notification_tray_empty_pressed.png View 1 2 3 4 5 6 Binary file 0 comments Download
M ui/resources/ui_resources.grd View 1 2 3 4 5 6 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 20 (4 generated)
dewittj
PTAL
5 years, 3 months ago (2015-09-15 21:55:11 UTC) #2
Robert Sesek
Please also wrap the CL description so that it shows up better in `git log`. ...
5 years, 3 months ago (2015-09-15 22:07:08 UTC) #3
dewittj
https://codereview.chromium.org/1334363002/diff/100001/chrome/browser/app_controller_mac.mm File chrome/browser/app_controller_mac.mm (right): https://codereview.chromium.org/1334363002/diff/100001/chrome/browser/app_controller_mac.mm#newcode1002 chrome/browser/app_controller_mac.mm:1002: enable = NO; On 2015/09/15 22:07:08, Robert Sesek wrote: ...
5 years, 3 months ago (2015-09-15 22:52:23 UTC) #4
Robert Sesek
LGTM
5 years, 3 months ago (2015-09-15 23:06:19 UTC) #5
dewittj
looks like tray_ is still required after all for now. I'll look into removing that ...
5 years, 3 months ago (2015-09-15 23:07:36 UTC) #6
Robert Sesek
On 2015/09/15 23:07:36, dewittj wrote: > looks like tray_ is still required after all for ...
5 years, 3 months ago (2015-09-15 23:08:27 UTC) #7
Peter Beverloo
On 2015/09/15 23:08:27, Robert Sesek wrote: > On 2015/09/15 23:07:36, dewittj wrote: > > looks ...
5 years, 3 months ago (2015-09-16 10:34:10 UTC) #8
Peter Beverloo
https://codereview.chromium.org/1334363002/diff/140001/chrome/browser/notifications/notification_ui_manager_desktop.cc File chrome/browser/notifications/notification_ui_manager_desktop.cc (left): https://codereview.chromium.org/1334363002/diff/140001/chrome/browser/notifications/notification_ui_manager_desktop.cc#oldcode16 chrome/browser/notifications/notification_ui_manager_desktop.cc:16: NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) { nit: maybe add a TODO ...
5 years, 3 months ago (2015-09-16 10:34:20 UTC) #9
dewittj
https://codereview.chromium.org/1334363002/diff/140001/chrome/browser/notifications/notification_ui_manager_desktop.cc File chrome/browser/notifications/notification_ui_manager_desktop.cc (left): https://codereview.chromium.org/1334363002/diff/140001/chrome/browser/notifications/notification_ui_manager_desktop.cc#oldcode16 chrome/browser/notifications/notification_ui_manager_desktop.cc:16: NotificationUIManager* NotificationUIManager::Create(PrefService* local_state) { On 2015/09/16 10:34:20, Peter Beverloo ...
5 years, 3 months ago (2015-09-16 18:23:49 UTC) #10
dewittj
Hi additional reviewers, please take a look at the changes in your areas of ownership: ...
5 years, 3 months ago (2015-09-16 18:44:29 UTC) #12
oshima
resources lgtm
5 years, 3 months ago (2015-09-16 19:46:11 UTC) #13
Bernhard Bauer
browser_prefs LGTM
5 years, 3 months ago (2015-09-17 09:09:19 UTC) #14
dewittj
atwilson -> TBR for trivial change to a background test.
5 years, 3 months ago (2015-09-17 16:20:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1334363002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1334363002/160001
5 years, 3 months ago (2015-09-17 16:40:06 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 3 months ago (2015-09-17 16:46:41 UTC) #19
commit-bot: I haz the power
5 years, 3 months ago (2015-09-17 16:47:19 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/751821773c1ac7189331bdf02af7d3d06bd11d00
Cr-Commit-Position: refs/heads/master@{#349425}

Powered by Google App Engine
This is Rietveld 408576698