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

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

Issue 1175823002: ServiceWorker: Implement ServiceWorkerRegistration.update() (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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 736379626fc0e40fa1bf22194f84052fe81aebfb..0485d68df5b2e22900653a100d40c96a7a788698 100644
--- a/content/child/service_worker/web_service_worker_provider_impl.cc
+++ b/content/child/service_worker/web_service_worker_provider_impl.cc
@@ -82,6 +82,10 @@ void WebServiceWorkerProviderImpl::getRegistrationForReady(
GetDispatcher()->GetRegistrationForReady(context_->provider_id(), callbacks);
}
+int WebServiceWorkerProviderImpl::provider_id() const {
+ return context_->provider_id();
+}
+
void WebServiceWorkerProviderImpl::RemoveProviderClient() {
// Remove the provider client, but only if the dispatcher is still there.
// (For cleanup path we don't need to bother creating a new dispatcher)

Powered by Google App Engine
This is Rietveld 408576698