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 // Forces the stub implementation of dbus clients.
19 const char kDbusStub
[] = "dbus-stub";
21 // Time before a machine at OOBE is considered derelict
22 const char kDerelictDetectionTimeout
[] = "derelict-detection-timeout";
24 // Time before a derelict machines starts demo mode.
25 const char kDerelictIdleTimeout
[] = "derelict-idle-timeout";
27 // Disables wallpaper boot animation (except of OOBE case).
28 const char kDisableBootAnimation
[] = "disable-boot-animation";
30 // Disables the ChromeOS demo.
31 const char kDisableDemoMode
[] = "disable-demo-mode";
33 // Disables reporting recently logged in users for enterprise-managed devices.
34 const char kDisableEnterpriseUserReporting
[] =
35 "disable-enterprise-user-reporting";
37 // Disable Genius App and use the original Help App instead.
38 const char kDisableGeniusApp
[] = "disable-genius-app";
40 // Avoid doing expensive animations upon login.
41 const char kDisableLoginAnimations
[] = "disable-login-animations";
43 // Disable new channel switcher UI.
44 const char kDisableNewChannelSwitcherUI
[] = "disable-new-channel-switcher-ui";
46 // Disables new Kiosk UI when kiosk apps are represented as user pods.
47 const char kDisableNewKioskUI
[] = "disable-new-kiosk-ui";
49 // Disable Quickoffice component app thus handlers won't be registered so
50 // it will be possible to install another version as normal app for testing.
51 const char kDisableQuickofficeComponentApp
[] =
52 "disable-quickoffice-component-app";
54 // Disables volume adjust sound.
55 const char kDisableVolumeAdjustSound
[] = "disable-volume-adjust-sound";
57 // Disables notifications about captive portals in session.
58 const char kDisableNetworkPortalNotification
[] =
59 "disable-network-portal-notification";
61 // Enables overriding the path for the default echo component extension.
62 // Useful for testing.
63 const char kEchoExtensionPath
[] = "echo-ext-path";
65 // Enables switching between different cellular carriers from the UI.
66 const char kEnableCarrierSwitching
[] = "enable-carrier-switching";
68 // Enables notifications about captive portals in session.
69 const char kEnableNetworkPortalNotification
[] =
70 "enable-network-portal-notification";
72 // Enables touchpad three-finger-click as middle button.
73 const char kEnableTouchpadThreeFingerClick
[]
74 = "enable-touchpad-three-finger-click";
76 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
77 // than the kiosk app mode.
78 const char kEnableKioskMode
[] = "enable-kiosk-mode";
80 // Enables rollback option for resetting ChromeOS.
81 const char kEnableRollbackOption
[] = "enable-rollback-option";
83 // Enables request of tablet site (via user agent override).
84 const char kEnableRequestTabletSite
[] = "enable-request-tablet-site";
86 // Whether to enable forced enterprise re-enrollment.
87 const char kEnterpriseEnableForcedReEnrollment
[] =
88 "enterprise-enable-forced-re-enrollment";
90 // Power of the power-of-2 initial modulus that will be used by the
91 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
92 const char kEnterpriseEnrollmentInitialModulus
[] =
93 "enterprise-enrollment-initial-modulus";
95 // Power of the power-of-2 maximum modulus that will be used by the
96 // auto-enrollment client.
97 const char kEnterpriseEnrollmentModulusLimit
[] =
98 "enterprise-enrollment-modulus-limit";
100 // Don't create robot account on enrollment. Used when testing device
101 // enrollment against YAPS or the Python test server.
102 const char kEnterpriseEnrollmentSkipRobotAuth
[] =
103 "enterprise-enrollment-skip-robot-auth";
105 // Enables the new audio player in the Files.app.
106 const char kFileManagerEnableNewAudioPlayer
[] =
107 "file-manager-enable-new-audio-player";
109 // Passed to Chrome the first time that it's run after the system boots.
110 // Not passed on restart after sign out.
111 const char kFirstExecAfterBoot
[] = "first-exec-after-boot";
113 // Usually in browser tests the usual login manager bringup is skipped so that
114 // tests can change how it's brought up. This flag disables that.
115 const char kForceLoginManagerInTests
[] = "force-login-manager-in-tests";
117 // Indicates that the browser is in "browse without sign-in" (Guest session)
118 // mode. Should completely disable extensions, sync and bookmarks.
119 const char kGuestSession
[] = "bwsi";
121 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
123 const char kHasChromeOSKeyboard
[] = "has-chromeos-keyboard";
125 // If true, the Chromebook has a keyboard with a diamond key.
126 const char kHasChromeOSDiamondKey
[] = "has-chromeos-diamond-key";
128 // Path for the screensaver used in Kiosk mode
129 const char kKioskModeScreensaverPath
[] = "kiosk-mode-screensaver-path";
131 // Allows override of oobe for testing - goes directly to the login screen.
132 const char kLoginScreen
[] = "login-screen";
134 // Enables Chrome-as-a-login-manager behavior.
135 const char kLoginManager
[] = "login-manager";
137 // Specifies a password to be used to login (along with login-user).
138 const char kLoginPassword
[] = "login-password";
140 // Specifies the profile to use once a chromeos user is logged in.
141 const char kLoginProfile
[] = "login-profile";
143 // Specifies the user which is already logged in.
144 const char kLoginUser
[] = "login-user";
146 // Enables natural scroll by default.
147 const char kNaturalScrollDefault
[] = "enable-natural-scroll-default";
149 // Skips all other OOBE pages after user login.
150 const char kOobeSkipPostLogin
[] = "oobe-skip-postlogin";
152 // Interval at which we check for total time on OOBE.
153 const char kOobeTimerInterval
[] = "oobe-timer-interval";
155 // Indicates that a guest session has been started before OOBE completion.
156 const char kOobeGuestSession
[] = "oobe-guest-session";
158 // Specifies power stub behavior:
159 // 'cycle=2' - Cycles power states every 2 seconds.
160 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
161 const char kPowerStub
[] = "power-stub";
163 // Specifies network stub behavior. If this switch is not specified,
164 // ethernet, wifi and vpn are enabled by default, and transitions occur
165 // instantaneously. Multiple options can be comma separated (no spaces).
166 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
168 // 'wifi=on' - A wifi network is initially connected ('1' also works)
169 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
170 // 'wifi=disabled' - Wifi is initially disabled
171 // 'wifi=none' - Wifi is unavailable
172 // 'wifi=portal' - Wifi connection will be in Portal state
173 // 'cellular=1' - Cellular is initially connected
174 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
175 const char kShillStub
[] = "shill-stub";
177 // Skips the machine hwid check. Useful for running in VMs because they have no
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 // Disables user image sync.
190 const char kDisableUserImageSync
[] = "disable-user-image-sync";
192 // Disables SAML sigin support.
193 const char kDisableSamlSignin
[] = "disable-saml-signin";
195 // Overrides the manifest of the GAIA auth extension with the given file.
196 const char kGAIAAuthExtensionManifest
[] = "gaia-auth-extension-manifest";
198 // Disables new first-run overlay UI.
199 const char kDisableFirstRunUI
[] = "disable-first-run-ui";
201 // Enables animated transitions during first-run tutorial.
202 const char kEnableFirstRunUITransitions
[] = "enable-first-run-ui-transitions";
204 // Forces first-run UI to be shown for every login.
205 const char kForceFirstRunUI
[] = "force-first-run-ui";
207 // Enables testing for auto update UI.
208 const char kTestAutoUpdateUI
[] = "test-auto-update-ui";
210 // Enables features required for supervised user sync,
211 const char kEnableSupervisedPasswordSync
[] = "enable-supervised-password-sync";
213 } // namespace switches
214 } // namespace chromeos