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

Unified Diff: chrome/browser/dom_ui/dom_ui_contents.cc

Issue 21540: Add developer tools message forwarding to browser (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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/browser/dom_ui/dom_ui_contents.h ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/dom_ui_contents.cc
===================================================================
--- chrome/browser/dom_ui/dom_ui_contents.cc (revision 10454)
+++ chrome/browser/dom_ui/dom_ui_contents.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/dom_ui/dom_ui_contents.h"
#include "chrome/browser/debugger/debugger_contents.h"
+#include "chrome/browser/dom_ui/dev_tools_ui.h"
#include "chrome/browser/dom_ui/dom_ui.h"
#include "chrome/browser/dom_ui/downloads_ui.h"
#include "chrome/browser/dom_ui/history_ui.h"
@@ -167,6 +168,11 @@
return web_prefs;
}
+void DOMUIContents::RenderViewCreated(RenderViewHost* render_view_host) {
+ DCHECK(current_ui_);
+ current_ui_->RenderViewCreated(render_view_host);
+}
+
bool DOMUIContents::ShouldDisplayFavIcon() {
if (current_ui_)
return current_ui_->ShouldDisplayFavIcon();
@@ -238,6 +244,8 @@
return new DownloadsUI(this);
} else if (url.host() == DebuggerContents::GetBaseURL().host()) {
return new DebuggerContents(this);
+ } else if (url.host() == DevToolsUI::GetBaseURL().host()) {
+ return new DevToolsUI(this);
}
#else
NOTIMPLEMENTED();
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_contents.h ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698