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

Unified Diff: chrome/common/chrome_switches.cc

Issue 2166513002: Create --disable-extensions-except switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed patch 10 code review Created 4 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
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/common/chrome_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698