Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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)
97 const char kEnableStubInteractive[] = "enable-stub-interactive";
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. 96 // Enables touchpad three-finger-click as middle button.
103 const char kEnableTouchpadThreeFingerClick[] 97 const char kEnableTouchpadThreeFingerClick[]
104 = "enable-touchpad-three-finger-click"; 98 = "enable-touchpad-three-finger-click";
105 99
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 100 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
116 // than the kiosk app mode. 101 // than the kiosk app mode.
117 const char kEnableKioskMode[] = "enable-kiosk-mode"; 102 const char kEnableKioskMode[] = "enable-kiosk-mode";
118 103
119 // Enables request of tablet site (via user agent override). 104 // Enables request of tablet site (via user agent override).
120 const char kEnableRequestTabletSite[] = "enable-request-tablet-site"; 105 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
121 106
122 // 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
123 // 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.
124 const char kEnterpriseEnrollmentInitialModulus[] = 109 const char kEnterpriseEnrollmentInitialModulus[] =
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 162
178 // Specifies the user which is already logged in. 163 // Specifies the user which is already logged in.
179 const char kLoginUser[] = "login-user"; 164 const char kLoginUser[] = "login-user";
180 165
181 // Enables natural scroll by default. 166 // Enables natural scroll by default.
182 const char kNaturalScrollDefault[] = "enable-natural-scroll-default"; 167 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
183 168
184 // Skips all other OOBE pages after user login. 169 // Skips all other OOBE pages after user login.
185 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin"; 170 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
186 171
187 // Integer flag that sets the DeviceRegistered local state pref. 172 // Specifies power stub behavior:
188 const char kDeviceRegistered[] = "device-registered"; 173 // 'cycle=2' - Cycles power states every 2 seconds.
174 // See FakeDBusThreadManager::ParsePowerCommandLineSwitch for full details.
175 const char kPowerStub[] = "power-stub";
176
177 // Specifies network stub behavior. If this switch is not specified,
178 // ethernet, wifi and vpn are enabled by default, and transitions occur
179 // instantaneously. Multiple options can be comma separated (no spaces).
180 // See FakeDBusThreadManager::ParseShillCommandLineSwitch for full details.
181 // Examples:
182 // 'wifi=off' - Wifi networks are all initially disconnected
183 // 'wifi=disabled' - Wifi is initially disabled
184 // 'wifi=none' - Wifi is unavailable
185 // 'wifi=portal' - Wifi connection will be in Portal state
186 // 'cellular' - Cellular is initially connected
187 // 'interactive=3' - Interactive mode, connect/scan/etc requests take 3 secs
188 const char kShillStub[] = "shill-stub";
189 189
190 // Skips the machine hwid check. Useful for running in VMs because they have no 190 // Skips the machine hwid check. Useful for running in VMs because they have no
191 // hwid. 191 // hwid.
192 const char kSkipHWIDCheck[] = "skip-hwid-check"; 192 const char kSkipHWIDCheck[] = "skip-hwid-check";
193 193
194 // Sends test messages on first call to RequestUpdate (stub only). 194 // Sends test messages on first call to RequestUpdate (stub only).
195 const char kSmsTestMessages[] = "sms-test-messages"; 195 const char kSmsTestMessages[] = "sms-test-messages";
196 196
197 // Indicates that a stub implementation of CrosSettings that stores settings in 197 // Indicates that a stub implementation of CrosSettings that stores settings in
198 // memory without signing should be used, treating current user as the owner. 198 // memory without signing should be used, treating current user as the owner.
(...skipping 19 matching lines...) Expand all
218 const char kForceFirstRunUI[] = "force-first-run-ui"; 218 const char kForceFirstRunUI[] = "force-first-run-ui";
219 219
220 // Enables testing for auto update UI. 220 // Enables testing for auto update UI.
221 const char kTestAutoUpdateUI[] = "test-auto-update-ui"; 221 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
222 222
223 // Enables features required for supervised user sync, 223 // Enables features required for supervised user sync,
224 const char kEnableSupervisedPasswordSync[] = "enable-supervised-password-sync"; 224 const char kEnableSupervisedPasswordSync[] = "enable-supervised-password-sync";
225 225
226 } // namespace switches 226 } // namespace switches
227 } // namespace chromeos 227 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698