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 // Enables overriding the path for the default authentication extension. | 18 // Enables overriding the path for the default authentication extension. |
19 const char kAuthExtensionPath[] = "auth-ext-path"; | 19 const char kAuthExtensionPath[] = "auth-ext-path"; |
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 // All stub networks are idle by default. | |
25 const char kDefaultStubNetworkStateIdle[] = "default-stub-network-state-idle"; | |
26 | |
27 // Time before a machine at OOBE is considered derelict | 24 // Time before a machine at OOBE is considered derelict |
28 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout"; | 25 const char kDerelictDetectionTimeout[] = "derelict-detection-timeout"; |
29 | 26 |
30 // Time before a derelict machines starts demo mode. | 27 // Time before a derelict machines starts demo mode. |
31 const char kDerelictIdleTimeout[] = "derelict-idle-timeout"; | 28 const char kDerelictIdleTimeout[] = "derelict-idle-timeout"; |
32 | 29 |
| 30 // Integer flag that sets the DeviceRegistered local state pref. |
| 31 const char kDeviceRegistered[] = "device-registered"; |
| 32 |
33 // Disables wallpaper boot animation (except of OOBE case). | 33 // Disables wallpaper boot animation (except of OOBE case). |
34 const char kDisableBootAnimation[] = "disable-boot-animation"; | 34 const char kDisableBootAnimation[] = "disable-boot-animation"; |
35 | 35 |
36 // Disables the ChromeOS demo. | 36 // Disables the ChromeOS demo. |
37 const char kDisableDemoMode[] = "disable-demo-mode"; | 37 const char kDisableDemoMode[] = "disable-demo-mode"; |
38 | 38 |
39 // Disables reporting recently logged in users for enterprise-managed devices. | 39 // Disables reporting recently logged in users for enterprise-managed devices. |
40 const char kDisableEnterpriseUserReporting[] = | 40 const char kDisableEnterpriseUserReporting[] = |
41 "disable-enterprise-user-reporting"; | 41 "disable-enterprise-user-reporting"; |
42 | 42 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 // certain hosted applications. | 86 // certain hosted applications. |
87 const char kEnableBackgroundLoader[] = "enable-background-loader"; | 87 const char kEnableBackgroundLoader[] = "enable-background-loader"; |
88 | 88 |
89 // Enables switching between different cellular carriers from the UI. | 89 // Enables switching between different cellular carriers from the UI. |
90 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; | 90 const char kEnableCarrierSwitching[] = "enable-carrier-switching"; |
91 | 91 |
92 // Enables notifications about captive portals in session. | 92 // Enables notifications about captive portals in session. |
93 const char kEnableNetworkPortalNotification[] = | 93 const char kEnableNetworkPortalNotification[] = |
94 "enable-network-portal-notification"; | 94 "enable-network-portal-notification"; |
95 | 95 |
96 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler) | 96 // Enable "interactive" mode for stub implemenations (e.g. PowerManagerClient) |
97 const char kEnableStubInteractive[] = "enable-stub-interactive"; | 97 const char kEnableStubInteractive[] = "enable-stub-interactive"; |
98 | 98 |
99 // Enable stub portalled wifi network for testing. | |
100 const char kEnableStubPortalledWifi[] = "enable-stub-portalled-wifi"; | |
101 | |
102 // Enables touchpad three-finger-click as middle button. | 99 // Enables touchpad three-finger-click as middle button. |
103 const char kEnableTouchpadThreeFingerClick[] | 100 const char kEnableTouchpadThreeFingerClick[] |
104 = "enable-touchpad-three-finger-click"; | 101 = "enable-touchpad-three-finger-click"; |
105 | 102 |
106 // Specifies stub network types to be enabled. If this switch is not specified, | |
107 // ethernet, wifi and vpn are enabled by default. | |
108 // | |
109 // Examples: | |
110 // Disable all network types: --enabled-stub-network-types='' | |
111 // Enable wifi only: --enabled-stub-network-types=wifi | |
112 // Enable ethernet and wifi: --enabled-stub-network-types=ethernet,wifi | |
113 const char kEnabledStubNetworkTypes[] = "enabled-stub-network-types"; | |
114 | |
115 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather | 103 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather |
116 // than the kiosk app mode. | 104 // than the kiosk app mode. |
117 const char kEnableKioskMode[] = "enable-kiosk-mode"; | 105 const char kEnableKioskMode[] = "enable-kiosk-mode"; |
118 | 106 |
119 // Enables request of tablet site (via user agent override). | 107 // Enables request of tablet site (via user agent override). |
120 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; | 108 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; |
121 | 109 |
122 // Power of the power-of-2 initial modulus that will be used by the | 110 // Power of the power-of-2 initial modulus that will be used by the |
123 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16. | 111 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16. |
124 const char kEnterpriseEnrollmentInitialModulus[] = | 112 const char kEnterpriseEnrollmentInitialModulus[] = |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 | 168 |
181 // Enables natural scroll by default. | 169 // Enables natural scroll by default. |
182 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; | 170 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; |
183 | 171 |
184 // Skips all other OOBE pages after user login. | 172 // Skips all other OOBE pages after user login. |
185 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; | 173 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; |
186 | 174 |
187 // Interval at which we check for total time on OOBE. | 175 // Interval at which we check for total time on OOBE. |
188 const char kOobeTimerInterval[] = "oobe-timer-interval"; | 176 const char kOobeTimerInterval[] = "oobe-timer-interval"; |
189 | 177 |
190 // Integer flag that sets the DeviceRegistered local state pref. | 178 // Specifies network stub behavior. If this switch is not specified, |
191 const char kDeviceRegistered[] = "device-registered"; | 179 // ethernet, wifi and vpn are enabled by default, and transitions occur |
| 180 // instantaneously. Multiple options can be comma separated (no spaces). |
| 181 // See FakeShillManagerClient::SetInitialNetworkState for implementation. |
| 182 // Examples: |
| 183 // 'wifi=on' - A wifi network is initially connected ('1' also works) |
| 184 // 'wifi=off' - Wifi networks are all initially disconnected ('0' also works) |
| 185 // 'wifi=disabled' - Wifi is initially disabled |
| 186 // 'wifi=none' - Wifi is unavailable |
| 187 // 'wifi=portal' - Wifi connection will be in Portal state |
| 188 // 'cellular=1' - Cellular is initially connected |
| 189 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs |
| 190 const char kShillStub[] = "shill-stub"; |
192 | 191 |
193 // Skips the machine hwid check. Useful for running in VMs because they have no | 192 // Skips the machine hwid check. Useful for running in VMs because they have no |
194 // hwid. | 193 // hwid. |
195 const char kSkipHWIDCheck[] = "skip-hwid-check"; | 194 const char kSkipHWIDCheck[] = "skip-hwid-check"; |
196 | 195 |
197 // Sends test messages on first call to RequestUpdate (stub only). | 196 // Sends test messages on first call to RequestUpdate (stub only). |
198 const char kSmsTestMessages[] = "sms-test-messages"; | 197 const char kSmsTestMessages[] = "sms-test-messages"; |
199 | 198 |
200 // Indicates that a stub implementation of CrosSettings that stores settings in | 199 // Indicates that a stub implementation of CrosSettings that stores settings in |
201 // memory without signing should be used, treating current user as the owner. | 200 // memory without signing should be used, treating current user as the owner. |
(...skipping 19 matching lines...) Expand all Loading... |
221 const char kForceFirstRunUI[] = "force-first-run-ui"; | 220 const char kForceFirstRunUI[] = "force-first-run-ui"; |
222 | 221 |
223 // Enables testing for auto update UI. | 222 // Enables testing for auto update UI. |
224 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; | 223 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; |
225 | 224 |
226 // Enables features required for supervised user sync, | 225 // Enables features required for supervised user sync, |
227 const char kEnableSupervisedPasswordSync[] = "enable-supervised-password-sync"; | 226 const char kEnableSupervisedPasswordSync[] = "enable-supervised-password-sync"; |
228 | 227 |
229 } // namespace switches | 228 } // namespace switches |
230 } // namespace chromeos | 229 } // namespace chromeos |
OLD | NEW |