summaryrefslogtreecommitdiffstats
path: root/content/browser/devtools/worker_devtools_manager.cc
diff options
context:
space:
mode:
authorkaznacheev@chromium.org <kaznacheev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-01 14:19:58 +0000
committerkaznacheev@chromium.org <kaznacheev@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-01 14:19:58 +0000
commit94305ee92331cd6bf4ad0dbceb7a1ee2cc87d54b (patch)
tree8e2be64ca0367faddbf3dd79a5ca1fc026669918 /content/browser/devtools/worker_devtools_manager.cc
parent7b7b2ef63c9dd5825a2174a7caebcd283d968604 (diff)
downloadchromium_src-94305ee92331cd6bf4ad0dbceb7a1ee2cc87d54b.zip
chromium_src-94305ee92331cd6bf4ad0dbceb7a1ee2cc87d54b.tar.gz
chromium_src-94305ee92331cd6bf4ad0dbceb7a1ee2cc87d54b.tar.bz2
Remove redundant DevToolsManager methods and clean up its clients.
BUG=None TBR=jam Review URL: https://chromiumcodereview.appspot.com/13305002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191609 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/devtools/worker_devtools_manager.cc')
-rw-r--r--content/browser/devtools/worker_devtools_manager.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/content/browser/devtools/worker_devtools_manager.cc b/content/browser/devtools/worker_devtools_manager.cc
index 4a19c62..db5cc74 100644
--- a/content/browser/devtools/worker_devtools_manager.cc
+++ b/content/browser/devtools/worker_devtools_manager.cc
@@ -166,10 +166,7 @@ class WorkerDevToolsManager::DetachedClientHosts {
WorkerDevToolsAgentHost* agent = it->second;
DevToolsManagerImpl* devtools_manager = DevToolsManagerImpl::GetInstance();
- DevToolsClientHost* client_host =
- devtools_manager->GetDevToolsClientHostFor(agent);
-
- if (!client_host) {
+ if (!agent->IsAttached()) {
// Agent has no client hosts -> delete it.
RemovePendingWorkerData(id);
return;