OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromeos/chromeos_switches.h" | 5 #include "chromeos/chromeos_switches.h" |
6 | 6 |
7 namespace chromeos { | 7 namespace chromeos { |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // Path for app's OEM manifest file. | 10 // Path for app's OEM manifest file. |
11 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; | 11 const char kAppOemManifestFile[] = "app-mode-oem-manifest"; |
12 | 12 |
13 // When wallpaper boot animation is not disabled this switch | 13 // When wallpaper boot animation is not disabled this switch |
14 // is used to override OOBE/sign in WebUI init type. | 14 // is used to override OOBE/sign in WebUI init type. |
15 // Possible values: parallel|postpone. Default: parallel. | 15 // Possible values: parallel|postpone. Default: parallel. |
16 const char kAshWebUIInit[] = "ash-webui-init"; | 16 const char kAshWebUIInit[] = "ash-webui-init"; |
17 | 17 |
18 // Specifies the URL of the consumer device management backend. | 18 // Specifies the URL of the consumer device management backend. |
19 const char kConsumerDeviceManagementUrl[] = "consumer-device-management-url"; | 19 const char kConsumerDeviceManagementUrl[] = "consumer-device-management-url"; |
20 | 20 |
21 // Forces the stub implementation of dbus clients. | 21 // Forces the stub implementation of dbus clients. |
22 const char kDbusStub[] = "dbus-stub"; | 22 const char kDbusStub[] = "dbus-stub"; |
23 | 23 |
24 // Time before a machine at OOBE is considered derelict. | 24 // Time before a machine at OOBE is considered derelict. |
25 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout"; | 25 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout"; |
26 | 26 |
27 // Time before a derelict machines starts demo mode. | 27 // Time before a derelict machines starts demo mode. |
28 const char kDerelictIdleTimeout[] = "derelict-idle-timeout"; | 28 const char kDerelictIdleTimeout[] = "derelict-idle-timeout"; |
29 | 29 |
30 // Disables wallpaper boot animation (except of OOBE case). | 30 // Disables wallpaper boot animation (except of OOBE case). |
31 const char kDisableBootAnimation[] = "disable-boot-animation"; | 31 const char kDisableBootAnimation[] = "disable-boot-animation"; |
32 | 32 |
33 // Disables the ChromeOS demo. | 33 // Disables the ChromeOS demo. |
34 const char kDisableDemoMode[] = "disable-demo-mode"; | 34 const char kDisableDemoMode[] = "disable-demo-mode"; |
35 | 35 |
36 // Disable Genius App and use the original Help App instead. | 36 // Disable Genius App and use the original Help App instead. |
37 const char kDisableGeniusApp[] = "disable-genius-app"; | 37 const char kDisableGeniusApp[] = "disable-genius-app"; |
38 | 38 |
39 // Avoid doing expensive animations upon login. | 39 // Avoid doing expensive animations upon login. |
40 const char kDisableLoginAnimations[] = "disable-login-animations"; | 40 const char kDisableLoginAnimations[] = "disable-login-animations"; |
41 | 41 |
42 // Disable login UI (user pods) scrolling into view on JS side when virtual | 42 // Disable login UI (user pods) scrolling into view on JS side when virtual |
43 // keyboard is shown. | 43 // keyboard is shown. |
44 const char kDisableLoginScrollIntoView[] = "disable-login-scroll-into-view"; | 44 const char kDisableLoginScrollIntoView[] = "disable-login-scroll-into-view"; |
45 | 45 |
46 // Disable new channel switcher UI. | 46 // Disable new channel switcher UI. |
47 const char kDisableNewChannelSwitcherUI[] = "disable-new-channel-switcher-ui"; | 47 const char kDisableNewChannelSwitcherUI[] = "disable-new-channel-switcher-ui"; |
48 | 48 |
49 // Disables new Kiosk UI when kiosk apps are represented as user pods. | 49 // Disables new Kiosk UI when kiosk apps are represented as user pods. |
50 const char kDisableNewKioskUI[] = "disable-new-kiosk-ui"; | 50 const char kDisableNewKioskUI[] = "disable-new-kiosk-ui"; |
51 | 51 |
52 // Disable Quickoffice component app thus handlers won't be registered so | 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. | 53 // it will be possible to install another version as normal app for testing. |
54 const char kDisableQuickofficeComponentApp[] = | 54 const char kDisableQuickofficeComponentApp[] = |
55 "disable-quickoffice-component-app"; | 55 "disable-quickoffice-component-app"; |
56 | 56 |
57 // Disables volume adjust sound. | 57 // Disables volume adjust sound. |
58 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound"; | 58 const char kDisableVolumeAdjustSound[] = "disable-volume-adjust-sound"; |
59 | 59 |
60 // Disables notifications about captive portals in session. | 60 // Disables notifications about captive portals in session. |
61 const char kDisableNetworkPortalNotification[] = | 61 const char kDisableNetworkPortalNotification[] = |
62 "disable-network-portal-notification"; | 62 "disable-network-portal-notification"; |
63 | 63 |
64 // Enables switching between different cellular carriers from the UI. | 64 // Enables switching between different cellular carriers from the UI. |
65 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; | 65 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; |
66 | 66 |
67 // Enables the next generation version of ChromeVox. Only valid with | 67 // Enables the next generation version of ChromeVox. Only valid with |
68 // use_chromevox_next=1 within your GYP_DEFINES. | 68 // use_chromevox_next=1 within your GYP_DEFINES. |
69 const char kEnableChromeVoxNext[] = "enable-chromevox-next"; | 69 const char kEnableChromeVoxNext[] = "enable-chromevox-next"; |
70 | 70 |
71 // Enables consumer management, which allows user to enroll, remotely lock and | 71 // Enables consumer management, which allows user to enroll, remotely lock and |
72 // locate the device. | 72 // locate the device. |
73 const char kEnableConsumerManagement[] = "enable-consumer-management"; | 73 const char kEnableConsumerManagement[] = "enable-consumer-management"; |
| 74 |
| 75 // If this switch is set, Chrome OS login screen uses |EmbeddedSignin| endpoint |
| 76 // of GAIA. |
| 77 const char kEnableEmbeddedSignin[] = "enable-embedded-signin"; |
74 | 78 |
75 // Enables MTP support in Files.app. | 79 // Enables MTP support in Files.app. |
76 const char kEnableFileManagerMTP[] = "enable-filemanager-mtp"; | 80 const char kEnableFileManagerMTP[] = "enable-filemanager-mtp"; |
77 | 81 |
78 // Enable explicit HID detection on OOBE. | 82 // Enable explicit HID detection on OOBE. |
79 const char kEnableHIDDetectionOnOOBE[] = "enable-hid-detection-on-oobe"; | 83 const char kEnableHIDDetectionOnOOBE[] = "enable-hid-detection-on-oobe"; |
80 | 84 |
81 // Enables notifications about captive portals in session. | 85 // Enables notifications about captive portals in session. |
82 const char kEnableNetworkPortalNotification[] = | 86 const char kEnableNetworkPortalNotification[] = |
83 "enable-network-portal-notification"; | 87 "enable-network-portal-notification"; |
84 | 88 |
85 // Enables touchpad three-finger-click as middle button. | 89 // Enables touchpad three-finger-click as middle button. |
86 const char kEnableTouchpadThreeFingerClick[] | 90 const char kEnableTouchpadThreeFingerClick[] |
87 = "enable-touchpad-three-finger-click"; | 91 = "enable-touchpad-three-finger-click"; |
88 | 92 |
89 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather | 93 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather |
90 // than the kiosk app mode. | 94 // than the kiosk app mode. |
91 const char kEnableKioskMode[] = "enable-kiosk-mode"; | 95 const char kEnableKioskMode[] = "enable-kiosk-mode"; |
92 | 96 |
93 // Enables rollback option for resetting ChromeOS. | 97 // Enables rollback option for resetting ChromeOS. |
94 const char kEnableRollbackOption[] = "enable-rollback-option"; | 98 const char kEnableRollbackOption[] = "enable-rollback-option"; |
95 | 99 |
96 // Enables request of tablet site (via user agent override). | 100 // Enables request of tablet site (via user agent override). |
97 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; | 101 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; |
98 | 102 |
99 // Whether to enable forced enterprise re-enrollment. | 103 // Whether to enable forced enterprise re-enrollment. |
100 const char kEnterpriseEnableForcedReEnrollment[] = | 104 const char kEnterpriseEnableForcedReEnrollment[] = |
101 "enterprise-enable-forced-re-enrollment"; | 105 "enterprise-enable-forced-re-enrollment"; |
102 | 106 |
103 // Power of the power-of-2 initial modulus that will be used by the | 107 // Power of the power-of-2 initial modulus that will be used by the |
104 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16. | 108 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16. |
105 const char kEnterpriseEnrollmentInitialModulus[] = | 109 const char kEnterpriseEnrollmentInitialModulus[] = |
106 "enterprise-enrollment-initial-modulus"; | 110 "enterprise-enrollment-initial-modulus"; |
107 | 111 |
108 // Power of the power-of-2 maximum modulus that will be used by the | 112 // Power of the power-of-2 maximum modulus that will be used by the |
109 // auto-enrollment client. | 113 // auto-enrollment client. |
110 const char kEnterpriseEnrollmentModulusLimit[] = | 114 const char kEnterpriseEnrollmentModulusLimit[] = |
111 "enterprise-enrollment-modulus-limit"; | 115 "enterprise-enrollment-modulus-limit"; |
112 | 116 |
113 // Don't create robot account on enrollment. Used when testing device | 117 // Don't create robot account on enrollment. Used when testing device |
114 // enrollment against YAPS or the Python test server. | 118 // enrollment against YAPS or the Python test server. |
115 const char kEnterpriseEnrollmentSkipRobotAuth[] = | 119 const char kEnterpriseEnrollmentSkipRobotAuth[] = |
116 "enterprise-enrollment-skip-robot-auth"; | 120 "enterprise-enrollment-skip-robot-auth"; |
117 | 121 |
118 // Enables the new audio player in the Files.app. | 122 // Enables the new audio player in the Files.app. |
119 const char kFileManagerEnableNewAudioPlayer[] = | 123 const char kFileManagerEnableNewAudioPlayer[] = |
120 "file-manager-enable-new-audio-player"; | 124 "file-manager-enable-new-audio-player"; |
121 | 125 |
122 // Passed to Chrome the first time that it's run after the system boots. | 126 // Passed to Chrome the first time that it's run after the system boots. |
123 // Not passed on restart after sign out. | 127 // Not passed on restart after sign out. |
124 const char kFirstExecAfterBoot[] = "first-exec-after-boot"; | 128 const char kFirstExecAfterBoot[] = "first-exec-after-boot"; |
125 | 129 |
126 // Usually in browser tests the usual login manager bringup is skipped so that | 130 // Usually in browser tests the usual login manager bringup is skipped so that |
127 // tests can change how it's brought up. This flag disables that. | 131 // tests can change how it's brought up. This flag disables that. |
128 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests"; | 132 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests"; |
129 | 133 |
130 // Indicates that the browser is in "browse without sign-in" (Guest session) | 134 // Indicates that the browser is in "browse without sign-in" (Guest session) |
131 // mode. Should completely disable extensions, sync and bookmarks. | 135 // mode. Should completely disable extensions, sync and bookmarks. |
132 const char kGuestSession[] = "bwsi"; | 136 const char kGuestSession[] = "bwsi"; |
133 | 137 |
134 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for | 138 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for |
135 // Chromeboxes. | 139 // Chromeboxes. |
136 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard"; | 140 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard"; |
137 | 141 |
138 // If true, the Chromebook has a keyboard with a diamond key. | 142 // If true, the Chromebook has a keyboard with a diamond key. |
139 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; | 143 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key"; |
140 | 144 |
141 // Defines user homedir. This defaults to primary user homedir. | 145 // Defines user homedir. This defaults to primary user homedir. |
142 const char kHomedir[] = "homedir"; | 146 const char kHomedir[] = "homedir"; |
143 | 147 |
144 // If true, profile selection in UserManager will always return active user's | 148 // If true, profile selection in UserManager will always return active user's |
145 // profile. | 149 // profile. |
146 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we | 150 // TODO(nkostlyev): http://crbug.com/364604 - Get rid of this switch after we |
147 // turn on multi-profile feature on ChromeOS. | 151 // turn on multi-profile feature on ChromeOS. |
148 const char kIgnoreUserProfileMappingForTests[] = | 152 const char kIgnoreUserProfileMappingForTests[] = |
149 "ignore-user-profile-mapping-for-tests"; | 153 "ignore-user-profile-mapping-for-tests"; |
150 | 154 |
151 // Path for the screensaver used in Kiosk mode | 155 // Path for the screensaver used in Kiosk mode |
152 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path"; | 156 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path"; |
153 | 157 |
154 // Enables Chrome-as-a-login-manager behavior. | 158 // Enables Chrome-as-a-login-manager behavior. |
155 const char kLoginManager[] = "login-manager"; | 159 const char kLoginManager[] = "login-manager"; |
156 | 160 |
157 // Specifies a password to be used to login (along with login-user). | 161 // Specifies a password to be used to login (along with login-user). |
158 const char kLoginPassword[] = "login-password"; | 162 const char kLoginPassword[] = "login-password"; |
159 | 163 |
160 // Specifies the profile to use once a chromeos user is logged in. This is | 164 // Specifies the profile to use once a chromeos user is logged in. This is |
161 // required unless --multi-profile is set. | 165 // required unless --multi-profile is set. |
162 const char kLoginProfile[] = "login-profile"; | 166 const char kLoginProfile[] = "login-profile"; |
163 | 167 |
164 // Specifies the user which is already logged in. | 168 // Specifies the user which is already logged in. |
165 const char kLoginUser[] = "login-user"; | 169 const char kLoginUser[] = "login-user"; |
166 | 170 |
167 // Enables natural scroll by default. | 171 // Enables natural scroll by default. |
168 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; | 172 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; |
169 | 173 |
170 // Skips all other OOBE pages after user login. | 174 // Skips all other OOBE pages after user login. |
171 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; | 175 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; |
172 | 176 |
173 // Interval at which we check for total time on OOBE. | 177 // Interval at which we check for total time on OOBE. |
174 const char kOobeTimerInterval[] = "oobe-timer-interval"; | 178 const char kOobeTimerInterval[] = "oobe-timer-interval"; |
175 | 179 |
176 // Indicates that a guest session has been started before OOBE completion. | 180 // Indicates that a guest session has been started before OOBE completion. |
177 const char kOobeGuestSession[] = "oobe-guest-session"; | 181 const char kOobeGuestSession[] = "oobe-guest-session"; |
178 | 182 |
179 // Specifies power stub behavior: | 183 // Specifies power stub behavior: |
180 // 'cycle=2' - Cycles power states every 2 seconds. | 184 // 'cycle=2' - Cycles power states every 2 seconds. |
181 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. | 185 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details. |
182 const char kPowerStub[] = "power-stub"; | 186 const char kPowerStub[] = "power-stub"; |
183 | 187 |
184 // Specifies network stub behavior. If this switch is not specified, | 188 // Specifies network stub behavior. If this switch is not specified, |
185 // ethernet, wifi and vpn are enabled by default, and transitions occur | 189 // ethernet, wifi and vpn are enabled by default, and transitions occur |
186 // instantaneously. Multiple options can be comma separated (no spaces). | 190 // instantaneously. Multiple options can be comma separated (no spaces). |
187 // See FakeShillManagerClient::SetInitialNetworkState for implementation. | 191 // See FakeShillManagerClient::SetInitialNetworkState for implementation. |
188 // Examples: | 192 // Examples: |
189 // 'wifi=on' - A wifi network is initially connected ('1' also works) | 193 // 'wifi=on' - A wifi network is initially connected ('1' also works) |
190 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works) | 194 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works) |
191 // 'wifi=disabled' - Wifi is initially disabled | 195 // 'wifi=disabled' - Wifi is initially disabled |
192 // 'wifi=none' - Wifi is unavailable | 196 // 'wifi=none' - Wifi is unavailable |
193 // 'wifi=portal' - Wifi connection will be in Portal state | 197 // 'wifi=portal' - Wifi connection will be in Portal state |
194 // 'cellular=1' - Cellular is initially connected | 198 // 'cellular=1' - Cellular is initially connected |
195 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs | 199 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs |
196 const char kShillStub[] = "shill-stub"; | 200 const char kShillStub[] = "shill-stub"; |
197 | 201 |
198 // Sends test messages on first call to RequestUpdate (stub only). | 202 // Sends test messages on first call to RequestUpdate (stub only). |
199 const char kSmsTestMessages[] = "sms-test-messages"; | 203 const char kSmsTestMessages[] = "sms-test-messages"; |
200 | 204 |
201 // Indicates that a stub implementation of CrosSettings that stores settings in | 205 // Indicates that a stub implementation of CrosSettings that stores settings in |
202 // memory without signing should be used, treating current user as the owner. | 206 // memory without signing should be used, treating current user as the owner. |
203 // This option is for testing the chromeos build of chrome on the desktop only. | 207 // This option is for testing the chromeos build of chrome on the desktop only. |
204 const char kStubCrosSettings[] = "stub-cros-settings"; | 208 const char kStubCrosSettings[] = "stub-cros-settings"; |
205 | 209 |
206 // Disables SAML sigin support. | 210 // Disables SAML sigin support. |
207 const char kDisableSamlSignin[] = "disable-saml-signin"; | 211 const char kDisableSamlSignin[] = "disable-saml-signin"; |
208 | 212 |
209 // Enables animated transitions during first-run tutorial. | 213 // Enables animated transitions during first-run tutorial. |
210 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions"; | 214 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions"; |
211 | 215 |
212 // Forces first-run UI to be shown for every login. | 216 // Forces first-run UI to be shown for every login. |
213 const char kForceFirstRunUI[] = "force-first-run-ui"; | 217 const char kForceFirstRunUI[] = "force-first-run-ui"; |
214 | 218 |
215 // Enables testing for auto update UI. | 219 // Enables testing for auto update UI. |
216 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; | 220 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; |
217 | 221 |
218 } // namespace switches | 222 } // namespace switches |
219 } // namespace chromeos | 223 } // namespace chromeos |
OLD | NEW |