Use Persistent::Reset.
[chromium-blink-merge.git] / chromeos / chromeos_switches.cc
blob7922826e02ae0c3302ccdb880f89c92b1a8f8fc3
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 // Enable experimental Bluetooth features.
86 const char kEnableExperimentalBluetooth[] = "enable-experimental-bluetooth";
88 // Disables the new NetworkChangeNotifier which uses NetworkStateHandler.
89 const char kDisableNewNetworkChangeNotifier[] =
90 "disable-new-network-change-notifier";
92 // Enables screensaver extensions.
93 const char kEnableScreensaverExtensions[] = "enable-screensaver-extensions";
95 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
96 const char kEnableStubInteractive[] = "enable-stub-interactive";
98 // Enables touchpad three-finger-click as middle button.
99 const char kEnableTouchpadThreeFingerClick[]
100 = "enable-touchpad-three-finger-click";
102 // Enables touchpad three-finger swipe.
103 const char kEnableTouchpadThreeFingerSwipe[]
104 = "enable-touchpad-three-finger-swipe";
106 // Enable Kiosk mode for ChromeOS.
107 const char kEnableKioskMode[] = "enable-kiosk-mode";
109 // Enables request of tablet site (via user agent override).
110 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
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";
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";
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";
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";
130 // Loads the File Manager with the legacy UI.
131 const char kFileManagerLegacyUI[] = "file-manager-legacy-ui";
133 // Passed to Chrome on first boot. Not passed on restart after sign out.
134 const char kFirstBoot[] = "first-boot";
136 // Usually in browser tests the usual login manager bringup is skipped so that
137 // tests can change how it's brought up. This flag disables that.
138 const char kForceLoginManagerInTests[] = "force-login-manager-in-tests";
140 // Indicates that the browser is in "browse without sign-in" (Guest session)
141 // mode. Should completely disable extensions, sync and bookmarks.
142 const char kGuestSession[] = "bwsi";
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";
148 // If true, the Chromebook has a keyboard with a diamond key.
149 const char kHasChromeOSDiamondKey[] = "has-chromeos-diamond-key";
151 // Path for the screensaver used in Kiosk mode
152 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
154 // Enables Chrome-as-a-login-manager behavior.
155 const char kLoginManager[] = "login-manager";
157 // Specifies a password to be used to login (along with login-user).
158 const char kLoginPassword[] = "login-password";
160 // Specifies the profile to use once a chromeos user is logged in.
161 const char kLoginProfile[] = "login-profile";
163 // Allows to override the first login screen. The value should be the name of
164 // the first login screen to show (see
165 // chrome/browser/chromeos/login/login_wizard_view.cc for actual names).
166 // Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the
167 // switch is no longer needed for testing.
168 const char kLoginScreen[] = "login-screen";
170 // Controls the initial login screen size. Pass width,height.
171 const char kLoginScreenSize[] = "login-screen-size";
173 // Specifies the user which is already logged in.
174 const char kLoginUser[] = "login-user";
176 // Enables natural scroll by default.
177 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
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";
184 #ifndef NDEBUG
185 // Skips all other OOBE pages after user login.
186 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
187 #endif // NDEBUG
189 // Sends test messages on first call to RequestUpdate (stub only).
190 const char kSmsTestMessages[] = "sms-test-messages";
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";
197 // Enables usage of the new ManagedNetworkConfigurationHandler and
198 // NetworkConfigurationHandler singletons.
199 const char kUseNewNetworkConfigurationHandlers[] =
200 "use-new-network-configuration-handlers";
202 } // namespace switches
203 } // namespace chromeos