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..e13b493cd8be0b682290bdb70faa749ba112c989 100644 |
--- a/content/renderer/devtools/devtools_agent.cc |
+++ b/content/renderer/devtools/devtools_agent.cc |
@@ -261,13 +261,13 @@ void DevToolsAgent::ContinueProgram() { |
web_agent->continueProgram(); |
} |
-void DevToolsAgent::OnSetupDevToolsClient() { |
+void DevToolsAgent::OnSetupDevToolsClient(const std::string& injected_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_, injected_script); |
} |
WebDevToolsAgent* DevToolsAgent::GetWebAgent() { |