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

Issue 1307133003: ServiceWorker: Make APIs that return ServiceWorkerRegistration coin a new JS object (2/3) (Closed)

Created:
5 years, 4 months ago by nhiroki
Modified:
5 years, 3 months ago
Reviewers:
falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, darin-cc_chromium.org, horo+watch_chromium.org, kinuko+serviceworker, kinuko+watch, blink-worker-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ServiceWorker: Make APIs that return ServiceWorkerRegistration coin a new JS object (2/3) The spec requires register/getRegistration/getRegistrations to return a new registration object, but the current implementation can return existing one. This CL makes them always coin a new registration object. Spec: https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html (1) Blink: https://codereview.chromium.org/1311113002/ (2) Chromium: THIS PATCH (3) Blink: https://codereview.chromium.org/1311103002/ BUG=523904 Committed: https://crrev.com/e37a143e2ac4696cbe5f3b058314580ef6c9ee0a Cr-Commit-Position: refs/heads/master@{#345277}

Patch Set 1 : #

Total comments: 2

Patch Set 2 : split CreateRegistration() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -166 lines) Patch
M content/browser/service_worker/service_worker_dispatcher_host.h View 1 2 chunks +2 lines, -7 lines 0 comments Download
M content/browser/service_worker/service_worker_dispatcher_host.cc View 2 chunks +8 lines, -33 lines 0 comments Download
M content/browser/service_worker/service_worker_provider_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/child/service_worker/service_worker_dispatcher.h View 1 3 chunks +11 lines, -14 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher.cc View 1 6 chunks +32 lines, -45 lines 0 comments Download
M content/child/service_worker/service_worker_dispatcher_unittest.cc View 1 2 chunks +32 lines, -58 lines 0 comments Download
M content/renderer/service_worker/service_worker_context_client.cc View 1 1 chunk +1 line, -8 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
nhiroki
PTAL
5 years, 3 months ago (2015-08-25 01:49:53 UTC) #6
falken
lgtm, looks a lot simpler https://codereview.chromium.org/1307133003/diff/80001/content/child/service_worker/service_worker_dispatcher.h File content/child/service_worker/service_worker_dispatcher.h (right): https://codereview.chromium.org/1307133003/diff/80001/content/child/service_worker/service_worker_dispatcher.h#newcode140 content/child/service_worker/service_worker_dispatcher.h:140: scoped_ptr<WebServiceWorkerRegistrationImpl> CreateRegistration( Have you ...
5 years, 3 months ago (2015-08-25 03:26:45 UTC) #7
nhiroki
Thank you! Updated. https://codereview.chromium.org/1307133003/diff/80001/content/child/service_worker/service_worker_dispatcher.h File content/child/service_worker/service_worker_dispatcher.h (right): https://codereview.chromium.org/1307133003/diff/80001/content/child/service_worker/service_worker_dispatcher.h#newcode140 content/child/service_worker/service_worker_dispatcher.h:140: scoped_ptr<WebServiceWorkerRegistrationImpl> CreateRegistration( On 2015/08/25 03:26:45, falken ...
5 years, 3 months ago (2015-08-25 05:40:54 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307133003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307133003/100001
5 years, 3 months ago (2015-08-25 05:41:16 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/103618)
5 years, 3 months ago (2015-08-25 06:32:07 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307133003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307133003/100001
5 years, 3 months ago (2015-08-25 06:33:15 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:100001)
5 years, 3 months ago (2015-08-25 07:02:39 UTC) #16
commit-bot: I haz the power
5 years, 3 months ago (2015-08-25 07:03:26 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e37a143e2ac4696cbe5f3b058314580ef6c9ee0a
Cr-Commit-Position: refs/heads/master@{#345277}

Powered by Google App Engine
This is Rietveld 408576698