| 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 668542b8cb8ee898ea2bb2f4a84f23e283751fdc..91ddd57dfda472292b362647156db1d1fe06e561 100644
|
| --- a/content/child/service_worker/service_worker_dispatcher.cc
|
| +++ b/content/child/service_worker/service_worker_dispatcher.cc
|
| @@ -639,7 +639,8 @@ void ServiceWorkerDispatcher::SetReadyRegistration(
|
| void ServiceWorkerDispatcher::OnSetControllerServiceWorker(
|
| int thread_id,
|
| int provider_id,
|
| - const ServiceWorkerObjectInfo& info) {
|
| + const ServiceWorkerObjectInfo& info,
|
| + bool should_notify_controllerchange) {
|
| TRACE_EVENT2("ServiceWorker",
|
| "ServiceWorkerDispatcher::OnSetControllerServiceWorker",
|
| "Thread ID", thread_id,
|
| @@ -654,7 +655,8 @@ void ServiceWorkerDispatcher::OnSetControllerServiceWorker(
|
| ScriptClientMap::iterator found = script_clients_.find(provider_id);
|
| if (found != script_clients_.end()) {
|
| // Populate the .controller field with the new worker object.
|
| - found->second->setController(GetServiceWorker(info, false));
|
| + found->second->setController(GetServiceWorker(info, false),
|
| + should_notify_controllerchange);
|
| }
|
| }
|
|
|
|
|