| 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 a0bdabf61db8196e2f0104d6e715dfa67d828a11..dfcaa8e673d945f4074bc199909fc7174b49a93f 100644
|
| --- a/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| +++ b/content/browser/service_worker/service_worker_dispatcher_host.cc
|
| @@ -595,12 +595,14 @@ void ServiceWorkerDispatcherHost::UnregistrationComplete(
|
| int thread_id,
|
| int request_id,
|
| ServiceWorkerStatusCode status) {
|
| - if (status != SERVICE_WORKER_OK) {
|
| + if (status != SERVICE_WORKER_OK && status != SERVICE_WORKER_ERROR_NOT_FOUND) {
|
| SendUnregistrationError(thread_id, request_id, status);
|
| return;
|
| }
|
| -
|
| - Send(new ServiceWorkerMsg_ServiceWorkerUnregistered(thread_id, request_id));
|
| + const bool is_success = (status == SERVICE_WORKER_OK);
|
| + Send(new ServiceWorkerMsg_ServiceWorkerUnregistered(thread_id,
|
| + request_id,
|
| + is_success));
|
| TRACE_EVENT_ASYNC_END1(
|
| "ServiceWorker",
|
| "ServiceWorkerDispatcherHost::UnregisterServiceWorker",
|
|
|