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

Unified Diff: content/browser/debugger/worker_devtools_manager.cc

Issue 10989012: Destroy WorkerDevToolsAgentHost when corresponding worker terminates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/debugger/worker_devtools_manager.cc
diff --git a/content/browser/debugger/worker_devtools_manager.cc b/content/browser/debugger/worker_devtools_manager.cc
index a6bb9e92b89fe48f9bae892a906a3e4e86bf55b1..a9f65aa451bf916e9326c8c4e9ae9073eef30bfa 100644
--- a/content/browser/debugger/worker_devtools_manager.cc
+++ b/content/browser/debugger/worker_devtools_manager.cc
@@ -183,6 +183,7 @@ class WorkerDevToolsManager::DetachedClientHosts {
agent,
WebKit::WebDevToolsAgent::disconnectEventAsText().utf8());
int cookie = DevToolsManagerImpl::GetInstance()->DetachClientHost(agent);
+ agent->WorkerDestroyed();
if (cookie == -1) {
RemovePendingWorkerData(id);
return;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698