Index: content/child/service_worker/service_worker_dispatcher.cc |
diff --git a/content/child/service_worker/service_worker_dispatcher.cc b/content/child/service_worker/service_worker_dispatcher.cc |
index 0a45eb405110e08fc192c2965ececc0f9598cc16..30b1fd08a5a09a9371c9a0255b5f576d97fce2f4 100644 |
--- a/content/child/service_worker/service_worker_dispatcher.cc |
+++ b/content/child/service_worker/service_worker_dispatcher.cc |
@@ -262,13 +262,14 @@ void ServiceWorkerDispatcher::OnRegistered( |
void ServiceWorkerDispatcher::OnUnregistered( |
int thread_id, |
- int request_id) { |
+ int request_id, |
+ ServiceWorkerStatusCode status) { |
WebServiceWorkerUnregistrationCallbacks* callbacks = |
pending_unregistration_callbacks_.Lookup(request_id); |
DCHECK(callbacks); |
if (!callbacks) |
return; |
- bool is_success = true; |
+ bool is_success = (status == SERVICE_WORKER_OK); |
callbacks->onSuccess(&is_success); |
pending_unregistration_callbacks_.Remove(request_id); |
} |