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

Unified Diff: chrome/browser/ui/webui/constrained_html_ui.cc

Issue 8872051: Print preview: Display a dummy page when a user visits chrome://print directly. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years 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: chrome/browser/ui/webui/constrained_html_ui.cc
===================================================================
--- chrome/browser/ui/webui/constrained_html_ui.cc (revision 113720)
+++ chrome/browser/ui/webui/constrained_html_ui.cc (working copy)
@@ -29,6 +29,8 @@
}
void ConstrainedHtmlUI::RenderViewCreated(RenderViewHost* render_view_host) {
+ ChromeWebUI::RenderViewCreated(render_view_host);
Lei Zhang 2011/12/09 01:16:56 Better to just do this first.
+
ConstrainedHtmlUIDelegate* delegate = GetConstrainedDelegate();
if (!delegate)
return;
@@ -53,8 +55,6 @@
chrome::NOTIFICATION_HTML_DIALOG_SHOWN,
content::Source<WebUI>(this),
content::Details<RenderViewHost>(render_view_host));
-
- ChromeWebUI::RenderViewCreated(render_view_host);
}
void ConstrainedHtmlUI::OnDialogCloseMessage(const ListValue* args) {

Powered by Google App Engine
This is Rietveld 408576698