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

Issue 1814923002: Nuke NotificationUIManager from PlatformNotificationServiceImpl (Closed)

Created:
4 years, 9 months ago by Miguel Garcia
Modified:
4 years, 8 months ago
Reviewers:
Peter Beverloo, sky
CC:
chromium-reviews, Peter Beverloo, mlamouri+watch-notifications_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@profile_manager_load
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Nuke NotificationUIManager from PlatformNotificationServiceImpl A few highlights - Always use one kind of profile id (the stable one) - Always use a single notification id (the persistent one when possible) - The mac implementation injects the NSUSerNotificationService to allow unittests Note that the mac and android files are not renamed. Ideally I would land this and then land a straight forward rename cl. BUG=571056, 596161 Committed: https://crrev.com/23cd2dd719c8e76e17e764100a6eff131c34a418 Cr-Commit-Position: refs/heads/master@{#388776}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase #

Total comments: 24

Patch Set 4 : Fixed tests, android and mac #

Patch Set 5 : Make things work in incognito #

Patch Set 6 : Introduce a notification bridge #

Patch Set 7 : #

Total comments: 54

Patch Set 8 : Review comments + unique_ptr rename #

Total comments: 16

Patch Set 9 : review comments #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+665 lines, -324 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationUIManager.java View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browser_process.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.h View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +29 lines, -1 line 0 comments Download
A chrome/browser/notifications/message_center_display_service.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/browser/notifications/message_center_display_service.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/notifications/native_notification_display_service.h View 1 2 3 4 5 6 7 8 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/notifications/native_notification_display_service.cc View 1 2 3 4 5 6 7 8 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_display_service.h View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_display_service_factory.h View 1 2 3 4 5 6 7 8 9 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_display_service_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +68 lines, -0 lines 0 comments Download
A chrome/browser/notifications/notification_platform_bridge.h View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.h View 1 2 3 4 5 6 7 8 2 chunks +24 lines, -27 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 2 3 4 5 6 7 8 5 chunks +30 lines, -63 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_mac.h View 1 2 3 4 5 6 7 8 1 chunk +21 lines, -26 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_mac.mm View 1 2 3 4 5 6 7 8 4 chunks +54 lines, -127 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_browsertest.cc View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 5 6 7 8 5 chunks +10 lines, -14 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 6 7 8 11 chunks +52 lines, -46 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +18 lines, -7 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_browsertest.cc View 1 2 3 4 5 6 7 5 chunks +9 lines, -4 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 26 (12 generated)
Peter Beverloo
https://codereview.chromium.org/1814923002/diff/40001/chrome/browser/notifications/notification_display_service.h File chrome/browser/notifications/notification_display_service.h (right): https://codereview.chromium.org/1814923002/diff/40001/chrome/browser/notifications/notification_display_service.h#newcode13 chrome/browser/notifications/notification_display_service.h:13: class Notification; You both include the message_center::Notification and forward-declare ...
4 years, 9 months ago (2016-03-21 15:57:04 UTC) #5
Miguel Garcia
Thanks! I think we have enough here to nail the design of this part. Let's ...
4 years, 9 months ago (2016-03-21 17:43:03 UTC) #6
Miguel Garcia
PTAL I have gone ahead with a single patch since it's ~700 lines which seems ...
4 years, 8 months ago (2016-04-11 19:51:26 UTC) #10
Miguel Garcia
Introduce a notification bridge
4 years, 8 months ago (2016-04-14 16:00:17 UTC) #11
Miguel Garcia
On 2016/04/14 16:00:17, Miguel Garcia wrote: This change makes some interesting clean ups possible, the ...
4 years, 8 months ago (2016-04-15 15:16:25 UTC) #12
Peter Beverloo
While rough, I do like the direction it's going in. I think we need to ...
4 years, 8 months ago (2016-04-18 14:57:10 UTC) #13
Miguel Garcia
https://codereview.chromium.org/1814923002/diff/160001/chrome/browser/notifications/chrome_notification_display_service.cc File chrome/browser/notifications/chrome_notification_display_service.cc (right): https://codereview.chromium.org/1814923002/diff/160001/chrome/browser/notifications/chrome_notification_display_service.cc#newcode21 chrome/browser/notifications/chrome_notification_display_service.cc:21: ui_manager_->Add(notification, profile_); On 2016/04/18 14:57:09, Peter Beverloo wrote: > ...
4 years, 8 months ago (2016-04-19 14:24:58 UTC) #14
Peter Beverloo
lgtm This still is in rough shape, but I know we'll follow up so let's ...
4 years, 8 months ago (2016-04-20 17:34:08 UTC) #15
Miguel Garcia
Thanks Peter I will fix all the comments (including the renaming) before submitting and of ...
4 years, 8 months ago (2016-04-20 18:19:17 UTC) #17
sky
LGTM - please get a more local owner for the android changes. https://codereview.chromium.org/1814923002/diff/180001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc ...
4 years, 8 months ago (2016-04-20 19:51:59 UTC) #18
Miguel Garcia
Ok, all changes done, will land this once the tree opens again. For the android ...
4 years, 8 months ago (2016-04-21 14:32:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1814923002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1814923002/220001
4 years, 8 months ago (2016-04-21 14:37:45 UTC) #22
commit-bot: I haz the power
Committed patchset #10 (id:220001)
4 years, 8 months ago (2016-04-21 15:24:14 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 19:34:50 UTC) #26
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/23cd2dd719c8e76e17e764100a6eff131c34a418
Cr-Commit-Position: refs/heads/master@{#388776}

Powered by Google App Engine
This is Rietveld 408576698