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

Unified Diff: chrome/common/chrome_switches.cc

Issue 7631008: Print Preview: Add "print preview" back to about:flags; enable it by default just once. (Closed) Base URL: svn://chrome-svn/chrome/branches/782/src/
Patch Set: '' Created 9 years, 4 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
Index: chrome/common/chrome_switches.cc
===================================================================
--- chrome/common/chrome_switches.cc (revision 97007)
+++ chrome/common/chrome_switches.cc (working copy)
@@ -1169,21 +1169,18 @@
const char kTouchDevices[] = "touch-devices";
#endif
-#if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS) && !defined(OS_MACOSX)
// Disable print preview (Not exposed via about:flags. Only used for testing.)
const char kDisablePrintPreview[] = "disable-print-preview";
-bool IsPrintPreviewEnabled() {
- return !CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview);
-}
-#else
// Enable print preview (no PDF viewer, thus not supported with Chromium).
+// kDisablePrintPreview overrides this.
const char kEnablePrintPreview[] = "enable-print-preview";
bool IsPrintPreviewEnabled() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview))
+ return false;
return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview);
}
-#endif
bool IsInBrowserThumbnailingEnabled() {
return CommandLine::ForCurrentProcess()->HasSwitch(

Powered by Google App Engine
This is Rietveld 408576698