Index: content/browser/service_worker/service_worker_context_wrapper.cc |
diff --git a/content/browser/service_worker/service_worker_context_wrapper.cc b/content/browser/service_worker/service_worker_context_wrapper.cc |
index af51b5edccb90553c085d786b1208a43a9207433..c21e459bb120b6889024d22d8cf69c92b7bac69a 100644 |
--- a/content/browser/service_worker/service_worker_context_wrapper.cc |
+++ b/content/browser/service_worker/service_worker_context_wrapper.cc |
@@ -166,7 +166,7 @@ void ServiceWorkerContextWrapper::DidGetAllRegistrationsForGetAllOrigins( |
it != registrations.end(); |
++it) { |
const ServiceWorkerRegistrationInfo& registration_info = *it; |
- GURL origin = registration_info.script_url.GetOrigin(); |
+ GURL origin = registration_info.pattern.GetOrigin(); |
ServiceWorkerUsageInfo& usage_info = origins[origin]; |
if (usage_info.origin.is_empty()) |
@@ -209,7 +209,7 @@ void ServiceWorkerContextWrapper::DidGetAllRegistrationsForDeleteForOrigin( |
it != registrations.end(); |
++it) { |
const ServiceWorkerRegistrationInfo& registration_info = *it; |
- if (origin == registration_info.script_url.GetOrigin()) { |
+ if (origin == registration_info.pattern.GetOrigin()) { |
UnregisterServiceWorker(registration_info.pattern, |
base::Bind(&EmptySuccessCallback)); |
} |