Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1794)

Unified Diff: content/renderer/devtools/devtools_agent.cc

Issue 1144393004: [DevTools] Load DevTools frontend without iframe (chromium part). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-test
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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() {

Powered by Google App Engine
This is Rietveld 408576698