Index: chrome/common/chrome_switches.cc |
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc |
index 706e9375f094eb8c7fa17b1ecfab393fcf7db01d..e53bd9181a55b1d1b00674c74b78e6d27b8a3c0d 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[] = |
@@ -1291,6 +1294,11 @@ bool AboutInSettingsEnabled() { |
::switches::kDisableAboutInSettings); |
} |
+bool ExtensionsDisabled(const base::CommandLine& command_line) { |
+ return command_line.HasSwitch(switches::kDisableExtensions) || |
+ command_line.HasSwitch(switches::kDisableExtensionsExcept); |
+} |
+ |
bool MdFeedbackEnabled() { |
return base::CommandLine::ForCurrentProcess()->HasSwitch( |
::switches::kEnableMaterialDesignFeedback); |