Protect WebURLLoaderImpl::Context while receiving responses.
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blob1452a3909956e0a18657da45902f0186c4c38278
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
3 // found in the LICENSE file.
5 #include "chromeos/chromeos_switches.h"
7 namespace chromeos {
8 namespace switches {
10 // Path for app's OEM manifest file.
11 const char kAppOemManifestFile[] = "app-mode-oem-manifest";
13 // When wallpaper boot animation is not disabled this switch
14 // is used to override OOBE/sign in WebUI init type.
15 // Possible values: parallel|postpone. Default: parallel.
16 const char kAshWebUIInit[] = "ash-webui-init";
18 // Enables overriding the path for the default authentication extension.
19 const char kAuthExtensionPath[] = "auth-ext-path";
21 // Enables overriding the Chrome OS board type when running on Linux.
22 const char kChromeOSReleaseBoard[] = "chromeos-release-board";
24 // Forces the stub implementation of dbus clients.
25 const char kDbusStub[] = "dbus-stub";
27 // Disables Kiosk app mode for ChromeOS.
28 const char kDisableAppMode[] = "disable-app-mode";
30 // Disables wallpaper boot animation (except of OOBE case).
31 const char kDisableBootAnimation[] = "disable-boot-animation";
33 // Disables Chrome Captive Portal detector, which initiates Captive
34 // Portal detection for new active networks.
35 const char kDisableChromeCaptivePortalDetector[] =
36 "disable-chrome-captive-portal-detector";
38 // Disables Google Drive integration.
39 const char kDisableDrive[] = "disable-drive";
41 // Disable policy-configured local accounts.
42 const char kDisableLocalAccounts[] = "disable-local-accounts";
44 // Avoid doing expensive animations upon login.
45 const char kDisableLoginAnimations[] = "disable-login-animations";
47 // Disable Quickoffice component app thus handlers won't be registered so
48 // it will be possible to install another version as normal app for testing.
49 const char kDisableQuickofficeComponentApp[] =
50 "disable-quickoffice-component-app";
52 // Disables fetching online CrOS EULA page, only static version is shown.
53 const char kDisableOnlineEULA[] = "disable-cros-online-eula";
55 // Avoid doing animations upon oobe.
56 const char kDisableOobeAnimation[] = "disable-oobe-animation";
58 // Disables portal detection and network error handling before auto
59 // update.
60 const char kDisableOOBEBlockingUpdate[] =
61 "disable-oobe-blocking-update";
63 // Disables fake ethernet network in the stub implementations.
64 const char kDisableStubEthernet[] = "disable-stub-ethernet";
66 // Enables overriding the path for the default echo component extension.
67 // Useful for testing.
68 const char kEchoExtensionPath[] = "echo-ext-path";
70 // Enables component extension that initializes background pages of
71 // certain hosted applications.
72 const char kEnableBackgroundLoader[] = "enable-background-loader";
74 // Enables switching between different cellular carriers from the UI.
75 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
77 // Enable switching between audio devices in Chrome instead of cras.
78 const char kEnableChromeAudioSwitching[] = "enable-chrome-audio-switching";
80 // Enables Chrome Captive Portal detector, which initiates Captive
81 // Portal detection for new active networks.
82 const char kEnableChromeCaptivePortalDetector[] =
83 "enable-chrome-captive-portal-detector";
85 // Disables the new NetworkChangeNotifier which uses NetworkStateHandler.
86 const char kDisableNewNetworkChangeNotifier[] =
87 "disable-new-network-change-notifier";
89 // Enables screensaver extensions.
90 const char kEnableScreensaverExtensions[] = "enable-screensaver-extensions";
92 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
93 const char kEnableStubInteractive[] = "enable-stub-interactive";
95 // Enables touchpad three-finger-click as middle button.
96 const char kEnableTouchpadThreeFingerClick[]
97 = "enable-touchpad-three-finger-click";
99 // Enables touchpad three-finger swipe.
100 const char kEnableTouchpadThreeFingerSwipe[]
101 = "enable-touchpad-three-finger-swipe";
103 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
104 // than the kiosk app mode.
105 const char kEnableKioskMode[] = "enable-kiosk-mode";
107 // Enables request of tablet site (via user agent override).
108 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
110 // Enables static ip configuration. This flag should be removed when it's on by
111 // default.
112 const char kEnableStaticIPConfig[] = "enable-static-ip-config";
114 // Power of the power-of-2 initial modulus that will be used by the
115 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
116 const char kEnterpriseEnrollmentInitialModulus[] =
117 "enterprise-enrollment-initial-modulus";
119 // Power of the power-of-2 maximum modulus that will be used by the
120 // auto-enrollment client.
121 const char kEnterpriseEnrollmentModulusLimit[] =
122 "enterprise-enrollment-modulus-limit";
124 // Loads the File Manager as an extension instead of a platform app.
125 // This flag is obsolete. Remove it, once Files.app v2 is stable.
126 const char kFileManagerLegacy[] = "file-manager-legacy";
128 // Loads the File Manager with the legacy UI.
129 const char kFileManagerLegacyUI[] = "file-manager-legacy-ui";
131 // Passed to Chrome on first boot. Not passed on restart after sign out.
132 const char kFirstBoot[] = "first-boot";
134 // Usually in browser tests the usual login manager bringup is skipped so that
135 // tests can change how it's brought up. This flag disables that.
136 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
138 // Indicates that the browser is in "browse without sign-in" (Guest session)
139 // mode. Should completely disable extensions, sync and bookmarks.
140 const char kGuestSession[] = "bwsi";
142 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
143 // Chromeboxes.
144 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
146 // If true, the Chromebook has a keyboard with a diamond key.
147 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
149 // Path for the screensaver used in Kiosk mode
150 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
152 // Enables Chrome-as-a-login-manager behavior.
153 const char kLoginManager[] = "login-manager";
155 // Specifies a password to be used to login (along with login-user).
156 const char kLoginPassword[] = "login-password";
158 // Specifies the profile to use once a chromeos user is logged in.
159 const char kLoginProfile[] = "login-profile";
161 // Specifies the user which is already logged in.
162 const char kLoginUser[] = "login-user";
164 // Enables natural scroll by default.
165 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
167 // Disables tab discard in low memory conditions, a feature which silently
168 // closes inactive tabs to free memory and to attempt to avoid the kernel's
169 // out-of-memory process killer.
170 const char kNoDiscardTabs[] = "no-discard-tabs";
172 #ifndef NDEBUG
173 // Skips all other OOBE pages after user login.
174 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
175 #endif // NDEBUG
177 // Skips the machine hwid check. Useful for running in VMs because they have no
178 // hwid.
179 const char kSkipHWIDCheck[] = "skip-hwid-check";
181 // Sends test messages on first call to RequestUpdate (stub only).
182 const char kSmsTestMessages[] = "sms-test-messages";
184 // Indicates that a stub implementation of CrosSettings that stores settings in
185 // memory without signing should be used, treating current user as the owner.
186 // This option is for testing the chromeos build of chrome on the desktop only.
187 const char kStubCrosSettings[] = "stub-cros-settings";
189 // Enables usage of the new ManagedNetworkConfigurationHandler and
190 // NetworkConfigurationHandler singletons.
191 const char kUseNewNetworkConfigurationHandlers[] =
192 "use-new-network-configuration-handlers";
194 const char kUseNewNetworkConnectionHandler[] =
195 "use-new-network-connection-handler";
197 } // namespace switches
198 } // namespace chromeos