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

Unified Diff: chrome/common/chrome_switches.h

Issue 2166513002: Create --disable-extensions-except switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed ExtensionServiceTest.ExternalUninstall test failing 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
Index: chrome/common/chrome_switches.h
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 8ce9d08c43149abf7a79894bf635d939ddaab6db..f270db5028faebba503f991588e04f4a02d6918e 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -14,6 +14,9 @@
// installer where dependencies should be limited. Instead, have files
// directly include your switch file.
+namespace base {
+class CommandLine;
+};
Devlin 2016/08/29 20:53:40 nit: newline after this.
namespace switches {
// -----------------------------------------------------------------------------
@@ -74,6 +77,7 @@ extern const char kDisableDefaultApps[];
extern const char kDisableDeviceDiscoveryNotifications[];
extern const char kDisableDomainReliability[];
extern const char kDisableExtensions[];
+extern const char kDisableExtensionsExcept[];
extern const char kDisableExtensionsFileAccessCheck[];
extern const char kDisableExtensionsHttpThrottling[];
extern const char kDisableFieldTrialTestingConfig[];
@@ -385,6 +389,7 @@ extern const char kEnableInputImeAPI[];
#endif
bool AboutInSettingsEnabled();
+bool ExtensionsDisabled(const base::CommandLine& command_line);
bool MdFeedbackEnabled();
bool MdPolicyPageEnabled();
bool PdfMaterialUIEnabled();

Powered by Google App Engine
This is Rietveld 408576698