Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: content/browser/devtools/protocol/service_worker_handler.cc

Issue 2047833002: DevTools: introduce browser domain for basic target discovery. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698