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

Issue 1575283003: Move notification click event dispatching out of ServiceWorkerVersion. (Closed)

Created:
4 years, 11 months ago by Marijn Kruisselbrink
Modified:
4 years, 11 months ago
Reviewers:
johnme, Tom Sepez, nhiroki
CC:
blink-worker-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, horo+watch_chromium.org, jam, jsbell+serviceworker_chromium.org, kinuko+serviceworker, kinuko+watch, michaeln, mlamouri+watch-notifications_chromium.org, nhiroki, Peter Beverloo, serviceworker-reviews, tzik
Base URL:
https://chromium.googlesource.com/chromium/src.git@swversion-ipc-refactor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move notification click event dispatching out of ServiceWorkerVersion. BUG=570820 Committed: https://crrev.com/d9ef31156d4012582b3d551e584666f4524aa493 Cr-Commit-Position: refs/heads/master@{#371559}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Make callback paramters const-ref #

Total comments: 24

Patch Set 3 : nits #

Total comments: 3

Patch Set 4 : rebase #

Patch Set 5 : rebase and use DispatchSimpleEvent #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -82 lines) Patch
M content/browser/notifications/notification_event_dispatcher_impl.cc View 1 2 3 4 3 chunks +26 lines, -5 lines 0 comments Download
M content/browser/service_worker/service_worker_version.h View 1 2 3 4 6 chunks +3 lines, -16 lines 0 comments Download
M content/browser/service_worker/service_worker_version.cc View 1 2 3 4 6 chunks +0 lines, -58 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 24 (8 generated)
Marijn Kruisselbrink
johnme: please review nhiroki: the SW changes are purely removing the old code from SWVersion
4 years, 11 months ago (2016-01-14 22:48:01 UTC) #5
nhiroki
lgtm https://codereview.chromium.org/1575283003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/1575283003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode77 content/browser/notifications/notification_event_dispatcher_impl.cc:77: scoped_refptr<ServiceWorkerVersion> service_worker, nit: const-ref https://codereview.chromium.org/1575283003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode78 content/browser/notifications/notification_event_dispatcher_impl.cc:78: base::Callback<void(ServiceWorkerStatusCode)> callback, ...
4 years, 11 months ago (2016-01-15 00:23:33 UTC) #6
Marijn Kruisselbrink
https://codereview.chromium.org/1575283003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/1575283003/diff/40001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode77 content/browser/notifications/notification_event_dispatcher_impl.cc:77: scoped_refptr<ServiceWorkerVersion> service_worker, On 2016/01/15 at 00:23:33, nhiroki wrote: > ...
4 years, 11 months ago (2016-01-15 00:41:50 UTC) #7
Michael van Ouwerkerk
Some drive-by nits. Thanks Marijn :-) https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode76 content/browser/notifications/notification_event_dispatcher_impl.cc:76: void OnNotificationClickEventReply( nit: ...
4 years, 11 months ago (2016-01-15 16:44:03 UTC) #8
johnme
Looks generally good - thanks! https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode78 content/browser/notifications/notification_event_dispatcher_impl.cc:78: const base::Callback<void(ServiceWorkerStatusCode)>& callback, Nit: ...
4 years, 11 months ago (2016-01-15 16:52:58 UTC) #9
Marijn Kruisselbrink
https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode76 content/browser/notifications/notification_event_dispatcher_impl.cc:76: void OnNotificationClickEventReply( On 2016/01/15 at 16:44:03, Michael van Ouwerkerk ...
4 years, 11 months ago (2016-01-15 23:48:49 UTC) #10
johnme
lgtm with nits - thanks :) https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc File content/browser/notifications/notification_event_dispatcher_impl.cc (right): https://codereview.chromium.org/1575283003/diff/60001/content/browser/notifications/notification_event_dispatcher_impl.cc#newcode84 content/browser/notifications/notification_event_dispatcher_impl.cc:84: callback.Run(SERVICE_WORKER_OK); On 2016/01/15 ...
4 years, 11 months ago (2016-01-18 16:31:05 UTC) #11
johnme
One more comment. https://codereview.chromium.org/1575283003/diff/80001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/1575283003/diff/80001/content/browser/service_worker/service_worker_version.h#newcode805 content/browser/service_worker/service_worker_version.h:805: CallbackType protect(callback_); Why are you protecting ...
4 years, 11 months ago (2016-01-18 17:57:05 UTC) #12
Marijn Kruisselbrink
https://codereview.chromium.org/1575283003/diff/60001/content/browser/service_worker/service_worker_version.cc File content/browser/service_worker/service_worker_version.cc (left): https://codereview.chromium.org/1575283003/diff/60001/content/browser/service_worker/service_worker_version.cc#oldcode634 content/browser/service_worker/service_worker_version.cc:634: DCHECK_EQ(ACTIVATED, status()) << status(); On 2016/01/18 at 16:31:05, johnme ...
4 years, 11 months ago (2016-01-19 23:50:17 UTC) #13
johnme
Still lgtm https://codereview.chromium.org/1575283003/diff/80001/content/browser/service_worker/service_worker_version.h File content/browser/service_worker/service_worker_version.h (right): https://codereview.chromium.org/1575283003/diff/80001/content/browser/service_worker/service_worker_version.h#newcode805 content/browser/service_worker/service_worker_version.h:805: CallbackType protect(callback_); On 2016/01/19 23:50:17, Marijn Kruisselbrink ...
4 years, 11 months ago (2016-01-20 17:07:10 UTC) #14
Marijn Kruisselbrink
johnme: I changed the response IPC to include the WebServiceWorkerEventResult, and then changed the rest ...
4 years, 11 months ago (2016-01-26 17:25:42 UTC) #16
Tom Sepez
Messages LGTM.
4 years, 11 months ago (2016-01-26 17:27:14 UTC) #17
johnme
lgtm, thanks :)
4 years, 11 months ago (2016-01-26 18:02:42 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575283003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575283003/120001
4 years, 11 months ago (2016-01-26 18:05:59 UTC) #21
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 11 months ago (2016-01-26 19:36:02 UTC) #22
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 19:37:39 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d9ef31156d4012582b3d551e584666f4524aa493
Cr-Commit-Position: refs/heads/master@{#371559}

Powered by Google App Engine
This is Rietveld 408576698