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

Issue 2392343002: Plumbing in notification replies: PlatformNotificationService -> SW (Closed)

Created:
4 years, 2 months ago by awdf
Modified:
4 years, 2 months ago
CC:
chromium-reviews, mlamouri+watch-notifications_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Plumbing in notification replies: PlatformNotificationService -> SW - Created an interactive_ui_test, which simulates a notification click with a reply, and tests the reply is received in the notificationclick event. - Did enough plumbing so this new test passes. - Note inline replies are not fully hooked up yet, still need to pass the reply back from Android to native. - Layout tests will be added in subsequent patch (see https://codereview.chromium.org/2403893002/) BUG=599859 Committed: https://crrev.com/f42998eab3fc522255647f6bf5fed75dcb444436 Cr-Commit-Position: refs/heads/master@{#425065}

Patch Set 1 : Added a failing ui test for notification reply (and enough plumbing to compile) #

Patch Set 2 : Pass the reply through from PNS -> SW so new test passes #

Total comments: 1

Patch Set 3 : Use a ref to a const NullableString everywhere #

Patch Set 4 : Remove todo as it doesn't seem necessary after all #

Total comments: 11

Patch Set 5 : Remove unnecessary includes; add comment #

Patch Set 6 : The One That Got Away #

Patch Set 7 : Send NullableString through IPC, remove settings check from ButtonClickWithReply, add TODO in messa… #

Total comments: 11

Patch Set 8 : Addressing comments from patch 7 #

Total comments: 2

Patch Set 9 : Add a NOTIMPLEMENTED #

Patch Set 10 : Put back a linebreak accidentally removed #

Patch Set 11 : include base/logging.h for NOTIMPLEMENTED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+130 lines, -31 lines) Patch
M chrome/browser/notifications/native_notification_display_service.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/notifications/non_persistent_notification_handler.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/non_persistent_notification_handler.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_handler.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_delegate.cc View 1 2 3 4 5 6 7 3 chunks +15 lines, -2 lines 0 comments Download
M chrome/browser/notifications/persistent_notification_handler.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/notifications/persistent_notification_handler.cc View 1 2 3 4 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.h View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_interactive_uitest.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/test/data/notifications/platform_notification_service.html View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/test/data/notifications/platform_notification_service.js View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/notifications/notification_event_dispatcher_impl.cc View 1 2 3 4 5 6 7 4 chunks +6 lines, -3 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M content/public/browser/notification_event_dispatcher.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/browser/layout_test/layout_test_notification_manager.cc View 1 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp View 1 7 8 2 chunks +3 lines, -1 line 0 comments Download
M third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextProxy.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M ui/message_center/notification_delegate.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M ui/message_center/notification_delegate.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 54 (34 generated)
awdf
As mentioned in the description, this doesn't actually fully hook up Android inline replies, because ...
4 years, 2 months ago (2016-10-07 17:15:41 UTC) #16
Peter Beverloo
Thanks! I have a few comments and questions: - Please make sure that the first ...
4 years, 2 months ago (2016-10-11 14:22:56 UTC) #17
awdf
https://codereview.chromium.org/2392343002/diff/130001/chrome/browser/notifications/persistent_notification_delegate.cc File chrome/browser/notifications/persistent_notification_delegate.cc (right): https://codereview.chromium.org/2392343002/diff/130001/chrome/browser/notifications/persistent_notification_delegate.cc#newcode51 chrome/browser/notifications/persistent_notification_delegate.cc:51: if (button_index == notification_settings_index_) { On 2016/10/11 14:22:56, Peter ...
4 years, 2 months ago (2016-10-11 15:51:27 UTC) #19
awdf
https://codereview.chromium.org/2392343002/diff/130001/chrome/browser/notifications/native_notification_display_service.cc File chrome/browser/notifications/native_notification_display_service.cc (right): https://codereview.chromium.org/2392343002/diff/130001/chrome/browser/notifications/native_notification_display_service.cc#newcode89 chrome/browser/notifications/native_notification_display_service.cc:89: base::NullableString16()); On 2016/10/11 14:22:56, Peter Beverloo wrote: > nit: ...
4 years, 2 months ago (2016-10-12 10:44:58 UTC) #20
awdf
I think that's all your comments addressed now. https://codereview.chromium.org/2392343002/diff/130001/chrome/browser/notifications/persistent_notification_delegate.cc File chrome/browser/notifications/persistent_notification_delegate.cc (right): https://codereview.chromium.org/2392343002/diff/130001/chrome/browser/notifications/persistent_notification_delegate.cc#newcode51 chrome/browser/notifications/persistent_notification_delegate.cc:51: if ...
4 years, 2 months ago (2016-10-12 13:26:42 UTC) #21
Peter Beverloo
lgtm \o/ Please note in your CL description that layout tests will be added in ...
4 years, 2 months ago (2016-10-12 13:58:31 UTC) #22
awdf
https://codereview.chromium.org/2392343002/diff/190001/chrome/browser/notifications/non_persistent_notification_handler.cc File chrome/browser/notifications/non_persistent_notification_handler.cc (right): https://codereview.chromium.org/2392343002/diff/190001/chrome/browser/notifications/non_persistent_notification_handler.cc#newcode29 chrome/browser/notifications/non_persistent_notification_handler.cc:29: const base::NullableString16& reply) { On 2016/10/12 13:58:31, Peter Beverloo ...
4 years, 2 months ago (2016-10-12 17:04:01 UTC) #29
awdf
tkent@chromium.org: Please review changes in Source/web dewittj@chromium.org: Please review changes in ui/message_center/ avi@chromium.org: Please review ...
4 years, 2 months ago (2016-10-12 17:15:17 UTC) #33
Avi (use Gerrit)
content lgtm
4 years, 2 months ago (2016-10-12 17:16:55 UTC) #36
Tom Sepez
messages LGTM
4 years, 2 months ago (2016-10-12 19:17:23 UTC) #37
tkent
On 2016/10/12 at 17:15:17, awdf wrote: > tkent@chromium.org: Please review changes in > Source/web lgtm
4 years, 2 months ago (2016-10-12 23:17:42 UTC) #38
dewittj
lgtm https://codereview.chromium.org/2392343002/diff/210001/ui/message_center/notification_delegate.cc File ui/message_center/notification_delegate.cc (right): https://codereview.chromium.org/2392343002/diff/210001/ui/message_center/notification_delegate.cc#newcode22 ui/message_center/notification_delegate.cc:22: const base::string16& reply) {} Perhaps this should be ...
4 years, 2 months ago (2016-10-12 23:21:11 UTC) #39
awdf
https://codereview.chromium.org/2392343002/diff/210001/ui/message_center/notification_delegate.cc File ui/message_center/notification_delegate.cc (right): https://codereview.chromium.org/2392343002/diff/210001/ui/message_center/notification_delegate.cc#newcode22 ui/message_center/notification_delegate.cc:22: const base::string16& reply) {} On 2016/10/12 23:21:11, dewittj wrote: ...
4 years, 2 months ago (2016-10-13 14:31:07 UTC) #40
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/2392343002/250001
4 years, 2 months ago (2016-10-13 14:31:35 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_x86-generic_chromium_compile_only_ng/builds/215935)
4 years, 2 months ago (2016-10-13 14:48:24 UTC) #45
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/2392343002/270001
4 years, 2 months ago (2016-10-13 15:24:23 UTC) #48
awdf
> > In regards to end-to-end testing, I guess we should just add a new ...
4 years, 2 months ago (2016-10-13 16:04:09 UTC) #49
Peter Beverloo
On 2016/10/13 16:04:09, awdf wrote: > > > > In regards to end-to-end testing, I ...
4 years, 2 months ago (2016-10-13 16:10:57 UTC) #50
commit-bot: I haz the power
Committed patchset #11 (id:270001)
4 years, 2 months ago (2016-10-13 16:59:20 UTC) #52
commit-bot: I haz the power
4 years, 2 months ago (2016-10-13 17:02:43 UTC) #54
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/f42998eab3fc522255647f6bf5fed75dcb444436
Cr-Commit-Position: refs/heads/master@{#425065}

Powered by Google App Engine
This is Rietveld 408576698