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

Side by Side Diff: chromeos/chromeos_switches.cc

Issue 14820030: Move Chrome OS switches to chromeos/chromeos_switches.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 7 years, 7 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
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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";
17
18 // Enables overriding the path for the default authentication extension.
19 const char kAuthExtensionPath[] = "auth-ext-path";
20
13 // Enables overriding the Chrome OS board type when running on Linux. 21 // Enables overriding the Chrome OS board type when running on Linux.
14 const char kChromeOSReleaseBoard[] = "chromeos-release-board"; 22 const char kChromeOSReleaseBoard[] = "chromeos-release-board";
15 23
16 // Forces the stub implementation of dbus clients. 24 // Forces the stub implementation of dbus clients.
17 const char kDbusStub[] = "dbus-stub"; 25 const char kDbusStub[] = "dbus-stub";
18 26
27 // Disables Kiosk app mode for ChromeOS.
28 const char kDisableAppMode[] = "disable-app-mode";
29
30 // Disables wallpaper boot animation (except of OOBE case).
31 const char kDisableBootAnimation[] = "disable-boot-animation";
32
33 // Disables Chrome Captive Portal detector, which initiates Captive
34 // Portal detection for new active networks.
35 const char kDisableChromeCaptivePortalDetector[] =
36 "disable-chrome-captive-portal-detector";
37
38 // Disables Google Drive integration.
39 const char kDisableDrive[] = "disable-drive";
40
41 // Disable policy-configured local accounts.
42 const char kDisableLocalAccounts[] = "disable-local-accounts";
43
44 // Avoid doing expensive animations upon login.
45 const char kDisableLoginAnimations[] = "disable-login-animations";
46
19 // Disable Quickoffice component app thus handlers won't be registered so 47 // Disable Quickoffice component app thus handlers won't be registered so
20 // it will be possible to install another version as normal app for testing. 48 // it will be possible to install another version as normal app for testing.
21 const char kDisableQuickofficeComponentApp[] = 49 const char kDisableQuickofficeComponentApp[] =
22 "disable-quickoffice-component-app"; 50 "disable-quickoffice-component-app";
23 51
24 // Disables fetching online CrOS EULA page, only static version is shown. 52 // Disables fetching online CrOS EULA page, only static version is shown.
25 const char kDisableOnlineEULA[] = "disable-cros-online-eula"; 53 const char kDisableOnlineEULA[] = "disable-cros-online-eula";
26 54
55 // Avoid doing animations upon oobe.
56 const char kDisableOobeAnimation[] = "disable-oobe-animation";
57
27 // Disables portal detection and network error handling before auto 58 // Disables portal detection and network error handling before auto
28 // update. 59 // update.
29 const char kDisableOOBEBlockingUpdate[] = 60 const char kDisableOOBEBlockingUpdate[] =
30 "disable-oobe-blocking-update"; 61 "disable-oobe-blocking-update";
31 62
32 // Disables fake ethernet network in the stub implementations. 63 // Disables fake ethernet network in the stub implementations.
33 const char kDisableStubEthernet[] = "disable-stub-ethernet"; 64 const char kDisableStubEthernet[] = "disable-stub-ethernet";
34 65
66 // Enables overriding the path for the default echo component extension.
67 // Useful for testing.
68 const char kEchoExtensionPath[] = "echo-ext-path";
69
70 // Enables component extension that initializes background pages of
71 // certain hosted applications.
72 const char kEnableBackgroundLoader[] = "enable-background-loader";
73
74 // Enables switching between different cellular carriers from the UI.
75 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
76
35 // Enable switching between audio devices in Chrome instead of cras. 77 // Enable switching between audio devices in Chrome instead of cras.
36 const char kEnableChromeAudioSwitching[] = "enable-chrome-audio-switching"; 78 const char kEnableChromeAudioSwitching[] = "enable-chrome-audio-switching";
37 79
80 // Enables Chrome Captive Portal detector, which initiates Captive
81 // Portal detection for new active networks.
82 const char kEnableChromeCaptivePortalDetector[] =
83 "enable-chrome-captive-portal-detector";
84
38 // Enable experimental Bluetooth features. 85 // Enable experimental Bluetooth features.
39 const char kEnableExperimentalBluetooth[] = "enable-experimental-bluetooth"; 86 const char kEnableExperimentalBluetooth[] = "enable-experimental-bluetooth";
40 87
41 // Disables the new NetworkChangeNotifier which uses NetworkStateHandler. 88 // Disables the new NetworkChangeNotifier which uses NetworkStateHandler.
42 const char kDisableNewNetworkChangeNotifier[] = 89 const char kDisableNewNetworkChangeNotifier[] =
43 "disable-new-network-change-notifier"; 90 "disable-new-network-change-notifier";
44 91
45 // Enables screensaver extensions. 92 // Enables screensaver extensions.
46 const char kEnableScreensaverExtensions[] = "enable-screensaver-extensions"; 93 const char kEnableScreensaverExtensions[] = "enable-screensaver-extensions";
47 94
48 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler) 95 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
49 const char kEnableStubInteractive[] = "enable-stub-interactive"; 96 const char kEnableStubInteractive[] = "enable-stub-interactive";
50 97
98 // Enables touchpad three-finger-click as middle button.
99 const char kEnableTouchpadThreeFingerClick[]
100 = "enable-touchpad-three-finger-click";
101
102 // Enables touchpad three-finger swipe.
103 const char kEnableTouchpadThreeFingerSwipe[]
104 = "enable-touchpad-three-finger-swipe";
105
106 // Enable Kiosk mode for ChromeOS.
107 const char kEnableKioskMode[] = "enable-kiosk-mode";
108
109 // Enables request of tablet site (via user agent override).
110 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
111
112 // Enables static ip configuration. This flag should be removed when it's on by
113 // default.
114 const char kEnableStaticIPConfig[] = "enable-static-ip-config";
115
116 // Power of the power-of-2 initial modulus that will be used by the
117 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
118 const char kEnterpriseEnrollmentInitialModulus[] =
119 "enterprise-enrollment-initial-modulus";
120
121 // Power of the power-of-2 maximum modulus that will be used by the
122 // auto-enrollment client.
123 const char kEnterpriseEnrollmentModulusLimit[] =
124 "enterprise-enrollment-modulus-limit";
125
126 // Loads the File Manager as an extension instead of a platform app.
127 // This flag is obsolete. Remove it, once Files.app v2 is stable.
128 const char kFileManagerLegacy[] = "file-manager-legacy";
129
130 // Loads the File Manager with the legacy UI.
131 const char kFileManagerLegacyUI[] = "file-manager-legacy-ui";
132
51 // Passed to Chrome on first boot. Not passed on restart after sign out. 133 // Passed to Chrome on first boot. Not passed on restart after sign out.
52 const char kFirstBoot[] = "first-boot"; 134 const char kFirstBoot[] = "first-boot";
53 135
54 // Usually in browser tests the usual login manager bringup is skipped so that 136 // Usually in browser tests the usual login manager bringup is skipped so that
55 // tests can change how it's brought up. This flag disables that. 137 // tests can change how it's brought up. This flag disables that.
56 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests"; 138 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
57 139
58 // Indicates that the browser is in "browse without sign-in" (Guest session) 140 // Indicates that the browser is in "browse without sign-in" (Guest session)
59 // mode. Should completely disable extensions, sync and bookmarks. 141 // mode. Should completely disable extensions, sync and bookmarks.
60 const char kGuestSession[] = "bwsi"; 142 const char kGuestSession[] = "bwsi";
61 143
144 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
145 // Chromeboxes.
146 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
147
148 // If true, the Chromebook has a keyboard with a diamond key.
149 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
150
151 // Path for the screensaver used in Kiosk mode
152 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
153
62 // Enables Chrome-as-a-login-manager behavior. 154 // Enables Chrome-as-a-login-manager behavior.
63 const char kLoginManager[] = "login-manager"; 155 const char kLoginManager[] = "login-manager";
64 156
65 // Specifies a password to be used to login (along with login-user). 157 // Specifies a password to be used to login (along with login-user).
66 const char kLoginPassword[] = "login-password"; 158 const char kLoginPassword[] = "login-password";
67 159
68 // Specifies the profile to use once a chromeos user is logged in. 160 // Specifies the profile to use once a chromeos user is logged in.
69 const char kLoginProfile[] = "login-profile"; 161 const char kLoginProfile[] = "login-profile";
70 162
71 // Allows to override the first login screen. The value should be the name of 163 // Allows to override the first login screen. The value should be the name of
72 // the first login screen to show (see 164 // the first login screen to show (see
73 // chrome/browser/chromeos/login/login_wizard_view.cc for actual names). 165 // chrome/browser/chromeos/login/login_wizard_view.cc for actual names).
74 // Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the 166 // Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the
75 // switch is no longer needed for testing. 167 // switch is no longer needed for testing.
76 const char kLoginScreen[] = "login-screen"; 168 const char kLoginScreen[] = "login-screen";
77 169
78 // Controls the initial login screen size. Pass width,height. 170 // Controls the initial login screen size. Pass width,height.
79 const char kLoginScreenSize[] = "login-screen-size"; 171 const char kLoginScreenSize[] = "login-screen-size";
80 172
81 // Specifies the user which is already logged in. 173 // Specifies the user which is already logged in.
82 const char kLoginUser[] = "login-user"; 174 const char kLoginUser[] = "login-user";
83 175
176 // Enables natural scroll by default.
177 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
178
179 // Disables tab discard in low memory conditions, a feature which silently
180 // closes inactive tabs to free memory and to attempt to avoid the kernel's
181 // out-of-memory process killer.
182 const char kNoDiscardTabs[] = "no-discard-tabs";
183
184 #ifndef NDEBUG
185 // Skips all other OOBE pages after user login.
186 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
187 #endif // NDEBUG
188
84 // Sends test messages on first call to RequestUpdate (stub only). 189 // Sends test messages on first call to RequestUpdate (stub only).
85 const char kSmsTestMessages[] = "sms-test-messages"; 190 const char kSmsTestMessages[] = "sms-test-messages";
86 191
192 // Indicates that a stub implementation of CrosSettings that stores settings in
193 // memory without signing should be used, treating current user as the owner.
194 // This option is for testing the chromeos build of chrome on the desktop only.
195 const char kStubCrosSettings[] = "stub-cros-settings";
196
87 // Enables usage of the new ManagedNetworkConfigurationHandler and 197 // Enables usage of the new ManagedNetworkConfigurationHandler and
88 // NetworkConfigurationHandler singletons. 198 // NetworkConfigurationHandler singletons.
89 const char kUseNewNetworkConfigurationHandlers[] = 199 const char kUseNewNetworkConfigurationHandlers[] =
90 "use-new-network-configuration-handlers"; 200 "use-new-network-configuration-handlers";
91 201
92 } // namespace switches 202 } // namespace switches
93 } // namespace chromeos 203 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698