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

Unified Diff: content/child/service_worker/web_service_worker_provider_impl.cc

Issue 896533004: [WONT COMMIT] ServiceWorker: Move unregister function from WebSWProvider to WebSWRegistration (2/3) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/service_worker/web_service_worker_provider_impl.cc
diff --git a/content/child/service_worker/web_service_worker_provider_impl.cc b/content/child/service_worker/web_service_worker_provider_impl.cc
index 52b6656ede0fe5a964cfb981b77f151b9b897952..c81e0897517af80a0fe6eb78aac72b3ac330b3ec 100644
--- a/content/child/service_worker/web_service_worker_provider_impl.cc
+++ b/content/child/service_worker/web_service_worker_provider_impl.cc
@@ -61,8 +61,8 @@ void WebServiceWorkerProviderImpl::setClient(
WebServiceWorkerRegistrationImpl* registration =
GetDispatcher()->FindServiceWorkerRegistration(info, false);
if (!registration) {
- registration =
- GetDispatcher()->CreateServiceWorkerRegistration(info, false);
+ registration = GetDispatcher()->CreateServiceWorkerRegistration(
+ provider_id_, info, false);
registration->SetInstalling(
GetDispatcher()->GetServiceWorker(attrs.installing, false));
registration->SetWaiting(

Powered by Google App Engine
This is Rietveld 408576698