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

Unified Diff: chrome/browser/devtools/devtools_adb_bridge.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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_sanity_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/devtools/devtools_adb_bridge.cc
diff --git a/chrome/browser/devtools/devtools_adb_bridge.cc b/chrome/browser/devtools/devtools_adb_bridge.cc
index eddf865b3f0f7b70a04a481ee63204658393611f..1aa2548063f218fdec5731a82ca5ddcab9119581 100644
--- a/chrome/browser/devtools/devtools_adb_bridge.cc
+++ b/chrome/browser/devtools/devtools_adb_bridge.cc
@@ -329,11 +329,7 @@ class AgentHostDelegate : public base::RefCountedThreadSafe<AgentHostDelegate>,
if (!value || !value->GetAsDictionary(&dvalue))
return;
- content::DevToolsManager* manager = content::DevToolsManager::GetInstance();
- content::DevToolsClientHost* client_host =
- manager->GetDevToolsClientHostFor(proxy_->GetAgentHost());
- if (client_host)
- client_host->DispatchOnInspectorFrontend(message);
+ proxy_->DispatchOnClientHost(message);
}
void OnSocketClosed(int result) {
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_sanity_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698