Do not assume that the orientation is PORTRAIT by default.
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blobd48cf514060fc5f8a783bfbb958a70ecbc0ef835
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 // 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 // Integer flag that sets the DeviceRegistered local state pref.
31 const char kDeviceRegistered[] = "device-registered";
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 // Avoid doing expensive animations upon login.
47 const char kDisableLoginAnimations[] = "disable-login-animations";
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 Quickoffice component app thus handlers won't be registered so
56 // it will be possible to install another version as normal app for testing.
57 const char kDisableQuickofficeComponentApp[] =
58 "disable-quickoffice-component-app";
60 // Disables volume adjust sound.
61 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound";
63 // Disables notifications about captive portals in session.
64 const char kDisableNetworkPortalNotification[] =
65 "disable-network-portal-notification";
67 // Disables portal detection and network error handling before auto
68 // update.
69 const char kDisableOOBEBlockingUpdate[] =
70 "disable-oobe-blocking-update";
72 // Enables overriding the path for the default echo component extension.
73 // Useful for testing.
74 const char kEchoExtensionPath[] = "echo-ext-path";
76 // Enables switching between different cellular carriers from the UI.
77 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
79 // Enables notifications about captive portals in session.
80 const char kEnableNetworkPortalNotification[] =
81 "enable-network-portal-notification";
83 // Enable "interactive" mode for stub implemenations (e.g. PowerManagerClient)
84 const char kEnableStubInteractive[] = "enable-stub-interactive";
86 // Enables touchpad three-finger-click as middle button.
87 const char kEnableTouchpadThreeFingerClick[]
88 = "enable-touchpad-three-finger-click";
90 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
91 // than the kiosk app mode.
92 const char kEnableKioskMode[] = "enable-kiosk-mode";
94 // Enables request of tablet site (via user agent override).
95 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
97 // Whether to enable forced enterprise re-enrollment.
98 const char kEnterpriseEnableForcedReEnrollment[] =
99 "enterprise-enable-forced-re-enrollment";
101 // Power of the power-of-2 initial modulus that will be used by the
102 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
103 const char kEnterpriseEnrollmentInitialModulus[] =
104 "enterprise-enrollment-initial-modulus";
106 // Power of the power-of-2 maximum modulus that will be used by the
107 // auto-enrollment client.
108 const char kEnterpriseEnrollmentModulusLimit[] =
109 "enterprise-enrollment-modulus-limit";
111 // Don't create robot account on enrollment. Used when testing device
112 // enrollment against YAPS or the Python test server.
113 const char kEnterpriseEnrollmentSkipRobotAuth[] =
114 "enterprise-enrollment-skip-robot-auth";
116 // Enables the new audio player in the Files.app.
117 const char kFileManagerEnableNewAudioPlayer[] =
118 "file-manager-enable-new-audio-player";
120 // Passed to Chrome the first time that it's run after the system boots.
121 // Not passed on restart after sign out.
122 const char kFirstExecAfterBoot[] = "first-exec-after-boot";
124 // Usually in browser tests the usual login manager bringup is skipped so that
125 // tests can change how it's brought up. This flag disables that.
126 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
128 // Indicates that the browser is in "browse without sign-in" (Guest session)
129 // mode. Should completely disable extensions, sync and bookmarks.
130 const char kGuestSession[] = "bwsi";
132 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
133 // Chromeboxes.
134 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
136 // If true, the Chromebook has a keyboard with a diamond key.
137 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
139 // Path for the screensaver used in Kiosk mode
140 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
142 // Allows override of oobe for testing - goes directly to the login screen.
143 const char kLoginScreen[] = "login-screen";
145 // Enables Chrome-as-a-login-manager behavior.
146 const char kLoginManager[] = "login-manager";
148 // Specifies a password to be used to login (along with login-user).
149 const char kLoginPassword[] = "login-password";
151 // Specifies the profile to use once a chromeos user is logged in.
152 const char kLoginProfile[] = "login-profile";
154 // Specifies the user which is already logged in.
155 const char kLoginUser[] = "login-user";
157 // Enables natural scroll by default.
158 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
160 // Skips all other OOBE pages after user login.
161 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
163 // Interval at which we check for total time on OOBE.
164 const char kOobeTimerInterval[] = "oobe-timer-interval";
166 // Specifies network stub behavior. If this switch is not specified,
167 // ethernet, wifi and vpn are enabled by default, and transitions occur
168 // instantaneously. Multiple options can be comma separated (no spaces).
169 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
170 // Examples:
171 // 'wifi=on' - A wifi network is initially connected ('1' also works)
172 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
173 // 'wifi=disabled' - Wifi is initially disabled
174 // 'wifi=none' - Wifi is unavailable
175 // 'wifi=portal' - Wifi connection will be in Portal state
176 // 'cellular=1' - Cellular is initially connected
177 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
178 const char kShillStub[] = "shill-stub";
180 // Skips the machine hwid check. Useful for running in VMs because they have no
181 // hwid.
182 const char kSkipHWIDCheck[] = "skip-hwid-check";
184 // Sends test messages on first call to RequestUpdate (stub only).
185 const char kSmsTestMessages[] = "sms-test-messages";
187 // Indicates that a stub implementation of CrosSettings that stores settings in
188 // memory without signing should be used, treating current user as the owner.
189 // This option is for testing the chromeos build of chrome on the desktop only.
190 const char kStubCrosSettings[] = "stub-cros-settings";
192 // Disables user image sync.
193 const char kDisableUserImageSync[] = "disable-user-image-sync";
195 // Disables SAML sigin support.
196 const char kDisableSamlSignin[] = "disable-saml-signin";
198 // Overrides the manifest of the GAIA auth extension with the given file.
199 const char kGAIAAuthExtensionManifest[] = "gaia-auth-extension-manifest";
201 // Disables new first-run overlay UI.
202 const char kDisableFirstRunUI[] = "disable-first-run-ui";
204 // Enables animated transitions during first-run tutorial.
205 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
207 // Forces first-run UI to be shown for every login.
208 const char kForceFirstRunUI[] = "force-first-run-ui";
210 // Enables testing for auto update UI.
211 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
213 // Enables features required for supervised user sync,
214 const char kEnableSupervisedPasswordSync[] = "enable-supervised-password-sync";
216 } // namespace switches
217 } // namespace chromeos