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

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed)

Created:
4 years, 6 months ago by Miguel Garcia
Modified:
4 years, 5 months ago
CC:
chromium-reviews, Peter Beverloo, 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

Introduce a new API to handle native notification clicks BUG=596161, 595487 Committed: https://crrev.com/87e986d94f7bf82930af385d88d7e3b79eac4515 Cr-Commit-Position: refs/heads/master@{#404436}

Patch Set 1 #

Patch Set 2 : Working on Mac, Android not ported #

Patch Set 3 #

Total comments: 16

Patch Set 4 : initial review #

Total comments: 54

Patch Set 5 : review #

Total comments: 16

Patch Set 6 : Android implementation #

Patch Set 7 : add missing include #

Patch Set 8 : fix test #

Total comments: 6

Patch Set 9 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+569 lines, -126 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridgeIntentTest.java View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/message_center_display_service.h View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/notifications/message_center_display_service.cc View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -3 lines 0 comments Download
M chrome/browser/notifications/native_notification_display_service.h View 1 2 3 4 5 2 chunks +29 lines, -2 lines 0 comments Download
M chrome/browser/notifications/native_notification_display_service.cc View 1 2 3 4 5 3 chunks +65 lines, -1 line 0 comments Download
A chrome/browser/notifications/non_persistent_notification_handler.h View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/notifications/non_persistent_notification_handler.cc View 1 2 3 4 1 chunk +46 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_common.h View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_display_service.h View 1 2 3 4 2 chunks +6 lines, -2 lines 0 comments Download
A chrome/browser/notifications/notification_handler.h View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_android.cc View 1 2 3 4 5 6 7 8 4 chunks +61 lines, -23 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.h View 1 2 3 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac.mm View 1 2 3 4 9 chunks +60 lines, -20 lines 0 comments Download
M chrome/browser/notifications/notification_platform_bridge_mac_unittest.mm View 1 2 3 4 5 3 chunks +11 lines, -0 lines 0 comments Download
A chrome/browser/notifications/persistent_notification_handler.h View 1 2 3 4 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/notifications/persistent_notification_handler.cc View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 5 chunks +9 lines, -51 lines 0 comments Download
M chrome/browser/notifications/stub_notification_platform_bridge.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/notifications/stub_notification_platform_bridge.cc View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_builder_mac.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_builder_mac_unittest.mm View 1 2 3 4 5 6 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_constants_mac.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_constants_mac.mm View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_response_builder_mac.mm View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/notifications/notification_response_builder_mac_unittest.mm View 1 2 3 4 5 6 6 chunks +16 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 25 (10 generated)
Miguel Garcia
This is the larger CL that allows clicks to be propagated back from native notifications ...
4 years, 5 months ago (2016-06-28 17:27:30 UTC) #4
Peter Beverloo
A few higher-level comments. This increases duplication and complexity *a lot*, do we really need ...
4 years, 5 months ago (2016-06-29 00:23:16 UTC) #5
Miguel Garcia
Ok so all the dependent patches have landed and this is now rebased on top. ...
4 years, 5 months ago (2016-07-05 13:54:50 UTC) #8
Peter Beverloo
https://chromiumcodereview.appspot.com/2093953002/diff/80001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://chromiumcodereview.appspot.com/2093953002/diff/80001/chrome/browser/notifications/message_center_display_service.cc#newcode22 chrome/browser/notifications/message_center_display_service.cc:22: ui_manager_->Add(notification, profile_); Maybe add a TODO saying that the ...
4 years, 5 months ago (2016-07-05 14:25:35 UTC) #9
Miguel Garcia
https://chromiumcodereview.appspot.com/2093953002/diff/80001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://chromiumcodereview.appspot.com/2093953002/diff/80001/chrome/browser/notifications/message_center_display_service.cc#newcode22 chrome/browser/notifications/message_center_display_service.cc:22: ui_manager_->Add(notification, profile_); On 2016/07/05 14:25:33, Peter Beverloo wrote: > ...
4 years, 5 months ago (2016-07-05 17:12:53 UTC) #10
Peter Beverloo
Current state sgtm for iteration, % android of course :) https://chromiumcodereview.appspot.com/2093953002/diff/100001/chrome/browser/notifications/native_notification_display_service.h File chrome/browser/notifications/native_notification_display_service.h (right): https://chromiumcodereview.appspot.com/2093953002/diff/100001/chrome/browser/notifications/native_notification_display_service.h#newcode38 ...
4 years, 5 months ago (2016-07-05 23:44:18 UTC) #11
Miguel Garcia
+Robert for the mac pieces while I finish Android.
4 years, 5 months ago (2016-07-06 15:37:30 UTC) #13
Robert Sesek
LGTM w/ a nit https://chromiumcodereview.appspot.com/2093953002/diff/100001/chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm File chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm (right): https://chromiumcodereview.appspot.com/2093953002/diff/100001/chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm#newcode222 chrome/browser/ui/cocoa/notifications/notification_builder_mac.mm:222: nit: extra blank line
4 years, 5 months ago (2016-07-06 16:50:39 UTC) #14
Miguel Garcia
Ok Android done. As I mentioned live there are a few too many conversions from ...
4 years, 5 months ago (2016-07-07 11:02:29 UTC) #15
Peter Beverloo
lgtm https://chromiumcodereview.appspot.com/2093953002/diff/160001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://chromiumcodereview.appspot.com/2093953002/diff/160001/chrome/browser/notifications/message_center_display_service.cc#newcode24 chrome/browser/notifications/message_center_display_service.cc:24: // once the Notification object becomes a mojom ...
4 years, 5 months ago (2016-07-08 16:06:31 UTC) #16
Miguel Garcia
https://chromiumcodereview.appspot.com/2093953002/diff/160001/chrome/browser/notifications/message_center_display_service.cc File chrome/browser/notifications/message_center_display_service.cc (right): https://chromiumcodereview.appspot.com/2093953002/diff/160001/chrome/browser/notifications/message_center_display_service.cc#newcode24 chrome/browser/notifications/message_center_display_service.cc:24: // once the Notification object becomes a mojom type. ...
4 years, 5 months ago (2016-07-08 16:27:27 UTC) #19
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/2093953002/180001
4 years, 5 months ago (2016-07-08 16:27:59 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 5 months ago (2016-07-08 18:05:09 UTC) #22
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-08 18:05:39 UTC) #23
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 18:09:43 UTC) #25
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/87e986d94f7bf82930af385d88d7e3b79eac4515
Cr-Commit-Position: refs/heads/master@{#404436}

Powered by Google App Engine
This is Rietveld 408576698