Update V8 to version 3.28.54 (based on bleeding_edge revision r22797).
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blob471c2507febf18c34e30412f6b1b461f951cead8
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 // Time before a machine at OOBE is considered derelict.
25 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout";
27 // Time before a derelict machines starts demo mode.
28 const char kDerelictIdleTimeout[] = "derelict-idle-timeout";
30 // Disables wallpaper boot animation (except of OOBE case).
31 const char kDisableBootAnimation[] = "disable-boot-animation";
33 // Disables the ChromeOS demo.
34 const char kDisableDemoMode[] = "disable-demo-mode";
36 // Disable Genius App and use the original Help App instead.
37 const char kDisableGeniusApp[] = "disable-genius-app";
39 // Disable HID-detection OOBE screen.
40 const char kDisableHIDDetectionOnOOBE[] = "disable-hid-detection-on-oobe";
42 // Avoid doing expensive animations upon login.
43 const char kDisableLoginAnimations[] = "disable-login-animations";
45 // Disable login/lock UI (user pods) scrolling into view on JS side when virtual
46 // keyboard is shown.
47 const char kDisableLoginScrollIntoView[] = "disable-login-scroll-into-view";
49 // Disable new channel switcher UI.
50 const char kDisableNewChannelSwitcherUI[] = "disable-new-channel-switcher-ui";
52 // Disables new Kiosk UI when kiosk apps are represented as user pods.
53 const char kDisableNewKioskUI[] = "disable-new-kiosk-ui";
55 // Disable Office Editing for Docs, Sheets & Slides component app so handlers
56 // won't be registered, making it possible to install another version for
57 // testing.
58 const char kDisableOfficeEditingComponentApp[] =
59 "disable-office-editing-component-extension";
61 // Disables rollback option on reset screen.
62 const char kDisableRollbackOption[] = "disable-rollback-option";
64 // Disables volume adjust sound.
65 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
67 // Disables notifications about captive portals in session.
68 const char kDisableNetworkPortalNotification[] =
69 "disable-network-portal-notification";
71 // Enables switching between different cellular carriers from the UI.
72 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
74 // Enables the next generation version of ChromeVox. Only valid with
75 // use_chromevox_next=1 within your GYP_DEFINES.
76 const char kEnableChromeVoxNext[] = "enable-chromevox-next";
78 // Enables consumer management, which allows user to enroll, remotely lock and
79 // locate the device.
80 const char kEnableConsumerManagement[] = "enable-consumer-management";
82 // If this switch is set, Chrome OS login screen uses |EmbeddedSignin| endpoint
83 // of GAIA.
84 const char kEnableEmbeddedSignin[] = "enable-embedded-signin";
86 // Enabled sharing assets for installed default apps.
87 const char kEnableExtensionAssetsSharing[] = "enable-extension-assets-sharing";
89 // Enables MTP support in Files.app.
90 const char kEnableFileManagerMTP[] = "enable-filemanager-mtp";
92 // Enables notifications about captive portals in session.
93 const char kEnableNetworkPortalNotification[] =
94 "enable-network-portal-notification";
96 // Enables activation of voice search by saying 'Ok Google'.
97 const char kEnableOkGoogleVoiceSearch[] = "enable-ok-google-voice-search";
99 // Enables touchpad three-finger-click as middle button.
100 const char kEnableTouchpadThreeFingerClick[]
101 = "enable-touchpad-three-finger-click";
103 // Enables using screenshots in tests and seets mode.
104 const char kEnableScreenshotTestingWithMode[] =
105 "enable-screenshot-testing-with-mode";
107 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
108 // than the kiosk app mode.
109 const char kEnableKioskMode[] = "enable-kiosk-mode";
111 // Enables request of tablet site (via user agent override).
112 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
114 // Whether to enable forced enterprise re-enrollment.
115 const char kEnterpriseEnableForcedReEnrollment[] =
116 "enterprise-enable-forced-re-enrollment";
118 // Power of the power-of-2 initial modulus that will be used by the
119 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
120 const char kEnterpriseEnrollmentInitialModulus[] =
121 "enterprise-enrollment-initial-modulus";
123 // Power of the power-of-2 maximum modulus that will be used by the
124 // auto-enrollment client.
125 const char kEnterpriseEnrollmentModulusLimit[] =
126 "enterprise-enrollment-modulus-limit";
128 // Don't create robot account on enrollment. Used when testing device
129 // enrollment against YAPS or the Python test server.
130 const char kEnterpriseEnrollmentSkipRobotAuth[] =
131 "enterprise-enrollment-skip-robot-auth";
133 // Enables the new gallery in the Files.app.
134 const char kFileManagerEnableNewGallery[] =
135 "file-manager-enable-new-gallery";
137 // Enables the chromecast support for video player app.
138 const char kEnableVideoPlayerChromecastSupport[] =
139 "enable-video-player-chromecast-support";
141 // Passed to Chrome the first time that it's run after the system boots.
142 // Not passed on restart after sign out.
143 const char kFirstExecAfterBoot[] = "first-exec-after-boot";
145 // Usually in browser tests the usual login manager bringup is skipped so that
146 // tests can change how it's brought up. This flag disables that.
147 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
149 // Indicates that the browser is in "browse without sign-in" (Guest session)
150 // mode. Should completely disable extensions, sync and bookmarks.
151 const char kGuestSession[] = "bwsi";
153 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
154 // Chromeboxes.
155 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
157 // If true, the Chromebook has a keyboard with a diamond key.
158 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
160 // Defines user homedir. This defaults to primary user homedir.
161 const char kHomedir[] = "homedir";
163 // If true, profile selection in UserManager will always return active user's
164 // profile.
165 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we
166 // turn on multi-profile feature on ChromeOS.
167 const char kIgnoreUserProfileMappingForTests[] =
168 "ignore-user-profile-mapping-for-tests";
170 // Path for the screensaver used in Kiosk mode
171 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
173 // Enables Chrome-as-a-login-manager behavior.
174 const char kLoginManager[] = "login-manager";
176 // Specifies the profile to use once a chromeos user is logged in.
177 // This parameter is ignored if user goes through login screen since user_id
178 // hash defines which profile directory to use.
179 // In case of browser restart within active session this parameter is used
180 // to pass user_id hash for primary user.
181 const char kLoginProfile[] = "login-profile";
183 // Specifies the user which is already logged in.
184 const char kLoginUser[] = "login-user";
186 // Enables natural scroll by default.
187 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
189 // Skips all other OOBE pages after user login.
190 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
192 // Disable GAIA services such as enrollment and OAuth session restore. Used by
193 // 'fake' telemetry login.
194 const char kDisableGaiaServices[] = "disable-gaia-services";
196 // Interval at which we check for total time on OOBE.
197 const char kOobeTimerInterval[] = "oobe-timer-interval";
199 // Indicates that a guest session has been started before OOBE completion.
200 const char kOobeGuestSession[] = "oobe-guest-session";
202 // Specifies power stub behavior:
203 // 'cycle=2' - Cycles power states every 2 seconds.
204 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
205 const char kPowerStub[] = "power-stub";
207 // Overrides network stub behavior. By default, ethernet, wifi and vpn are
208 // enabled, and transitions occur instantaneously. Multiple options can be
209 // comma separated (no spaces). Note: all options are in the format 'foo=x'.
210 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
211 // Examples:
212 // 'clear=1' - Clears all default configurations
213 // 'wifi=on' - A wifi network is initially connected ('1' also works)
214 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
215 // 'wifi=disabled' - Wifi is initially disabled
216 // 'wifi=none' - Wifi is unavailable
217 // 'wifi=portal' - Wifi connection will be in Portal state
218 // 'cellular=1' - Cellular is initially connected
219 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
220 const char kShillStub[] = "shill-stub";
222 // If this switch is set, controller pairing process is displayed after update
223 // stage of OOBE.
224 const char kShowControllerPairingDemo[] = "show-controller-pairing-demo";
226 // If this switch is set, controller pairing process is displayed after update
227 // stage of OOBE.
228 const char kShowHostPairingDemo[] = "show-host-pairing-demo";
230 // Sends test messages on first call to RequestUpdate (stub only).
231 const char kSmsTestMessages[] = "sms-test-messages";
233 // Indicates that a stub implementation of CrosSettings that stores settings in
234 // memory without signing should be used, treating current user as the owner.
235 // This option is for testing the chromeos build of chrome on the desktop only.
236 const char kStubCrosSettings[] = "stub-cros-settings";
238 // Enables animated transitions during first-run tutorial.
239 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
241 // Forces first-run UI to be shown for every login.
242 const char kForceFirstRunUI[] = "force-first-run-ui";
244 // Enables testing for auto update UI.
245 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
247 // Screenshot testing: specifies the directory where the golden screenshots are
248 // stored.
249 const char kGoldenScreenshotsDir[] = "golden-screenshots-dir";
251 // Screenshot testing: specifies the directoru where artifacts will be stored.
252 const char kArtifactsDir[] = "artifacts-dir";
254 } // namespace switches
255 } // namespace chromeos