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

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

Issue 155067: Hookup Print HTML page to the DOM UI for Print Preview and Settings... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/chrome_url_data_manager.cc ('k') | chrome/browser/dom_ui/print_ui.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_factory.cc
===================================================================
--- chrome/browser/dom_ui/dom_ui_factory.cc (revision 20594)
+++ chrome/browser/dom_ui/dom_ui_factory.cc (working copy)
@@ -42,11 +42,14 @@
return true;
}
+// TODO(mhm) Make sure this ifdef is removed once print is complete.
+#if !defined(GOOGLE_CHROME_BUILD)
if (url.SchemeIs(chrome::kPrintScheme)) {
if (new_ui)
*new_ui = new PrintUI(tab_contents);
return true;
}
+#endif
#ifdef CHROME_PERSONALIZATION
if (Personalization::NeedsDOMUI(url)) {
@@ -106,7 +109,8 @@
bool DOMUIFactory::HasDOMUIScheme(const GURL& url) {
return url.SchemeIs(chrome::kChromeInternalScheme) ||
url.SchemeIs(chrome::kChromeUIScheme) ||
- url.SchemeIs(chrome::kExtensionScheme);
+ url.SchemeIs(chrome::kExtensionScheme) ||
+ url.SchemeIs(chrome::kPrintScheme);
}
// static
« no previous file with comments | « chrome/browser/dom_ui/chrome_url_data_manager.cc ('k') | chrome/browser/dom_ui/print_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698