Less strict CHECK for DeviceCapabilities results.
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blob028b30adffdf0235f72fedf7d02edb14dcc8d8c3
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 // Forces the stub implementation of dbus clients.
22 const char kDbusStub[] = "dbus-stub";
24 // All stub networks are idle by default.
25 const char kDefaultStubNetworkStateIdle[] = "default-stub-network-state-idle";
27 // Time before a machine at OOBE is considered derelict
28 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout";
30 // Time before a derelict machines starts demo mode.
31 const char kDerelictIdleTimeout[] = "derelict-idle-timeout";
33 // Disables wallpaper boot animation (except of OOBE case).
34 const char kDisableBootAnimation[] = "disable-boot-animation";
36 // Disables the ChromeOS demo.
37 const char kDisableDemoMode[] = "disable-demo-mode";
39 // Disables reporting recently logged in users for enterprise-managed devices.
40 const char kDisableEnterpriseUserReporting[] =
41 "disable-enterprise-user-reporting";
43 // Disable Genius App and use the original Help App instead.
44 const char kDisableGeniusApp[] = "disable-genius-app";
46 // Disable policy-configured local accounts.
47 const char kDisableLocalAccounts[] = "disable-local-accounts";
49 // Avoid doing expensive animations upon login.
50 const char kDisableLoginAnimations[] = "disable-login-animations";
52 // Disable new channel switcher UI.
53 const char kDisableNewChannelSwitcherUI[] = "disable-new-channel-switcher-ui";
55 // Disables new Kiosk UI when kiosk apps are represented as user pods.
56 const char kDisableNewKioskUI[] = "disable-new-kiosk-ui";
58 // Disable Quickoffice component app thus handlers won't be registered so
59 // it will be possible to install another version as normal app for testing.
60 const char kDisableQuickofficeComponentApp[] =
61 "disable-quickoffice-component-app";
63 // Disables volume adjust sound.
64 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
66 // Disables notifications about captive portals in session.
67 const char kDisableNetworkPortalNotification[] =
68 "disable-network-portal-notification";
70 // Disables fetching online CrOS EULA page, only static version is shown.
71 const char kDisableOnlineEULA[] = "disable-cros-online-eula";
73 // Avoid doing animations upon oobe.
74 const char kDisableOobeAnimation[] = "disable-oobe-animation";
76 // Disables portal detection and network error handling before auto
77 // update.
78 const char kDisableOOBEBlockingUpdate[] =
79 "disable-oobe-blocking-update";
81 // Enables overriding the path for the default echo component extension.
82 // Useful for testing.
83 const char kEchoExtensionPath[] = "echo-ext-path";
85 // Enables component extension that initializes background pages of
86 // certain hosted applications.
87 const char kEnableBackgroundLoader[] = "enable-background-loader";
89 // Enables switching between different cellular carriers from the UI.
90 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
92 // Enables notifications about captive portals in session.
93 const char kEnableNetworkPortalNotification[] =
94 "enable-network-portal-notification";
96 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
97 const char kEnableStubInteractive[] = "enable-stub-interactive";
99 // Enable stub portalled wifi network for testing.
100 const char kEnableStubPortalledWifi[] = "enable-stub-portalled-wifi";
102 // Enables touchpad three-finger-click as middle button.
103 const char kEnableTouchpadThreeFingerClick[]
104 = "enable-touchpad-three-finger-click";
106 // Specifies stub network types to be enabled. If this switch is not specified,
107 // ethernet, wifi and vpn are enabled by default.
109 // Examples:
110 // Disable all network types: --enabled-stub-network-types=''
111 // Enable wifi only: --enabled-stub-network-types=wifi
112 // Enable ethernet and wifi: --enabled-stub-network-types=ethernet,wifi
113 const char kEnabledStubNetworkTypes[] = "enabled-stub-network-types";
115 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
116 // than the kiosk app mode.
117 const char kEnableKioskMode[] = "enable-kiosk-mode";
119 // Enables request of tablet site (via user agent override).
120 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
122 // Power of the power-of-2 initial modulus that will be used by the
123 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
124 const char kEnterpriseEnrollmentInitialModulus[] =
125 "enterprise-enrollment-initial-modulus";
127 // Power of the power-of-2 maximum modulus that will be used by the
128 // auto-enrollment client.
129 const char kEnterpriseEnrollmentModulusLimit[] =
130 "enterprise-enrollment-modulus-limit";
132 // Don't create robot account on enrollment. Used when testing device
133 // enrollment against YAPS or the Python test server.
134 const char kEnterpriseEnrollmentSkipRobotAuth[] =
135 "enterprise-enrollment-skip-robot-auth";
137 // Shows the selecting checkboxes in the Files.app.
138 const char kFileManagerShowCheckboxes[] = "file-manager-show-checkboxes";
140 // Enables the new audio player in the Files.app.
141 const char kFileManagerEnableNewAudioPlayer[] =
142 "file-manager-enable-new-audio-player";
144 // Passed to Chrome the first time that it's run after the system boots.
145 // Not passed on restart after sign out.
146 const char kFirstExecAfterBoot[] = "first-exec-after-boot";
148 // Usually in browser tests the usual login manager bringup is skipped so that
149 // tests can change how it's brought up. This flag disables that.
150 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
152 // Makes GPU sandbox failures nonfatal.
153 const char kGpuSandboxFailuresNonfatal[] = "gpu-sandbox-failures-nonfatal";
155 // Indicates that the browser is in "browse without sign-in" (Guest session)
156 // mode. Should completely disable extensions, sync and bookmarks.
157 const char kGuestSession[] = "bwsi";
159 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
160 // Chromeboxes.
161 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
163 // If true, the Chromebook has a keyboard with a diamond key.
164 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
166 // Path for the screensaver used in Kiosk mode
167 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
169 // Allows override of oobe for testing - goes directly to the login screen.
170 const char kLoginScreen[] = "login-screen";
172 // Enables Chrome-as-a-login-manager behavior.
173 const char kLoginManager[] = "login-manager";
175 // Specifies a password to be used to login (along with login-user).
176 const char kLoginPassword[] = "login-password";
178 // Specifies the profile to use once a chromeos user is logged in.
179 const char kLoginProfile[] = "login-profile";
181 // Specifies the user which is already logged in.
182 const char kLoginUser[] = "login-user";
184 // Enables natural scroll by default.
185 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
187 // Skips all other OOBE pages after user login.
188 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
190 // Integer flag that sets the DeviceRegistered local state pref.
191 const char kDeviceRegistered[] = "device-registered";
193 // Skips the machine hwid check. Useful for running in VMs because they have no
194 // hwid.
195 const char kSkipHWIDCheck[] = "skip-hwid-check";
197 // Sends test messages on first call to RequestUpdate (stub only).
198 const char kSmsTestMessages[] = "sms-test-messages";
200 // Indicates that a stub implementation of CrosSettings that stores settings in
201 // memory without signing should be used, treating current user as the owner.
202 // This option is for testing the chromeos build of chrome on the desktop only.
203 const char kStubCrosSettings[] = "stub-cros-settings";
205 // Disables user image sync.
206 const char kDisableUserImageSync[] = "disable-user-image-sync";
208 // Disables SAML sigin support.
209 const char kDisableSamlSignin[] = "disable-saml-signin";
211 // Overrides the manifest of the GAIA auth extension with the given file.
212 const char kGAIAAuthExtensionManifest[] = "gaia-auth-extension-manifest";
214 // Disables new first-run overlay UI.
215 const char kDisableFirstRunUI[] = "disable-first-run-ui";
217 // Enables animated transitions during first-run tutorial.
218 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
220 // Forces first-run UI to be shown for every login.
221 const char kForceFirstRunUI[] = "force-first-run-ui";
223 // Enables testing for auto update UI.
224 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
226 // Enables features required for supervised user sync,
227 const char kEnableSupervisedPasswordSync[] = "enable-supervised-password-sync";
229 } // namespace switches
230 } // namespace chromeos