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

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: Addressed review comments 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
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/common/devtools_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/common/url_constants.cc ('k') | content/common/devtools_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698