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 dc203b6b345de2ef5accf6a07cfbc8cd89f7c0ef..6624e41904bab8960f69b9e70ab29893245a9389 100644 |
--- a/chrome/browser/ui/webui/inspect_ui.cc |
+++ b/chrome/browser/ui/webui/inspect_ui.cc |
@@ -16,7 +16,6 @@ |
#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" |
@@ -292,10 +291,7 @@ void InspectUI::InspectBrowserWithCustomFrontend( |
// Install devtools bindings. |
DevToolsUIBindings* bindings = new DevToolsUIBindings(front_end, |
frontend_url); |
- |
- // Engage remote debugging between front-end and agent host. |
- content::DevToolsManager::GetInstance()->RegisterDevToolsClientHostFor( |
- agent_host, bindings); |
+ bindings->AttachTo(agent_host.get()); |
} |
void InspectUI::InspectDevices(Browser* browser) { |