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"
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 // 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 // Disables reporting recently logged in users for enterprise-managed devices.
37 const char kDisableEnterpriseUserReporting
[] =
38 "disable-enterprise-user-reporting";
40 // Disable Genius App and use the original Help App instead.
41 const char kDisableGeniusApp
[] = "disable-genius-app";
43 // Avoid doing expensive animations upon login.
44 const char kDisableLoginAnimations
[] = "disable-login-animations";
46 // Disable new channel switcher UI.
47 const char kDisableNewChannelSwitcherUI
[] = "disable-new-channel-switcher-ui";
49 // Disables new Kiosk UI when kiosk apps are represented as user pods.
50 const char kDisableNewKioskUI
[] = "disable-new-kiosk-ui";
52 // Disable Quickoffice component app thus handlers won't be registered so
53 // it will be possible to install another version as normal app for testing.
54 const char kDisableQuickofficeComponentApp
[] =
55 "disable-quickoffice-component-app";
57 // Disables volume adjust sound.
58 const char kDisableVolumeAdjustSound
[] = "disable-volume-adjust-sound";
60 // Disables notifications about captive portals in session.
61 const char kDisableNetworkPortalNotification
[] =
62 "disable-network-portal-notification";
64 // Disables portal detection and network error handling before auto
66 const char kDisableOOBEBlockingUpdate
[] =
67 "disable-oobe-blocking-update";
69 // Enables overriding the path for the default echo component extension.
70 // Useful for testing.
71 const char kEchoExtensionPath
[] = "echo-ext-path";
73 // Enables switching between different cellular carriers from the UI.
74 const char kEnableCarrierSwitching
[] = "enable-carrier-switching";
76 // Enables notifications about captive portals in session.
77 const char kEnableNetworkPortalNotification
[] =
78 "enable-network-portal-notification";
80 // Enables touchpad three-finger-click as middle button.
81 const char kEnableTouchpadThreeFingerClick
[]
82 = "enable-touchpad-three-finger-click";
84 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
85 // than the kiosk app mode.
86 const char kEnableKioskMode
[] = "enable-kiosk-mode";
88 // Enables request of tablet site (via user agent override).
89 const char kEnableRequestTabletSite
[] = "enable-request-tablet-site";
91 // Whether to enable forced enterprise re-enrollment.
92 const char kEnterpriseEnableForcedReEnrollment
[] =
93 "enterprise-enable-forced-re-enrollment";
95 // Power of the power-of-2 initial modulus that will be used by the
96 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
97 const char kEnterpriseEnrollmentInitialModulus
[] =
98 "enterprise-enrollment-initial-modulus";
100 // Power of the power-of-2 maximum modulus that will be used by the
101 // auto-enrollment client.
102 const char kEnterpriseEnrollmentModulusLimit
[] =
103 "enterprise-enrollment-modulus-limit";
105 // Don't create robot account on enrollment. Used when testing device
106 // enrollment against YAPS or the Python test server.
107 const char kEnterpriseEnrollmentSkipRobotAuth
[] =
108 "enterprise-enrollment-skip-robot-auth";
110 // Enables the new audio player in the Files.app.
111 const char kFileManagerEnableNewAudioPlayer
[] =
112 "file-manager-enable-new-audio-player";
114 // Passed to Chrome the first time that it's run after the system boots.
115 // Not passed on restart after sign out.
116 const char kFirstExecAfterBoot
[] = "first-exec-after-boot";
118 // Usually in browser tests the usual login manager bringup is skipped so that
119 // tests can change how it's brought up. This flag disables that.
120 const char kForceLoginManagerInTests
[] = "force-login-manager-in-tests";
122 // Indicates that the browser is in "browse without sign-in" (Guest session)
123 // mode. Should completely disable extensions, sync and bookmarks.
124 const char kGuestSession
[] = "bwsi";
126 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
128 const char kHasChromeOSKeyboard
[] = "has-chromeos-keyboard";
130 // If true, the Chromebook has a keyboard with a diamond key.
131 const char kHasChromeOSDiamondKey
[] = "has-chromeos-diamond-key";
133 // Path for the screensaver used in Kiosk mode
134 const char kKioskModeScreensaverPath
[] = "kiosk-mode-screensaver-path";
136 // Allows override of oobe for testing - goes directly to the login screen.
137 const char kLoginScreen
[] = "login-screen";
139 // Enables Chrome-as-a-login-manager behavior.
140 const char kLoginManager
[] = "login-manager";
142 // Specifies a password to be used to login (along with login-user).
143 const char kLoginPassword
[] = "login-password";
145 // Specifies the profile to use once a chromeos user is logged in.
146 const char kLoginProfile
[] = "login-profile";
148 // Specifies the user which is already logged in.
149 const char kLoginUser
[] = "login-user";
151 // Enables natural scroll by default.
152 const char kNaturalScrollDefault
[] = "enable-natural-scroll-default";
154 // Skips all other OOBE pages after user login.
155 const char kOobeSkipPostLogin
[] = "oobe-skip-postlogin";
157 // Interval at which we check for total time on OOBE.
158 const char kOobeTimerInterval
[] = "oobe-timer-interval";
160 // Specifies power stub behavior:
161 // 'cycle=2' - Cycles power states every 2 seconds.
162 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
163 const char kPowerStub
[] = "power-stub";
165 // Specifies network stub behavior. If this switch is not specified,
166 // ethernet, wifi and vpn are enabled by default, and transitions occur
167 // instantaneously. Multiple options can be comma separated (no spaces).
168 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
170 // 'wifi=on' - A wifi network is initially connected ('1' also works)
171 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
172 // 'wifi=disabled' - Wifi is initially disabled
173 // 'wifi=none' - Wifi is unavailable
174 // 'wifi=portal' - Wifi connection will be in Portal state
175 // 'cellular=1' - Cellular is initially connected
176 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
177 const char kShillStub
[] = "shill-stub";
179 // Skips the machine hwid check. Useful for running in VMs because they have no
181 const char kSkipHWIDCheck
[] = "skip-hwid-check";
183 // Sends test messages on first call to RequestUpdate (stub only).
184 const char kSmsTestMessages
[] = "sms-test-messages";
186 // Indicates that a stub implementation of CrosSettings that stores settings in
187 // memory without signing should be used, treating current user as the owner.
188 // This option is for testing the chromeos build of chrome on the desktop only.
189 const char kStubCrosSettings
[] = "stub-cros-settings";
191 // Disables user image sync.
192 const char kDisableUserImageSync
[] = "disable-user-image-sync";
194 // Disables SAML sigin support.
195 const char kDisableSamlSignin
[] = "disable-saml-signin";
197 // Overrides the manifest of the GAIA auth extension with the given file.
198 const char kGAIAAuthExtensionManifest
[] = "gaia-auth-extension-manifest";
200 // Disables new first-run overlay UI.
201 const char kDisableFirstRunUI
[] = "disable-first-run-ui";
203 // Enables animated transitions during first-run tutorial.
204 const char kEnableFirstRunUITransitions
[] = "enable-first-run-ui-transitions";
206 // Forces first-run UI to be shown for every login.
207 const char kForceFirstRunUI
[] = "force-first-run-ui";
209 // Enables testing for auto update UI.
210 const char kTestAutoUpdateUI
[] = "test-auto-update-ui";
212 // Enables features required for supervised user sync,
213 const char kEnableSupervisedPasswordSync
[] = "enable-supervised-password-sync";
215 } // namespace switches
216 } // namespace chromeos