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

Issue 535753002: ServiceWorker: Implement navigator.serviceWorker.getRegistration [2/3] (Closed)

Created:
6 years, 3 months ago by Kunihiko Sakamoto
Modified:
6 years, 3 months ago
Reviewers:
nhiroki, nasko, horo
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Implement navigator.serviceWorker.getRegistration [2/3] This patch implements the Chromium-side change of ServiceWorkerContainer#getRegistration(). Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/#navigator-service-worker-getRegistration [1/3] https://codereview.chromium.org/553983010/ [3/3] https://codereview.chromium.org/540823003/ BUG=404951 TEST=content_unittests Committed: https://crrev.com/0d1c4968ac6d14ee8d250df9641b6434eb9aaaf0 Cr-Commit-Position: refs/heads/master@{#294720}

Patch Set 1 : #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : patch for review #

Total comments: 20

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : rebase #

Total comments: 13

Patch Set 7 : #

Total comments: 2

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+366 lines, -31 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 3 4 5 6 5 chunks +23 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 1 2 3 4 5 6 7 7 chunks +130 lines, -10 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host_unittest.cc View 1 2 3 2 chunks +52 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 1 2 3 4 5 6 6 chunks +24 lines, -0 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 2 3 4 5 6 6 chunks +105 lines, -19 lines 0 comments Download
M content/child/service_worker/web_service_worker_provider_impl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/child/service_worker/web_service_worker_provider_impl.cc View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M content/common/service_worker/service_worker_messages.h View 1 2 3 4 5 3 chunks +23 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (12 generated)
Kunihiko Sakamoto
Hiroki-san, This is still WIP and no tests yet, but could you take a quick ...
6 years, 3 months ago (2014-09-05 01:35:17 UTC) #7
nhiroki
Looks pretty good. Please proceed in this direction :) https://codereview.chromium.org/535753002/diff/100001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/535753002/diff/100001/content/browser/service_worker/service_worker_context_core.cc#newcode229 content/browser/service_worker/service_worker_context_core.cc:229: ...
6 years, 3 months ago (2014-09-05 04:55:09 UTC) #8
Kunihiko Sakamoto
Thanks for the feedback. Now it's ready for review, PTAL. https://codereview.chromium.org/535753002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/535753002/diff/100001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode626 ...
6 years, 3 months ago (2014-09-09 07:28:10 UTC) #11
nhiroki
Looks good overall. https://codereview.chromium.org/535753002/diff/160001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc (right): https://codereview.chromium.org/535753002/diff/160001/content/browser/service_worker/service_worker_context_unittest.cc#newcode68 content/browser/service_worker/service_worker_context_unittest.cc:68: return base::Bind(&SaveRegistrationIdCallback, called, store_registration_id); nit: This ...
6 years, 3 months ago (2014-09-10 04:07:22 UTC) #12
Kunihiko Sakamoto
Thanks for review! https://codereview.chromium.org/535753002/diff/160001/content/browser/service_worker/service_worker_context_unittest.cc File content/browser/service_worker/service_worker_context_unittest.cc (right): https://codereview.chromium.org/535753002/diff/160001/content/browser/service_worker/service_worker_context_unittest.cc#newcode68 content/browser/service_worker/service_worker_context_unittest.cc:68: return base::Bind(&SaveRegistrationIdCallback, called, store_registration_id); On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 08:22:44 UTC) #13
michaeln
drive-by comments https://codereview.chromium.org/535753002/diff/180001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/535753002/diff/180001/content/browser/service_worker/service_worker_context_core.cc#newcode229 content/browser/service_worker/service_worker_context_core.cc:229: storage()->FindRegistrationForDocument( Not sure we need this method, ...
6 years, 3 months ago (2014-09-10 23:52:25 UTC) #15
Kunihiko Sakamoto
Thank you for the useful comments! https://codereview.chromium.org/535753002/diff/180001/content/browser/service_worker/service_worker_context_core.cc File content/browser/service_worker/service_worker_context_core.cc (right): https://codereview.chromium.org/535753002/diff/180001/content/browser/service_worker/service_worker_context_core.cc#newcode229 content/browser/service_worker/service_worker_context_core.cc:229: storage()->FindRegistrationForDocument( On 2014/09/10 ...
6 years, 3 months ago (2014-09-11 02:54:05 UTC) #17
Kunihiko Sakamoto
https://codereview.chromium.org/535753002/diff/220001/content/child/service_worker/service_worker_dispatcher.cc File content/child/service_worker/service_worker_dispatcher.cc (right): https://codereview.chromium.org/535753002/diff/220001/content/child/service_worker/service_worker_dispatcher.cc#newcode396 content/child/service_worker/service_worker_dispatcher.cc:396: FindServiceWorkerRegistration(info, true); nhiroki@: Since your patch has landed, I've ...
6 years, 3 months ago (2014-09-11 04:23:52 UTC) #18
nhiroki
https://codereview.chromium.org/535753002/diff/220001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/535753002/diff/220001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode354 content/browser/service_worker/service_worker_dispatcher_host.cc:354: "Document URL", document_url.spec()); The corresponding ASYNC_END couldn't be called ...
6 years, 3 months ago (2014-09-11 07:23:50 UTC) #19
Kunihiko Sakamoto
https://codereview.chromium.org/535753002/diff/220001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/535753002/diff/220001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode354 content/browser/service_worker/service_worker_dispatcher_host.cc:354: "Document URL", document_url.spec()); On 2014/09/11 07:23:49, nhiroki wrote: > ...
6 years, 3 months ago (2014-09-11 08:48:10 UTC) #20
nhiroki
LGTM! https://codereview.chromium.org/535753002/diff/240001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/535753002/diff/240001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode463 content/browser/service_worker/service_worker_dispatcher_host.cc:463: nit: there is an empty line.
6 years, 3 months ago (2014-09-11 10:52:40 UTC) #21
nhiroki
+nasko@ for service_worker_messages.h
6 years, 3 months ago (2014-09-11 12:50:16 UTC) #23
Kunihiko Sakamoto
https://codereview.chromium.org/535753002/diff/240001/content/browser/service_worker/service_worker_dispatcher_host.cc File content/browser/service_worker/service_worker_dispatcher_host.cc (right): https://codereview.chromium.org/535753002/diff/240001/content/browser/service_worker/service_worker_dispatcher_host.cc#newcode463 content/browser/service_worker/service_worker_dispatcher_host.cc:463: On 2014/09/11 10:52:40, nhiroki wrote: > nit: there is ...
6 years, 3 months ago (2014-09-12 00:40:10 UTC) #24
nasko
IPC LGTM
6 years, 3 months ago (2014-09-12 23:30:17 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/535753002/260001
6 years, 3 months ago (2014-09-13 00:32:52 UTC) #27
commit-bot: I haz the power
Committed patchset #8 (id:260001) as 4fb1b9a3060117586b5bd2b6358445432c1be2b6
6 years, 3 months ago (2014-09-13 01:21:04 UTC) #28
commit-bot: I haz the power
6 years, 3 months ago (2014-09-13 01:23:28 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0d1c4968ac6d14ee8d250df9641b6434eb9aaaf0
Cr-Commit-Position: refs/heads/master@{#294720}

Powered by Google App Engine
This is Rietveld 408576698