| Index: content/browser/devtools/protocol/service_worker_handler.cc
|
| diff --git a/content/browser/devtools/protocol/service_worker_handler.cc b/content/browser/devtools/protocol/service_worker_handler.cc
|
| index e008b685875e55800eb00e814119f6635e1d6cd0..60f0241bb234140a1934d8995e2cb209a686f9d0 100644
|
| --- a/content/browser/devtools/protocol/service_worker_handler.cc
|
| +++ b/content/browser/devtools/protocol/service_worker_handler.cc
|
| @@ -387,7 +387,7 @@ Response ServiceWorkerHandler::Disable() {
|
| ServiceWorkerDevToolsManager::GetInstance()->RemoveObserver(this);
|
| ClearForceUpdate();
|
| for (const auto& pair : attached_hosts_)
|
| - pair.second->DetachClient();
|
| + pair.second->DetachClient(this);
|
| attached_hosts_.clear();
|
| DCHECK(context_watcher_);
|
| context_watcher_->Stop();
|
| @@ -684,7 +684,7 @@ void ServiceWorkerHandler::ReportWorkerTerminated(
|
| auto it = attached_hosts_.find(host->GetId());
|
| if (it == attached_hosts_.end())
|
| return;
|
| - host->DetachClient();
|
| + host->DetachClient(this);
|
| client_->WorkerTerminated(WorkerTerminatedParams::Create()->
|
| set_worker_id(host->GetId()));
|
| attached_hosts_.erase(it);
|
|
|