Index: content/child/service_worker/service_worker_message_filter.cc |
diff --git a/content/child/service_worker/service_worker_message_filter.cc b/content/child/service_worker/service_worker_message_filter.cc |
index 15ac1d6ed4e702d12e93b7636dfd55dd97a65b4f..72cf320084a61f53dc3d060b001f7dc08d7f3feb 100644 |
--- a/content/child/service_worker/service_worker_message_filter.cc |
+++ b/content/child/service_worker/service_worker_message_filter.cc |
@@ -81,7 +81,14 @@ void ServiceWorkerMessageFilter::OnStaleMessageReceived( |
void ServiceWorkerMessageFilter::OnStaleRegistered( |
int thread_id, |
int request_id, |
- const ServiceWorkerRegistrationObjectInfo& info) { |
+ const ServiceWorkerRegistrationObjectInfo& info, |
+ const ServiceWorkerVersionAttributes& attrs) { |
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), |
+ attrs.installing.handle_id); |
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), |
+ attrs.waiting.handle_id); |
+ SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), |
+ attrs.active.handle_id); |
SendRegistrationObjectDestroyed(thread_safe_sender_.get(), info.handle_id); |
} |
@@ -90,13 +97,13 @@ void ServiceWorkerMessageFilter::OnStaleSetVersionAttributes( |
int provider_id, |
int registration_handle_id, |
int changed_mask, |
- const ServiceWorkerVersionAttributes& attributes) { |
+ const ServiceWorkerVersionAttributes& attrs) { |
SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), |
- attributes.installing.handle_id); |
+ attrs.installing.handle_id); |
SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), |
- attributes.waiting.handle_id); |
+ attrs.waiting.handle_id); |
SendServiceWorkerObjectDestroyed(thread_safe_sender_.get(), |
- attributes.active.handle_id); |
+ attrs.active.handle_id); |
SendRegistrationObjectDestroyed(thread_safe_sender_.get(), |
registration_handle_id); |
} |