Roll libaddressinput deps to 51f4354
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blobc6b3a5af079ac87cbb70396f3014fb93b945d1bc
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 // Specifies the URL of the consumer device management backend.
19 const char kConsumerDeviceManagementUrl[] = "consumer-device-management-url";
21 // Forces the stub implementation of dbus clients.
22 const char kDbusStub[] = "dbus-stub";
24 // Comma-spearated list of dbus clients that should be unstubbed.
25 // See chromeos/dbus/dbus_client_bundle.cc for the names of the dbus clients.
26 const char kDbusUnstubClients[] = "dbus-unstub-clients";
28 // Time before a machine at OOBE is considered derelict.
29 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout";
31 // Time before a derelict machines starts demo mode.
32 const char kDerelictIdleTimeout[] = "derelict-idle-timeout";
34 // Disables wallpaper boot animation (except of OOBE case).
35 const char kDisableBootAnimation[] = "disable-boot-animation";
37 // Disables the ChromeOS demo.
38 const char kDisableDemoMode[] = "disable-demo-mode";
40 // Disable Easy sign-in.
41 const char kDisableEasySignin[] = "disable-easy-signin";
43 // Disable HID-detection OOBE screen.
44 const char kDisableHIDDetectionOnOOBE[] = "disable-hid-detection-on-oobe";
46 // Avoid doing expensive animations upon login.
47 const char kDisableLoginAnimations[] = "disable-login-animations";
49 // Disable login/lock UI (user pods) scrolling into view on JS side when virtual
50 // keyboard is shown.
51 const char kDisableLoginScrollIntoView[] = "disable-login-scroll-into-view";
53 // Disable new channel switcher UI.
54 const char kDisableNewChannelSwitcherUI[] = "disable-new-channel-switcher-ui";
56 // Disables new Kiosk UI when kiosk apps are represented as user pods.
57 const char kDisableNewKioskUI[] = "disable-new-kiosk-ui";
59 // Disables the new File System Provider API based ZIP unpacker.
60 const char kDisableNewZIPUnpacker[] = "disable-new-zip-unpacker";
62 // Disable Office Editing for Docs, Sheets & Slides component app so handlers
63 // won't be registered, making it possible to install another version for
64 // testing.
65 const char kDisableOfficeEditingComponentApp[] =
66 "disable-office-editing-component-extension";
68 // Disables rollback option on reset screen.
69 const char kDisableRollbackOption[] = "disable-rollback-option";
71 // Disables volume adjust sound.
72 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
74 // Disables notifications about captive portals in session.
75 const char kDisableNetworkPortalNotification[] =
76 "disable-network-portal-notification";
78 // Enables switching between different cellular carriers from the UI.
79 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
81 // Enables the next generation version of ChromeVox.
82 const char kEnableChromeVoxNext[] = "enable-chromevox-next";
84 // Enables cloud backup feature.
85 const char kEnableCloudBackup[] = "enable-cloud-backup";
87 // Enables consumer management, which allows user to enroll, remotely lock and
88 // locate the device.
89 const char kEnableConsumerManagement[] = "enable-consumer-management";
91 // If this switch is set, the device cannot be remotely disabled by its owner.
92 const char kDisableDeviceDisabling[] = "disable-device-disabling";
94 // If this switch is set, Chrome OS login screen uses |EmbeddedSignin| endpoint
95 // of GAIA.
96 const char kEnableEmbeddedSignin[] = "enable-embedded-signin";
98 // If this switch is set, the new Korean IME will be available in
99 // chrome://settings/languages.
100 const char kEnableNewKoreanIme[] = "enable-new-korean-ime";
102 // If this switch is set, the US keyboard input method will provide suggestions
103 // as typing on physical keyboard.
104 const char kEnablePhysicalKeyboardAutocorrect[] =
105 "enable-physical-keyboard-autocorrect";
107 // Enabled sharing assets for installed default apps.
108 const char kEnableExtensionAssetsSharing[] = "enable-extension-assets-sharing";
110 // Enables notifications about captive portals in session.
111 const char kEnableNetworkPortalNotification[] =
112 "enable-network-portal-notification";
114 // Enables touchpad three-finger-click as middle button.
115 const char kEnableTouchpadThreeFingerClick[]
116 = "enable-touchpad-three-finger-click";
118 // Enables using screenshots in tests and seets mode.
119 const char kEnableScreenshotTestingWithMode[] =
120 "enable-screenshot-testing-with-mode";
122 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
123 // than the kiosk app mode.
124 const char kEnableKioskMode[] = "enable-kiosk-mode";
126 // Enables request of tablet site (via user agent override).
127 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
129 // Whether to enable forced enterprise re-enrollment.
130 const char kEnterpriseEnableForcedReEnrollment[] =
131 "enterprise-enable-forced-re-enrollment";
133 // Power of the power-of-2 initial modulus that will be used by the
134 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
135 const char kEnterpriseEnrollmentInitialModulus[] =
136 "enterprise-enrollment-initial-modulus";
138 // Power of the power-of-2 maximum modulus that will be used by the
139 // auto-enrollment client.
140 const char kEnterpriseEnrollmentModulusLimit[] =
141 "enterprise-enrollment-modulus-limit";
143 // Don't create robot account on enrollment. Used when testing device
144 // enrollment against YAPS or the Python test server.
145 const char kEnterpriseEnrollmentSkipRobotAuth[] =
146 "enterprise-enrollment-skip-robot-auth";
148 // Enables the chromecast support for video player app.
149 const char kEnableVideoPlayerChromecastSupport[] =
150 "enable-video-player-chromecast-support";
152 // Passed to Chrome the first time that it's run after the system boots.
153 // Not passed on restart after sign out.
154 const char kFirstExecAfterBoot[] = "first-exec-after-boot";
156 // Usually in browser tests the usual login manager bringup is skipped so that
157 // tests can change how it's brought up. This flag disables that.
158 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
160 // Indicates that the browser is in "browse without sign-in" (Guest session)
161 // mode. Should completely disable extensions, sync and bookmarks.
162 const char kGuestSession[] = "bwsi";
164 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
165 // Chromeboxes.
166 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
168 // If true, the Chromebook has a keyboard with a diamond key.
169 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
171 // Defines user homedir. This defaults to primary user homedir.
172 const char kHomedir[] = "homedir";
174 // With this switch, start remora OOBE with the pairing screen.
175 const char kHostPairingOobe[] = "host-pairing-oobe";
177 // If true, profile selection in UserManager will always return active user's
178 // profile.
179 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we
180 // turn on multi-profile feature on ChromeOS.
181 const char kIgnoreUserProfileMappingForTests[] =
182 "ignore-user-profile-mapping-for-tests";
184 // Path for the screensaver used in Kiosk mode
185 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
187 // Enables Chrome-as-a-login-manager behavior.
188 const char kLoginManager[] = "login-manager";
190 // Specifies the profile to use once a chromeos user is logged in.
191 // This parameter is ignored if user goes through login screen since user_id
192 // hash defines which profile directory to use.
193 // In case of browser restart within active session this parameter is used
194 // to pass user_id hash for primary user.
195 const char kLoginProfile[] = "login-profile";
197 // Specifies the user which is already logged in.
198 const char kLoginUser[] = "login-user";
200 // Enables natural scroll by default.
201 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
203 // Skips all other OOBE pages after user login.
204 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
206 // Disable GAIA services such as enrollment and OAuth session restore. Used by
207 // 'fake' telemetry login.
208 const char kDisableGaiaServices[] = "disable-gaia-services";
210 // Interval at which we check for total time on OOBE.
211 const char kOobeTimerInterval[] = "oobe-timer-interval";
213 // Indicates that a guest session has been started before OOBE completion.
214 const char kOobeGuestSession[] = "oobe-guest-session";
216 // Specifies power stub behavior:
217 // 'cycle=2' - Cycles power states every 2 seconds.
218 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
219 const char kPowerStub[] = "power-stub";
221 // Overrides network stub behavior. By default, ethernet, wifi and vpn are
222 // enabled, and transitions occur instantaneously. Multiple options can be
223 // comma separated (no spaces). Note: all options are in the format 'foo=x'.
224 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
225 // Examples:
226 // 'clear=1' - Clears all default configurations
227 // 'wifi=on' - A wifi network is initially connected ('1' also works)
228 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
229 // 'wifi=disabled' - Wifi is initially disabled
230 // 'wifi=none' - Wifi is unavailable
231 // 'wifi=portal' - Wifi connection will be in Portal state
232 // 'cellular=1' - Cellular is initially connected
233 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
234 const char kShillStub[] = "shill-stub";
236 // Sends test messages on first call to RequestUpdate (stub only).
237 const char kSmsTestMessages[] = "sms-test-messages";
239 // Indicates that a stub implementation of CrosSettings that stores settings in
240 // memory without signing should be used, treating current user as the owner.
241 // This option is for testing the chromeos build of chrome on the desktop only.
242 const char kStubCrosSettings[] = "stub-cros-settings";
244 // Enables animated transitions during first-run tutorial.
245 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
247 // Forces first-run UI to be shown for every login.
248 const char kForceFirstRunUI[] = "force-first-run-ui";
250 // Enables testing for auto update UI.
251 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
253 // Enables waking the device based on the receipt of some network packets.
254 const char kWakeOnPackets[] = "wake-on-packets";
256 // Screenshot testing: specifies the directory where the golden screenshots are
257 // stored.
258 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir";
260 // Screenshot testing: specifies the directoru where artifacts will be stored.
261 const char kArtifactsDir[] = "artifacts-dir";
263 } // namespace switches
264 } // namespace chromeos