| Index: content/child/service_worker/web_service_worker_registration_impl.cc
|
| diff --git a/content/child/service_worker/web_service_worker_registration_impl.cc b/content/child/service_worker/web_service_worker_registration_impl.cc
|
| index ae2705ee0b568eb48704764e0a591b0f0746cd49..67f980a2ff72494586f41e2a478227be56ffa32f 100644
|
| --- a/content/child/service_worker/web_service_worker_registration_impl.cc
|
| +++ b/content/child/service_worker/web_service_worker_registration_impl.cc
|
| @@ -57,6 +57,8 @@ WebServiceWorkerRegistrationImpl::WebServiceWorkerRegistrationImpl(
|
| ServiceWorkerDispatcher* dispatcher =
|
| ServiceWorkerDispatcher::GetThreadSpecificInstance();
|
| DCHECK(dispatcher);
|
| + if (!dispatcher)
|
| + return;
|
| dispatcher->AddServiceWorkerRegistration(handle_ref_->handle_id(), this);
|
| }
|
|
|
|
|