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

Unified Diff: chrome/browser/ui/webui/inspect_ui.cc

Issue 467653002: Revert of [DevTools] Make DevTools clients talk directly to DevToolsAgentHost instead of using DevToolsManage… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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: chrome/browser/ui/webui/inspect_ui.cc
diff --git a/chrome/browser/ui/webui/inspect_ui.cc b/chrome/browser/ui/webui/inspect_ui.cc
index 6624e41904bab8960f69b9e70ab29893245a9389..dc203b6b345de2ef5accf6a07cfbc8cd89f7c0ef 100644
--- a/chrome/browser/ui/webui/inspect_ui.cc
+++ b/chrome/browser/ui/webui/inspect_ui.cc
@@ -16,6 +16,7 @@
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
#include "content/public/browser/devtools_agent_host.h"
+#include "content/public/browser/devtools_manager.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
#include "content/public/browser/notification_types.h"
@@ -291,7 +292,10 @@
// Install devtools bindings.
DevToolsUIBindings* bindings = new DevToolsUIBindings(front_end,
frontend_url);
- bindings->AttachTo(agent_host.get());
+
+ // Engage remote debugging between front-end and agent host.
+ content::DevToolsManager::GetInstance()->RegisterDevToolsClientHostFor(
+ agent_host, bindings);
}
void InspectUI::InspectDevices(Browser* browser) {

Powered by Google App Engine
This is Rietveld 408576698