| Index: chrome/common/chrome_switches.cc
|
| diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
|
| index abcd3fa4fb28a23102126d4aa11a749c11cf04f8..d18d93a40fc01b35291d3e564a329c6e86036c60 100644
|
| --- a/chrome/common/chrome_switches.cc
|
| +++ b/chrome/common/chrome_switches.cc
|
| @@ -221,6 +221,9 @@ const char kDisableDomainReliability[] = "disable-domain-reliability";
|
| // Disable extensions.
|
| const char kDisableExtensions[] = "disable-extensions";
|
|
|
| +// Disable extensions except those specified in a comma-separated list.
|
| +const char kDisableExtensionsExcept[] = "disable-extensions-except";
|
| +
|
| // Disable checking for user opt-in for extensions that want to inject script
|
| // into file URLs (ie, always allow it). This is used during automated testing.
|
| const char kDisableExtensionsFileAccessCheck[] =
|
| @@ -1302,6 +1305,13 @@ bool AboutInSettingsEnabled() {
|
| ::switches::kDisableAboutInSettings);
|
| }
|
|
|
| +bool ExtensionsDisabled() {
|
| + return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + ::switches::kDisableExtensions) ||
|
| + base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + ::switches::kDisableExtensionsExcept);
|
| +}
|
| +
|
| bool MdFeedbackEnabled() {
|
| return base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| ::switches::kEnableMaterialDesignFeedback);
|
|
|