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

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 114056)
+++ 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);
+
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) {
« no previous file with comments | « chrome/browser/resources/print_preview/print_preview_dummy.js ('k') | chrome/browser/ui/webui/print_preview_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698