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

Unified Diff: content/browser/devtools/devtools_frontend_host_impl.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/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..82f83cfe83f8fc40a337412c3bd81b165e87f4f6 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 kInjectedDevToolsJS[] = "devtools.js";
pfeldman 2015/06/01 15:47:51 compatibility_script
dgozman 2015/06/02 10:51:56 Done.
+}
+
// 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(
+ kInjectedDevToolsJS).as_string()));
}
DevToolsFrontendHostImpl::~DevToolsFrontendHostImpl() {

Powered by Google App Engine
This is Rietveld 408576698