| Index: chrome/common/chrome_switches.cc
|
| diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
|
| index 6ddf8c83dc4823eef68acb6bad675a3abf2c415c..1426631f80b058c49dd6b8bffa8960536d21dfe0 100644
|
| --- a/chrome/common/chrome_switches.cc
|
| +++ b/chrome/common/chrome_switches.cc
|
| @@ -299,6 +299,9 @@ const char kDisableOfflineAutoReloadVisibleOnly[] =
|
| // Disable the origin chip.
|
| const char kDisableOriginChip[] = "disable-origin-chip";
|
|
|
| +// Disable the out of process PDF plugin.
|
| +const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf";
|
| +
|
| // Disable the setting to prompt the user for their OS account password before
|
| // revealing plaintext passwords in the password manager.
|
| const char kDisablePasswordManagerReauthentication[] =
|
| @@ -517,6 +520,9 @@ const char kDisableOfflineLoadStaleCache[] =
|
| const char kEnableOriginChipAlways[] = "enable-origin-chip-always";
|
| const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp";
|
|
|
| +// Enable the out of process PDF plugin.
|
| +const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf";
|
| +
|
| // Enables panels (always on-top docked pop-up windows).
|
| const char kEnablePanels[] = "enable-panels";
|
|
|
| @@ -884,9 +890,6 @@ const char kOriginToForceQuicOn[] = "origin-to-force-quic-on";
|
| // chrome process started. (See ProcessSingleton for more details.)
|
| const char kOriginalProcessStartTime[] = "original-process-start-time";
|
|
|
| -// Enable the out of process PDF plugin.
|
| -const char kOutOfProcessPdf[] = "out-of-process-pdf";
|
| -
|
| // Packages an extension to a .crx installable file from a given directory.
|
| const char kPackExtension[] = "pack-extension";
|
|
|
| @@ -1366,6 +1369,17 @@ bool AboutInSettingsEnabled() {
|
| ::switches::kDisableAboutInSettings);
|
| }
|
|
|
| +bool OutOfProcessPdfEnabled() {
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
|
| + return true;
|
| +
|
| + if (CommandLine::ForCurrentProcess()->HasSwitch(kDisableOutOfProcessPdf))
|
| + return false;
|
| +
|
| + // Default.
|
| + return false;
|
| +}
|
| +
|
| bool SettingsWindowEnabled() {
|
| #if defined(OS_CHROMEOS)
|
| return !CommandLine::ForCurrentProcess()->HasSwitch(
|
|
|