Enable disabling WebCore::GraphicsContext in telemetry.
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blobb69b538f167e8444638c7bc3a6be5108fe165be7
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 // 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 // Enables overriding the path for the default echo component extension.
65 // Useful for testing.
66 const char kEchoExtensionPath[] = "echo-ext-path";
68 // Enables switching between different cellular carriers from the UI.
69 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
71 // Enables consumer management, which allows user to enroll, remotely lock and
72 // locate the device.
73 const char kEnableConsumerManagement[] = "enable-consumer-management";
75 // Enables MTP support in Files.app.
76 const char kEnableFileManagerMTP[] = "enable-filemanager-mtp";
78 // Enables notifications about captive portals in session.
79 const char kEnableNetworkPortalNotification[] =
80 "enable-network-portal-notification";
82 // Enables touchpad three-finger-click as middle button.
83 const char kEnableTouchpadThreeFingerClick[]
84 = "enable-touchpad-three-finger-click";
86 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
87 // than the kiosk app mode.
88 const char kEnableKioskMode[] = "enable-kiosk-mode";
90 // Enables request of tablet site (via user agent override).
91 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
93 // Whether to enable forced enterprise re-enrollment.
94 const char kEnterpriseEnableForcedReEnrollment[] =
95 "enterprise-enable-forced-re-enrollment";
97 // Power of the power-of-2 initial modulus that will be used by the
98 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
99 const char kEnterpriseEnrollmentInitialModulus[] =
100 "enterprise-enrollment-initial-modulus";
102 // Power of the power-of-2 maximum modulus that will be used by the
103 // auto-enrollment client.
104 const char kEnterpriseEnrollmentModulusLimit[] =
105 "enterprise-enrollment-modulus-limit";
107 // Don't create robot account on enrollment. Used when testing device
108 // enrollment against YAPS or the Python test server.
109 const char kEnterpriseEnrollmentSkipRobotAuth[] =
110 "enterprise-enrollment-skip-robot-auth";
112 // Enables the new audio player in the Files.app.
113 const char kFileManagerEnableNewAudioPlayer[] =
114 "file-manager-enable-new-audio-player";
116 // Enables the new gallery in the Files.app.
117 const char kFileManagerEnableNewGallery[] =
118 "file-manager-enable-new-gallery";
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 // Enables Chrome-as-a-login-manager behavior.
143 const char kLoginManager[] = "login-manager";
145 // Specifies a password to be used to login (along with login-user).
146 const char kLoginPassword[] = "login-password";
148 // Specifies the profile to use once a chromeos user is logged in. This is
149 // required unless --multi-profile is set.
150 const char kLoginProfile[] = "login-profile";
152 // Specifies the user which is already logged in.
153 const char kLoginUser[] = "login-user";
155 // Enables natural scroll by default.
156 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
158 // Skips all other OOBE pages after user login.
159 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
161 // Interval at which we check for total time on OOBE.
162 const char kOobeTimerInterval[] = "oobe-timer-interval";
164 // Indicates that a guest session has been started before OOBE completion.
165 const char kOobeGuestSession[] = "oobe-guest-session";
167 // Specifies power stub behavior:
168 // 'cycle=2' - Cycles power states every 2 seconds.
169 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
170 const char kPowerStub[] = "power-stub";
172 // Specifies network stub behavior. If this switch is not specified,
173 // ethernet, wifi and vpn are enabled by default, and transitions occur
174 // instantaneously. Multiple options can be comma separated (no spaces).
175 // See FakeShillManagerClient::SetInitialNetworkState for implementation.
176 // Examples:
177 // 'wifi=on' - A wifi network is initially connected ('1' also works)
178 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works)
179 // 'wifi=disabled' - Wifi is initially disabled
180 // 'wifi=none' - Wifi is unavailable
181 // 'wifi=portal' - Wifi connection will be in Portal state
182 // 'cellular=1' - Cellular is initially connected
183 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
184 const char kShillStub[] = "shill-stub";
186 // Sends test messages on first call to RequestUpdate (stub only).
187 const char kSmsTestMessages[] = "sms-test-messages";
189 // Indicates that a stub implementation of CrosSettings that stores settings in
190 // memory without signing should be used, treating current user as the owner.
191 // This option is for testing the chromeos build of chrome on the desktop only.
192 const char kStubCrosSettings[] = "stub-cros-settings";
194 // Disables SAML sigin support.
195 const char kDisableSamlSignin[] = "disable-saml-signin";
197 // Disables new first-run overlay UI.
198 const char kDisableFirstRunUI[] = "disable-first-run-ui";
200 // Enables animated transitions during first-run tutorial.
201 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
203 // Forces first-run UI to be shown for every login.
204 const char kForceFirstRunUI[] = "force-first-run-ui";
206 // Enables testing for auto update UI.
207 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
209 } // namespace switches
210 } // namespace chromeos