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

Issue 1895473002: PlatformNotificationService layering cleanup. (Closed)

Created:
4 years, 8 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@display_manager2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlatformNotificationService layering cleanup. Make the display service execute the delegate->Display() call instead of having every bridge do it. Access NotificationDisplayService from the profile directly Simplify how PlatformNotificationServiceImpl unittest access the display service to make it more similar to production. Make GetNotificationUIManager private. BUG=596161 Committed: https://crrev.com/884b3ecf7101cdf41820b896f5e7ed34cd3de2ff Cr-Commit-Position: refs/heads/master@{#389736}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 6

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -37 lines) Patch
M chrome/browser/BUILD.gn View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/native_notification_display_service.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_android.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_ui_manager_mac.mm View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 3 4 5 8 chunks +44 lines, -26 lines 0 comments Download
A chrome/browser/notifications/stub_notification_platform_bridge.h View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
A chrome/browser/notifications/stub_notification_platform_bridge.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/test/base/testing_browser_process.cc View 1 3 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 22 (10 generated)
Miguel Garcia
PTAL
4 years, 8 months ago (2016-04-25 10:57:15 UTC) #3
Peter Beverloo
Thanks! https://codereview.chromium.org/1895473002/diff/40001/chrome/browser/notifications/platform_notification_service_unittest.cc File chrome/browser/notifications/platform_notification_service_unittest.cc (right): https://codereview.chromium.org/1895473002/diff/40001/chrome/browser/notifications/platform_notification_service_unittest.cc#newcode159 chrome/browser/notifications/platform_notification_service_unittest.cc:159: #endif This is why I'd like this test ...
4 years, 8 months ago (2016-04-25 13:37:29 UTC) #4
Miguel Garcia
PTAL https://codereview.chromium.org/1895473002/diff/40001/chrome/browser/notifications/platform_notification_service_unittest.cc File chrome/browser/notifications/platform_notification_service_unittest.cc (right): https://codereview.chromium.org/1895473002/diff/40001/chrome/browser/notifications/platform_notification_service_unittest.cc#newcode159 chrome/browser/notifications/platform_notification_service_unittest.cc:159: #endif Yeah I knew you would not like ...
4 years, 8 months ago (2016-04-25 17:19:59 UTC) #5
Peter Beverloo
lgtm https://codereview.chromium.org/1895473002/diff/60001/chrome/browser/notifications/platform_notification_service_impl.h File chrome/browser/notifications/platform_notification_service_impl.h (right): https://codereview.chromium.org/1895473002/diff/60001/chrome/browser/notifications/platform_notification_service_impl.h#newcode143 chrome/browser/notifications/platform_notification_service_impl.h:143: // This can be overriden in tests // ...
4 years, 8 months ago (2016-04-25 17:40:31 UTC) #6
Miguel Garcia
+sky@ for owners in chrome/test/base/ and the change in chrome/browser/BUILD.gn https://codereview.chromium.org/1895473002/diff/60001/chrome/browser/notifications/platform_notification_service_impl.h File chrome/browser/notifications/platform_notification_service_impl.h (right): https://codereview.chromium.org/1895473002/diff/60001/chrome/browser/notifications/platform_notification_service_impl.h#newcode143 ...
4 years, 8 months ago (2016-04-25 18:45:33 UTC) #8
Miguel Garcia
https://chromiumcodereview.appspot.com/1895473002/diff/60001/chrome/browser/notifications/stub_notification_platform_bridge.h File chrome/browser/notifications/stub_notification_platform_bridge.h (right): https://chromiumcodereview.appspot.com/1895473002/diff/60001/chrome/browser/notifications/stub_notification_platform_bridge.h#newcode37 chrome/browser/notifications/stub_notification_platform_bridge.h:37: // ProfileId -> Notification list On 2016/04/25 17:40:31, Peter ...
4 years, 8 months ago (2016-04-25 18:46:09 UTC) #9
sky
LGTM
4 years, 8 months ago (2016-04-25 21:04:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895473002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895473002/80001
4 years, 8 months ago (2016-04-26 07:01:34 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/203676)
4 years, 8 months ago (2016-04-26 08:43:11 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1895473002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1895473002/100001
4 years, 8 months ago (2016-04-26 09:24:04 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 8 months ago (2016-04-26 09:52:02 UTC) #20
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 09:52:55 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/884b3ecf7101cdf41820b896f5e7ed34cd3de2ff
Cr-Commit-Position: refs/heads/master@{#389736}

Powered by Google App Engine
This is Rietveld 408576698