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

Unified Diff: trunk/src/chrome/common/chrome_switches.cc

Issue 299273003: Revert 272587 "Remove kEnablePrintPreview now that the pdf plugi..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « trunk/src/chrome/common/chrome_switches.h ('k') | trunk/src/chrome/test/data/webui/print_preview.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/common/chrome_switches.cc
===================================================================
--- trunk/src/chrome/common/chrome_switches.cc (revision 272619)
+++ trunk/src/chrome/common/chrome_switches.cc (working copy)
@@ -331,9 +331,6 @@
const char kDisablePrerenderLocalPredictor[] =
"disable-prerender-local-predictor";
-// Disables print preview (For testing, and for users who don't like us. :[ )
-const char kDisablePrintPreview[] = "disable-print-preview";
-
// Normally when the user attempts to navigate to a page that was the result of
// a post we prompt to make sure they want to. This switch may be used to
// disable that check. This switch is used during automated testing.
@@ -1412,6 +1409,18 @@
const char kFileManagerExtensionPath[] = "filemgr-ext-path";
#endif
+// Controls print preview in the browser process.
+#if defined(GOOGLE_CHROME_BUILD)
+// Disables print preview (For testing, and for users who don't like us. :[ )
+const char kDisablePrintPreview[] = "disable-print-preview";
+#else
+// Enables print preview. Chromium normally does not have the PDF viewer,
+// required for print preview.
+// pdf.dll or libpdf.so should be present in primary directory of
+// Chromium. For local builds it's usually out/Debug or out/Release.
+const char kEnablePrintPreview[] = "enable-print-preview";
+#endif
+
// -----------------------------------------------------------------------------
// DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
//
« no previous file with comments | « trunk/src/chrome/common/chrome_switches.h ('k') | trunk/src/chrome/test/data/webui/print_preview.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698