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

Unified Diff: content/browser/service_worker/service_worker_dispatcher_host.cc

Issue 623823002: Chrome side of passing on the service worker registration with geofencing API calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/browser/service_worker/service_worker_dispatcher_host.cc
diff --git a/content/browser/service_worker/service_worker_dispatcher_host.cc b/content/browser/service_worker/service_worker_dispatcher_host.cc
index 49f3c8394f89c08886e254295bc6107e8080c92c..a1bfa90f2b77a0225682c26194b4d406f7ac6e2b 100644
--- a/content/browser/service_worker/service_worker_dispatcher_host.cc
+++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
@@ -209,6 +209,11 @@ ServiceWorkerDispatcherHost::GetOrCreateRegistrationHandle(
return handle;
}
+ServiceWorkerRegistrationHandle*
+ServiceWorkerDispatcherHost::GetRegistrationHandle(int registration_handle_id) {
+ return registration_handles_.Lookup(registration_handle_id);
+}
+
void ServiceWorkerDispatcherHost::RegisterServiceWorkerHandle(
scoped_ptr<ServiceWorkerHandle> handle) {
int handle_id = handle->handle_id();

Powered by Google App Engine
This is Rietveld 408576698