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

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

Issue 13305002: Remove redundant DevToolsManager methods and clean up its clients. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 9 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/worker_devtools_manager.cc
diff --git a/content/browser/devtools/worker_devtools_manager.cc b/content/browser/devtools/worker_devtools_manager.cc
index 4a19c6251eff26090d116df317283e63273a5667..db5cc7484f26fd0e3eafe6dda0935a7a16abc60a 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;
« no previous file with comments | « content/browser/devtools/render_view_devtools_agent_host.cc ('k') | content/public/browser/devtools_agent_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698