Fix a type mismatch on Windows caused by r201738.
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blobef84dc31912087209bdf42180612ccf765a6e00b
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 // Enables overriding the path for the default authentication extension.
19 const char kAuthExtensionPath[] = "auth-ext-path";
21 // Enables overriding the Chrome OS board type when running on Linux.
22 const char kChromeOSReleaseBoard[] = "chromeos-release-board";
24 // Forces the stub implementation of dbus clients.
25 const char kDbusStub[] = "dbus-stub";
27 // Disables Kiosk app mode for ChromeOS.
28 const char kDisableAppMode[] = "disable-app-mode";
30 // Disables wallpaper boot animation (except of OOBE case).
31 const char kDisableBootAnimation[] = "disable-boot-animation";
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";
38 // Disables Google Drive integration.
39 const char kDisableDrive[] = "disable-drive";
41 // Disable policy-configured local accounts.
42 const char kDisableLocalAccounts[] = "disable-local-accounts";
44 // Avoid doing expensive animations upon login.
45 const char kDisableLoginAnimations[] = "disable-login-animations";
47 // Disable Quickoffice component app thus handlers won't be registered so
48 // it will be possible to install another version as normal app for testing.
49 const char kDisableQuickofficeComponentApp[] =
50 "disable-quickoffice-component-app";
52 // Disables fetching online CrOS EULA page, only static version is shown.
53 const char kDisableOnlineEULA[] = "disable-cros-online-eula";
55 // Avoid doing animations upon oobe.
56 const char kDisableOobeAnimation[] = "disable-oobe-animation";
58 // Disables portal detection and network error handling before auto
59 // update.
60 const char kDisableOOBEBlockingUpdate[] =
61 "disable-oobe-blocking-update";
63 // Disables fake ethernet network in the stub implementations.
64 const char kDisableStubEthernet[] = "disable-stub-ethernet";
66 // Enables overriding the path for the default echo component extension.
67 // Useful for testing.
68 const char kEchoExtensionPath[] = "echo-ext-path";
70 // Enables component extension that initializes background pages of
71 // certain hosted applications.
72 const char kEnableBackgroundLoader[] = "enable-background-loader";
74 // Enables switching between different cellular carriers from the UI.
75 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
77 // Enable switching between audio devices in Chrome instead of cras.
78 const char kEnableChromeAudioSwitching[] = "enable-chrome-audio-switching";
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";
85 // Disables the new NetworkChangeNotifier which uses NetworkStateHandler.
86 const char kDisableNewNetworkChangeNotifier[] =
87 "disable-new-network-change-notifier";
89 // Enables screensaver extensions.
90 const char kEnableScreensaverExtensions[] = "enable-screensaver-extensions";
92 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
93 const char kEnableStubInteractive[] = "enable-stub-interactive";
95 // Enables touchpad three-finger-click as middle button.
96 const char kEnableTouchpadThreeFingerClick[]
97 = "enable-touchpad-three-finger-click";
99 // Enables touchpad three-finger swipe.
100 const char kEnableTouchpadThreeFingerSwipe[]
101 = "enable-touchpad-three-finger-swipe";
103 // Enable Kiosk mode for ChromeOS.
104 const char kEnableKioskMode[] = "enable-kiosk-mode";
106 // Enables request of tablet site (via user agent override).
107 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
109 // Enables static ip configuration. This flag should be removed when it's on by
110 // default.
111 const char kEnableStaticIPConfig[] = "enable-static-ip-config";
113 // Power of the power-of-2 initial modulus that will be used by the
114 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
115 const char kEnterpriseEnrollmentInitialModulus[] =
116 "enterprise-enrollment-initial-modulus";
118 // Power of the power-of-2 maximum modulus that will be used by the
119 // auto-enrollment client.
120 const char kEnterpriseEnrollmentModulusLimit[] =
121 "enterprise-enrollment-modulus-limit";
123 // Loads the File Manager as an extension instead of a platform app.
124 // This flag is obsolete. Remove it, once Files.app v2 is stable.
125 const char kFileManagerLegacy[] = "file-manager-legacy";
127 // Loads the File Manager with the legacy UI.
128 const char kFileManagerLegacyUI[] = "file-manager-legacy-ui";
130 // Passed to Chrome on first boot. Not passed on restart after sign out.
131 const char kFirstBoot[] = "first-boot";
133 // Usually in browser tests the usual login manager bringup is skipped so that
134 // tests can change how it's brought up. This flag disables that.
135 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
137 // Indicates that the browser is in "browse without sign-in" (Guest session)
138 // mode. Should completely disable extensions, sync and bookmarks.
139 const char kGuestSession[] = "bwsi";
141 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
142 // Chromeboxes.
143 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
145 // If true, the Chromebook has a keyboard with a diamond key.
146 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
148 // Path for the screensaver used in Kiosk mode
149 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
151 // Enables Chrome-as-a-login-manager behavior.
152 const char kLoginManager[] = "login-manager";
154 // Specifies a password to be used to login (along with login-user).
155 const char kLoginPassword[] = "login-password";
157 // Specifies the profile to use once a chromeos user is logged in.
158 const char kLoginProfile[] = "login-profile";
160 // Allows to override the first login screen. The value should be the name of
161 // the first login screen to show (see
162 // chrome/browser/chromeos/login/login_wizard_view.cc for actual names).
163 // Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the
164 // switch is no longer needed for testing.
165 const char kLoginScreen[] = "login-screen";
167 // Controls the initial login screen size. Pass width,height.
168 const char kLoginScreenSize[] = "login-screen-size";
170 // Specifies the user which is already logged in.
171 const char kLoginUser[] = "login-user";
173 // Enables natural scroll by default.
174 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
176 // Disables tab discard in low memory conditions, a feature which silently
177 // closes inactive tabs to free memory and to attempt to avoid the kernel's
178 // out-of-memory process killer.
179 const char kNoDiscardTabs[] = "no-discard-tabs";
181 #ifndef NDEBUG
182 // Skips all other OOBE pages after user login.
183 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
184 #endif // NDEBUG
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 // Enables usage of the new ManagedNetworkConfigurationHandler and
195 // NetworkConfigurationHandler singletons.
196 const char kUseNewNetworkConfigurationHandlers[] =
197 "use-new-network-configuration-handlers";
199 } // namespace switches
200 } // namespace chromeos