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

Side by Side 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, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Defines the shared command-line switches used by code in the Chrome 5 // Defines the shared command-line switches used by code in the Chrome
6 // directory that don't have anywhere more specific to go. 6 // directory that don't have anywhere more specific to go.
7 7
8 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ 8 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_
9 #define CHROME_COMMON_CHROME_SWITCHES_H_ 9 #define CHROME_COMMON_CHROME_SWITCHES_H_
10 10
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 12
13 // Don't add more switch files here. This is linked into some places like the 13 // Don't add more switch files here. This is linked into some places like the
14 // installer where dependencies should be limited. Instead, have files 14 // installer where dependencies should be limited. Instead, have files
15 // directly include your switch file. 15 // directly include your switch file.
16 16
17 namespace base {
18 class CommandLine;
19 };
Devlin 2016/08/29 20:53:40 nit: newline after this.
17 namespace switches { 20 namespace switches {
18 21
19 // ----------------------------------------------------------------------------- 22 // -----------------------------------------------------------------------------
20 // Can't find the switch you are looking for? Try looking in 23 // Can't find the switch you are looking for? Try looking in
21 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the 24 // media/base/media_switches.cc or ui/gl/gl_switches.cc or one of the
22 // .cc files corresponding to the *_switches.h files included above 25 // .cc files corresponding to the *_switches.h files included above
23 // instead. 26 // instead.
24 // ----------------------------------------------------------------------------- 27 // -----------------------------------------------------------------------------
25 28
26 // All switches in alphabetical order. The switches should be documented 29 // All switches in alphabetical order. The switches should be documented
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 extern const char kDisableCastStreamingHWEncoding[]; 70 extern const char kDisableCastStreamingHWEncoding[];
68 extern const char kDisableChildAccountDetection[]; 71 extern const char kDisableChildAccountDetection[];
69 extern const char kDisableClearBrowsingDataCounters[]; 72 extern const char kDisableClearBrowsingDataCounters[];
70 extern const char kDisableClientSidePhishingDetection[]; 73 extern const char kDisableClientSidePhishingDetection[];
71 extern const char kDisableComponentExtensionsWithBackgroundPages[]; 74 extern const char kDisableComponentExtensionsWithBackgroundPages[];
72 extern const char kDisableComponentUpdate[]; 75 extern const char kDisableComponentUpdate[];
73 extern const char kDisableDefaultApps[]; 76 extern const char kDisableDefaultApps[];
74 extern const char kDisableDeviceDiscoveryNotifications[]; 77 extern const char kDisableDeviceDiscoveryNotifications[];
75 extern const char kDisableDomainReliability[]; 78 extern const char kDisableDomainReliability[];
76 extern const char kDisableExtensions[]; 79 extern const char kDisableExtensions[];
80 extern const char kDisableExtensionsExcept[];
77 extern const char kDisableExtensionsFileAccessCheck[]; 81 extern const char kDisableExtensionsFileAccessCheck[];
78 extern const char kDisableExtensionsHttpThrottling[]; 82 extern const char kDisableExtensionsHttpThrottling[];
79 extern const char kDisableFieldTrialTestingConfig[]; 83 extern const char kDisableFieldTrialTestingConfig[];
80 extern const char kDisableHttp2[]; 84 extern const char kDisableHttp2[];
81 extern const char kDisableMinimizeOnSecondLauncherItemClick[]; 85 extern const char kDisableMinimizeOnSecondLauncherItemClick[];
82 extern const char kDisableNewBookmarkApps[]; 86 extern const char kDisableNewBookmarkApps[];
83 extern const char kDisableOfflineAutoReload[]; 87 extern const char kDisableOfflineAutoReload[];
84 extern const char kDisableOfflineAutoReloadVisibleOnly[]; 88 extern const char kDisableOfflineAutoReloadVisibleOnly[];
85 extern const char kDisableOutOfProcessPac[]; 89 extern const char kDisableOutOfProcessPac[];
86 extern const char kDisablePermissionActionReporting[]; 90 extern const char kDisablePermissionActionReporting[];
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 #if defined(ENABLE_WAYLAND_SERVER) 382 #if defined(ENABLE_WAYLAND_SERVER)
379 extern const char kEnableWaylandServer[]; 383 extern const char kEnableWaylandServer[];
380 #endif 384 #endif
381 385
382 #if defined(OS_WIN) || defined(OS_LINUX) 386 #if defined(OS_WIN) || defined(OS_LINUX)
383 extern const char kDisableInputImeAPI[]; 387 extern const char kDisableInputImeAPI[];
384 extern const char kEnableInputImeAPI[]; 388 extern const char kEnableInputImeAPI[];
385 #endif 389 #endif
386 390
387 bool AboutInSettingsEnabled(); 391 bool AboutInSettingsEnabled();
392 bool ExtensionsDisabled(const base::CommandLine& command_line);
388 bool MdFeedbackEnabled(); 393 bool MdFeedbackEnabled();
389 bool MdPolicyPageEnabled(); 394 bool MdPolicyPageEnabled();
390 bool PdfMaterialUIEnabled(); 395 bool PdfMaterialUIEnabled();
391 bool SettingsWindowEnabled(); 396 bool SettingsWindowEnabled();
392 397
393 #if defined(OS_CHROMEOS) 398 #if defined(OS_CHROMEOS)
394 bool PowerOverlayEnabled(); 399 bool PowerOverlayEnabled();
395 #endif 400 #endif
396 401
397 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in 402 // DON'T ADD RANDOM STUFF HERE. Put it in the main section above in
398 // alphabetical order, or in one of the ifdefs (also in order in each section). 403 // alphabetical order, or in one of the ifdefs (also in order in each section).
399 404
400 } // namespace switches 405 } // namespace switches
401 406
402 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ 407 #endif // CHROME_COMMON_CHROME_SWITCHES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698