Index: content/child/service_worker/web_service_worker_registration_impl.cc |
diff --git a/content/child/service_worker/web_service_worker_registration_impl.cc b/content/child/service_worker/web_service_worker_registration_impl.cc |
index 40364c1ea6d64515d215b8e965d9dbe085d47c69..99addd0cf50a225b5388e973f35c0de89575bca1 100644 |
--- a/content/child/service_worker/web_service_worker_registration_impl.cc |
+++ b/content/child/service_worker/web_service_worker_registration_impl.cc |
@@ -124,6 +124,18 @@ void WebServiceWorkerRegistrationImpl::update( |
registration_id()); |
} |
+void WebServiceWorkerRegistrationImpl::unregister( |
+ blink::WebServiceWorkerProvider* provider, |
+ WebServiceWorkerUnregistrationCallbacks* callbacks) { |
+ WebServiceWorkerProviderImpl* provider_impl = |
+ static_cast<WebServiceWorkerProviderImpl*>(provider); |
+ ServiceWorkerDispatcher* dispatcher = |
+ ServiceWorkerDispatcher::GetThreadSpecificInstance(); |
+ DCHECK(dispatcher); |
+ dispatcher->UnregisterServiceWorker(provider_impl->provider_id(), |
+ registration_id(), callbacks); |
+} |
+ |
int64 WebServiceWorkerRegistrationImpl::registration_id() const { |
return handle_ref_->registration_id(); |
} |