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

Issue 2888303004: Minimize the delegate dependencies for non persistent notifications. (Closed)

Created:
3 years, 7 months ago by Miguel Garcia
Modified:
3 years, 6 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, awdf+watch_chromium.org, Peter Beverloo, mlamouri+watch-notifications_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Minimize the delegate dependencies for non persistent notifications. Upgrade NotificationEventDispatcher to support IPCs for non persistent notifications as well as persistent ones. Use the dispatcher directly from the handler. After this patch land we will be able to use the same path for non native notifications and get rid of the delegate #ifdefs This work is happening in https://codereview.chromium.org/2906913002#ps1 and https://codereview.chromium.org/2906883003#ps1 BUG=720345 Review-Url: https://codereview.chromium.org/2888303004 Cr-Commit-Position: refs/heads/master@{#476646} Committed: https://chromium.googlesource.com/chromium/src/+/26f0196082493c3d5109f196828a8c5baf16005a

Patch Set 1 #

Patch Set 2 : Fix tests #

Patch Set 3 : more fixes #

Total comments: 38

Patch Set 4 : format #

Total comments: 10

Patch Set 5 : review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -105 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/notifications/extension_notification_handler.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/notifications/extension_notification_handler.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/notifications/notifications_api.cc View 1 2 3 chunks +8 lines, -27 lines 0 comments Download
A chrome/browser/notifications/native_notification_delegate.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/notifications/native_notification_delegate.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/notifications/native_notification_display_service.cc View 1 2 3 4 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/notifications/non_persistent_notification_handler.h View 2 chunks +0 lines, -12 lines 0 comments Download
M chrome/browser/notifications/non_persistent_notification_handler.cc View 1 2 3 3 chunks +9 lines, -18 lines 0 comments Download
M chrome/browser/notifications/notification_handler.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/notifications/notification_interactive_uitest_support.cc View 1 2 2 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_handler.h View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_handler.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 7 chunks +25 lines, -7 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_interactive_uitest.cc View 1 2 3 3 chunks +20 lines, -5 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_unittest.cc View 1 2 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.h View 1 2 3 4 2 chunks +24 lines, -0 lines 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.cc View 1 2 3 4 3 chunks +80 lines, -3 lines 0 comments Download
M content/browser/notifications/notification_message_filter.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/notifications/notification_message_filter.cc View 1 2 3 4 4 chunks +15 lines, -1 line 0 comments Download
M content/public/browser/notification_event_dispatcher.h View 1 2 3 4 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (24 generated)
Miguel Garcia
3 years, 7 months ago (2017-05-25 14:54:18 UTC) #13
Peter Beverloo
Thanks! It may be useful to list a few of the follow-up CLs in your ...
3 years, 6 months ago (2017-05-31 17:52:43 UTC) #16
Miguel Garcia
Thanks Peter! Adding the remaining OWNERS avi for the file in content/public dewittj for the ...
3 years, 6 months ago (2017-06-01 17:00:54 UTC) #20
Peter Beverloo
lgtm % comments Thanks for pointing to the next few CLs so that it's clear ...
3 years, 6 months ago (2017-06-01 17:56:28 UTC) #23
Avi (use Gerrit)
lgtm stamp for the content/public file
3 years, 6 months ago (2017-06-01 18:38:55 UTC) #24
dewittj
chrome/browser/extensions/api/notifications lgtm https://codereview.chromium.org/2888303004/diff/60001/chrome/browser/extensions/api/notifications/notifications_api.cc File chrome/browser/extensions/api/notifications/notifications_api.cc (right): https://codereview.chromium.org/2888303004/diff/60001/chrome/browser/extensions/api/notifications/notifications_api.cc#newcode503 chrome/browser/extensions/api/notifications/notifications_api.cc:503: g_browser_process->notification_platform_bridge()) { Probably fine but it feels ...
3 years, 6 months ago (2017-06-01 18:44:45 UTC) #25
Miguel Garcia
Thanks all! https://codereview.chromium.org/2888303004/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.h File content/browser/notifications/notification_event_dispatcher_impl.h (right): https://codereview.chromium.org/2888303004/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.h#newcode25 content/browser/notifications/notification_event_dispatcher_impl.h:25: // TODO(miguelg) rename so it says Persistent. ...
3 years, 6 months ago (2017-06-02 12:37:13 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2888303004/80001
3 years, 6 months ago (2017-06-02 12:37:31 UTC) #30
commit-bot: I haz the power
Committed patchset #5 (id:80001) as https://chromium.googlesource.com/chromium/src/+/26f0196082493c3d5109f196828a8c5baf16005a
3 years, 6 months ago (2017-06-02 14:51:26 UTC) #33
michaelbai
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2916383004/ by michaelbai@chromium.org. ...
3 years, 6 months ago (2017-06-02 23:25:59 UTC) #34
michaelbai
3 years, 6 months ago (2017-06-02 23:48:52 UTC) #35
Message was sent while issue was closed.
On 2017/06/02 23:25:59, michaelbai wrote:
> A revert of this CL (patchset #5 id:80001) has been created in
> https://codereview.chromium.org/2916383004/ by mailto:michaelbai@chromium.org.
> 
> The reason for reverting is: This broke the unit test 
> 
> PlatformNotificationServiceTest.DisplayPageDisplayedEvent
> 
> see 
>
https://uberchromegw.corp.google.com/i/chromium.android/builders/Android%20N5....

Revert failed

I will disable the test.

Powered by Google App Engine
This is Rietveld 408576698