Index: content/renderer/devtools/devtools_agent.cc |
diff --git a/content/renderer/devtools/devtools_agent.cc b/content/renderer/devtools/devtools_agent.cc |
index 9b627e0675b146c9fb64643c8891a7c27ea2c388..c9fe342befd61db2cbd550be27929bb729c46f80 100644 |
--- a/content/renderer/devtools/devtools_agent.cc |
+++ b/content/renderer/devtools/devtools_agent.cc |
@@ -261,13 +261,14 @@ void DevToolsAgent::ContinueProgram() { |
web_agent->continueProgram(); |
} |
-void DevToolsAgent::OnSetupDevToolsClient() { |
+void DevToolsAgent::OnSetupDevToolsClient( |
+ const std::string& compatibility_script) { |
// We only want to register once; and only in main frame. |
DCHECK(!frame_->GetWebFrame() || !frame_->GetWebFrame()->parent()); |
if (is_devtools_client_) |
return; |
is_devtools_client_ = true; |
- new DevToolsClient(frame_); |
+ new DevToolsClient(frame_, compatibility_script); |
} |
WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |