diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/chrome_browser_main.cc | 7 | ||||
-rw-r--r-- | chrome/common/chrome_switches.cc | 8 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 5 |
3 files changed, 14 insertions, 6 deletions
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc index cb2e244..c143449 100644 --- a/chrome/browser/chrome_browser_main.cc +++ b/chrome/browser/chrome_browser_main.cc @@ -173,7 +173,6 @@ #include "chrome/installer/util/install_util.h" #include "chrome/installer/util/shell_util.h" #include "net/base/net_util.h" -#include "printing/printed_document.h" #include "ui/base/l10n/l10n_util_win.h" #include "ui/gfx/win/dpi.h" #endif // defined(OS_WIN) @@ -185,6 +184,10 @@ #include "chrome/browser/mac/keystone_glue.h" #endif +#if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) +#include "printing/printed_document.h" +#endif + #if defined(ENABLE_RLZ) #include "chrome/browser/rlz/rlz.h" #endif @@ -1397,7 +1400,7 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() { if (parsed_command_line().HasSwitch(switches::kEnableWatchdog)) InstallJankometer(parsed_command_line()); -#if defined(OS_WIN) && !defined(GOOGLE_CHROME_BUILD) +#if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) if (parsed_command_line().HasSwitch(switches::kDebugPrint)) { base::FilePath path = parsed_command_line().GetSwitchValuePath(switches::kDebugPrint); diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 8c7efc6..100d844 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -1468,9 +1468,6 @@ const char kRelauncherProcess[] = "relauncher"; const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles"; #if defined(OS_WIN) -// Enables support to debug printing subsystem. -const char kDebugPrint[] = "debug-print"; - // Fallback to XPS. By default connector uses CDD. const char kEnableCloudPrintXps[] = "enable-cloud-print-xps"; @@ -1505,6 +1502,11 @@ const char kWaitForMutex[] = "wait-for-mutex"; const char kWindows8Search[] = "windows8-search"; #endif +#if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) +// Enables support to debug printing subsystem. +const char kDebugPrint[] = "debug-print"; +#endif + #ifndef NDEBUG // Enables overriding the path of file manager extension. const char kFileManagerExtensionPath[] = "filemgr-ext-path"; diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 860b793..ad3879c 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -416,7 +416,6 @@ extern const char kRelauncherProcess[]; #endif #if defined(OS_WIN) -extern const char kDebugPrint[]; extern const char kEnableCloudPrintXps[]; extern const char kEnableProfileShortcutManager[]; extern const char kForceDesktop[]; @@ -428,6 +427,10 @@ extern const char kWaitForMutex[]; extern const char kWindows8Search[]; #endif +#if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD) +extern const char kDebugPrint[]; +#endif + #ifndef NDEBUG extern const char kFileManagerExtensionPath[]; extern const char kImageLoaderExtensionPath[]; |