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

Issue 896533004: [WONT COMMIT] ServiceWorker: Move unregister function from WebSWProvider to WebSWRegistration (2/3) (Closed)

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

Description

ServiceWorker: Move unregister function from WebSWProvider to WebSWRegistration (2/3) This series of CLs changes a call sequence of unregister API. (See the 1st CL for more details) This 2nd CL implements WebServiceWorkerRegistrationImpl::unregister. CL dependency: (1) Blink: https://codereview.chromium.org/897573002/ (2) Chromium: THIS PATCH (3) Blink: https://codereview.chromium.org/896433005/ BUG=452910 TEST=compile

Patch Set 1 #

Total comments: 2

Messages

Total messages: 9 (3 generated)
nhiroki
PTAL, thanks!
5 years, 10 months ago (2015-02-03 05:30:49 UTC) #2
kinuko
lgtm
5 years, 10 months ago (2015-02-03 07:58:01 UTC) #3
kinuko
lgtm
5 years, 10 months ago (2015-02-03 07:58:03 UTC) #4
kinuko
https://codereview.chromium.org/896533004/diff/1/content/child/service_worker/web_service_worker_registration_impl.cc File content/child/service_worker/web_service_worker_registration_impl.cc (right): https://codereview.chromium.org/896533004/diff/1/content/child/service_worker/web_service_worker_registration_impl.cc#newcode122 content/child/service_worker/web_service_worker_registration_impl.cc:122: dispatcher->UnregisterServiceWorker(provider_id_, scope(), callbacks); If a registration outlives the document ...
5 years, 10 months ago (2015-02-03 08:02:11 UTC) #6
nhiroki
mkwst@, let me remove you from the reviewer list until the issue kinuko@ mentioned gets ...
5 years, 10 months ago (2015-02-03 08:19:25 UTC) #7
nhiroki
5 years, 10 months ago (2015-02-03 12:59:37 UTC) #9
Thank you for reviewing. As per review comments, I'll drop this series of CLs
and create new ones...

https://codereview.chromium.org/896533004/diff/1/content/child/service_worker...
File content/child/service_worker/web_service_worker_registration_impl.cc
(right):

https://codereview.chromium.org/896533004/diff/1/content/child/service_worker...
content/child/service_worker/web_service_worker_registration_impl.cc:122:
dispatcher->UnregisterServiceWorker(provider_id_, scope(), callbacks);
On 2015/02/03 08:02:11, kinuko wrote:
> If a registration outlives the document (and its provider) this will fail (and
> causes crash)?

Good point. I understand that WebSWRegistration must not depend on the original
provider who created it. I'm now planning to make WebSWProvider available on
SWGlobalScope instead of this series of CLs...

Powered by Google App Engine
This is Rietveld 408576698