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

Unified Diff: content/browser/devtools/devtools_agent_host_impl.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/devtools_agent_host_impl.cc
diff --git a/content/browser/devtools/devtools_agent_host_impl.cc b/content/browser/devtools/devtools_agent_host_impl.cc
index a0f337a7ed546ac2e49ddd7dcfcb6dd93f075a30..881e4bfcf04bd9379636321d08720fe16ed218d8 100644
--- a/content/browser/devtools/devtools_agent_host_impl.cc
+++ b/content/browser/devtools/devtools_agent_host_impl.cc
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/guid.h"
#include "base/lazy_instance.h"
+#include "content/browser/devtools/devtools_manager_impl.h"
namespace content {
@@ -37,6 +38,10 @@ scoped_refptr<DevToolsAgentHost> DevToolsAgentHost::GetForId(
return it->second;
}
+bool DevToolsAgentHostImpl::IsAttached() {
+ return !!DevToolsManagerImpl::GetInstance()->GetDevToolsClientHostFor(this);
+}
+
void DevToolsAgentHostImpl::InspectElement(int x, int y) {
}
« no previous file with comments | « content/browser/devtools/devtools_agent_host_impl.h ('k') | content/browser/devtools/devtools_external_agent_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698