Index: content/browser/devtools/devtools_frontend_host_impl.cc |
diff --git a/content/browser/devtools/devtools_frontend_host_impl.cc b/content/browser/devtools/devtools_frontend_host_impl.cc |
index 712a9c9329cae2eb3c25f31536b120dafe84caa4..67981c594ed077abb8aef04bf7ce80c7955eea16 100644 |
--- a/content/browser/devtools/devtools_frontend_host_impl.cc |
+++ b/content/browser/devtools/devtools_frontend_host_impl.cc |
@@ -14,6 +14,10 @@ |
namespace content { |
+namespace { |
+const char kCompatibilityScript[] = "devtools.js"; |
+} |
+ |
// static |
DevToolsFrontendHost* DevToolsFrontendHost::Create( |
RenderFrameHost* frontend_main_frame, |
@@ -39,8 +43,10 @@ DevToolsFrontendHostImpl::DevToolsFrontendHostImpl( |
: WebContentsObserver( |
WebContents::FromRenderFrameHost(frontend_main_frame)), |
delegate_(delegate) { |
- frontend_main_frame->Send( |
- new DevToolsMsg_SetupDevToolsClient(frontend_main_frame->GetRoutingID())); |
+ frontend_main_frame->Send(new DevToolsMsg_SetupDevToolsClient( |
+ frontend_main_frame->GetRoutingID(), |
+ DevToolsFrontendHost::GetFrontendResource( |
+ kCompatibilityScript).as_string())); |
} |
DevToolsFrontendHostImpl::~DevToolsFrontendHostImpl() { |