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) { |