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

Issue 1317473002: ServiceWorker: Clean up ownership management of WebServiceWorkerRegistration (Closed)

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

Description

ServiceWorker: Clean up ownership management of WebServiceWorkerRegistration Before the CL[1], Chromium could pass an existing WebServiceWorkerRegistration to ServiceWorkerRegistration, so ServiceWorkerRegistration needed to confirm whether its ownership was passed. After the CL, Chromium always passes ownership and ServiceWorkerRegistration does not have to worry about it. This CL removes codes for the case that ownership is not passed from Chromium. [1] https://codereview.chromium.org/1307133003/ BUG=523904 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201219

Patch Set 1 : #

Total comments: 2

Patch Set 2 : incorporate review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -57 lines) Patch
M Source/modules/serviceworkers/ServiceWorkerContainer.cpp View 1 4 chunks +16 lines, -7 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerGlobalScope.cpp View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.h View 1 5 chunks +3 lines, -12 lines 0 comments Download
M Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 3 chunks +8 lines, -33 lines 0 comments Download

Messages

Total messages: 12 (5 generated)
nhiroki
PTAL, thanks!
5 years, 4 months ago (2015-08-25 09:48:37 UTC) #5
falken
this is looking good https://codereview.chromium.org/1317473002/diff/60001/Source/modules/serviceworkers/ServiceWorkerRegistration.h File Source/modules/serviceworkers/ServiceWorkerRegistration.h (right): https://codereview.chromium.org/1317473002/diff/60001/Source/modules/serviceworkers/ServiceWorkerRegistration.h#newcode47 Source/modules/serviceworkers/ServiceWorkerRegistration.h:47: static ServiceWorkerRegistration* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerRegistration>); Can ...
5 years, 4 months ago (2015-08-26 07:47:57 UTC) #6
nhiroki
Thank you! Updated. https://codereview.chromium.org/1317473002/diff/60001/Source/modules/serviceworkers/ServiceWorkerRegistration.h File Source/modules/serviceworkers/ServiceWorkerRegistration.h (right): https://codereview.chromium.org/1317473002/diff/60001/Source/modules/serviceworkers/ServiceWorkerRegistration.h#newcode47 Source/modules/serviceworkers/ServiceWorkerRegistration.h:47: static ServiceWorkerRegistration* take(ScriptPromiseResolver*, PassOwnPtr<WebServiceWorkerRegistration>); On 2015/08/26 ...
5 years, 4 months ago (2015-08-26 08:16:01 UTC) #7
falken
yay for making our code simpler! lgtm nit: s/onwership/ownership in CL description
5 years, 4 months ago (2015-08-26 08:20:42 UTC) #8
nhiroki
On 2015/08/26 08:20:42, falken wrote: > yay for making our code simpler! lgtm > > ...
5 years, 4 months ago (2015-08-26 08:22:59 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1317473002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1317473002/80001
5 years, 4 months ago (2015-08-26 08:38:32 UTC) #11
commit-bot: I haz the power
5 years, 4 months ago (2015-08-26 09:29:24 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=201219

Powered by Google App Engine
This is Rietveld 408576698