Home | History | Annotate | Download | only in chromeos
      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.
      4 
      5 #include "chromeos/chromeos_switches.h"
      6 
      7 namespace chromeos {
      8 namespace switches {
      9 
     10 // Path for app's OEM manifest file.
     11 const char kAppOemManifestFile[]            = "app-mode-oem-manifest";
     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 
     21 // Forces the stub implementation of dbus clients.
     22 const char kDbusStub[] = "dbus-stub";
     23 
     24 // All stub networks are idle by default.
     25 const char kDefaultStubNetworkStateIdle[] = "default-stub-network-state-idle";
     26 
     27 // Disables wallpaper boot animation (except of OOBE case).
     28 const char kDisableBootAnimation[]          = "disable-boot-animation";
     29 
     30 // Disables Google Drive integration.
     31 const char kDisableDrive[]                  = "disable-drive";
     32 
     33 // Disables reporting recently logged in users for enterprise-managed devices.
     34 const char kDisableEnterpriseUserReporting[] =
     35     "disable-enterprise-user-reporting";
     36 
     37 // Disable Genius App and use the original Help App instead.
     38 const char kDisableGeniusApp[]              = "disable-genius-app";
     39 
     40 // Disable to show the indicator about the IME (input method editor) mode
     41 // on Chrome OS.
     42 const char kDisableIMEModeIndicator[] = "disable-ime-mode-indicator";
     43 
     44 // Disable policy-configured local accounts.
     45 const char kDisableLocalAccounts[]          = "disable-local-accounts";
     46 
     47 // Avoid doing expensive animations upon login.
     48 const char kDisableLoginAnimations[]        = "disable-login-animations";
     49 
     50 // Disable new channel switcher UI.
     51 const char kDisableNewChannelSwitcherUI[]   = "disable-new-channel-switcher-ui";
     52 
     53 // Disable Quickoffice component app thus handlers won't be registered so
     54 // it will be possible to install another version as normal app for testing.
     55 const char kDisableQuickofficeComponentApp[] =
     56     "disable-quickoffice-component-app";
     57 
     58 // Disables fetching online CrOS EULA page, only static version is shown.
     59 const char kDisableOnlineEULA[] = "disable-cros-online-eula";
     60 
     61 // Avoid doing animations upon oobe.
     62 const char kDisableOobeAnimation[]          = "disable-oobe-animation";
     63 
     64 // Disables portal detection and network error handling before auto
     65 // update.
     66 const char kDisableOOBEBlockingUpdate[] =
     67     "disable-oobe-blocking-update";
     68 
     69 // Disables fake ethernet network in the stub implementations.
     70 const char kDisableStubEthernet[] = "disable-stub-ethernet";
     71 
     72 // Enables overriding the path for the default echo component extension.
     73 // Useful for testing.
     74 const char kEchoExtensionPath[]             = "echo-ext-path";
     75 
     76 // Enables component extension that initializes background pages of
     77 // certain hosted applications.
     78 const char kEnableBackgroundLoader[]        = "enable-background-loader";
     79 
     80 // Enables switching between different cellular carriers from the UI.
     81 const char kEnableCarrierSwitching[]        = "enable-carrier-switching";
     82 
     83 // Enables automatically initializing Google Drive offline mode on first run.
     84 const char kEnableDriveOfflineFirstRun[] = "enable-drive-offline-first-run";
     85 
     86 // Enable "interactive" mode for stub implemenations (e.g. NetworkStateHandler)
     87 const char kEnableStubInteractive[] = "enable-stub-interactive";
     88 
     89 // Enable stub portalled wifi network for testing.
     90 const char kEnableStubPortalledWifi[] = "enable-stub-portalled-wifi";
     91 
     92 // Enables touchpad three-finger-click as middle button.
     93 const char kEnableTouchpadThreeFingerClick[]
     94     = "enable-touchpad-three-finger-click";
     95 
     96 // Enable Kiosk mode for ChromeOS. Note this switch refers to retail mode rather
     97 // than the kiosk app mode.
     98 const char kEnableKioskMode[]               = "enable-kiosk-mode";
     99 
    100 // Enables request of tablet site (via user agent override).
    101 const char kEnableRequestTabletSite[]       = "enable-request-tablet-site";
    102 
    103 // Power of the power-of-2 initial modulus that will be used by the
    104 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
    105 const char kEnterpriseEnrollmentInitialModulus[] =
    106     "enterprise-enrollment-initial-modulus";
    107 
    108 // Power of the power-of-2 maximum modulus that will be used by the
    109 // auto-enrollment client.
    110 const char kEnterpriseEnrollmentModulusLimit[] =
    111     "enterprise-enrollment-modulus-limit";
    112 
    113 // Don't create robot account on enrollment. Used when testing device
    114 // enrollment against YAPS or the Python test server.
    115 const char kEnterpriseEnrollmentSkipRobotAuth[] =
    116     "enterprise-enrollment-skip-robot-auth";
    117 
    118 // Shows the selecting checkboxes in the Files.app.
    119 const char kFileManagerShowCheckboxes[]     = "file-manager-show-checkboxes";
    120 
    121 // Enables the webstore integration feature in the Files.app.
    122 const char kFileManagerEnableWebstoreIntegration[] =
    123     "file-manager-enable-webstore-integration";
    124 
    125 // Passed to Chrome the first time that it's run after the system boots.
    126 // Not passed on restart after sign out.
    127 const char kFirstExecAfterBoot[]            = "first-exec-after-boot";
    128 
    129 // Usually in browser tests the usual login manager bringup is skipped so that
    130 // tests can change how it's brought up. This flag disables that.
    131 const char kForceLoginManagerInTests[]      = "force-login-manager-in-tests";
    132 
    133 // Sets primary user's default multiprofile behavior to 'unrestricted' for
    134 // tests so that multiprofile is enabled for any user.
    135 // TODO(xiyuan): Remove when multiprofile is released to everyone.
    136 const char kForceMultiProfileInTests[]      = "force-multi-profiles-in-tests";
    137 
    138 // Indicates that the browser is in "browse without sign-in" (Guest session)
    139 // mode. Should completely disable extensions, sync and bookmarks.
    140 const char kGuestSession[]                  = "bwsi";
    141 
    142 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
    143 // Chromeboxes.
    144 const char kHasChromeOSKeyboard[]           = "has-chromeos-keyboard";
    145 
    146 // If true, the Chromebook has a keyboard with a diamond key.
    147 const char kHasChromeOSDiamondKey[]         = "has-chromeos-diamond-key";
    148 
    149 // Path for the screensaver used in Kiosk mode
    150 const char kKioskModeScreensaverPath[]      = "kiosk-mode-screensaver-path";
    151 
    152 // Allows override of oobe for testing - goes directly to the login screen.
    153 const char kLoginScreen[]                   = "login-screen";
    154 
    155 // Enables Chrome-as-a-login-manager behavior.
    156 const char kLoginManager[]                  = "login-manager";
    157 
    158 // Specifies a password to be used to login (along with login-user).
    159 const char kLoginPassword[]                 = "login-password";
    160 
    161 // Specifies the profile to use once a chromeos user is logged in.
    162 const char kLoginProfile[]                  = "login-profile";
    163 
    164 // Specifies the user which is already logged in.
    165 const char kLoginUser[]                     = "login-user";
    166 
    167 // Enables natural scroll by default.
    168 const char kNaturalScrollDefault[]          = "enable-natural-scroll-default";
    169 
    170 // Skips all other OOBE pages after user login.
    171 const char kOobeSkipPostLogin[]             = "oobe-skip-postlogin";
    172 
    173 // Integer flag that sets the DeviceRegistered local state pref.
    174 const char kDeviceRegistered[]              = "device-registered";
    175 
    176 // Skips the machine hwid check. Useful for running in VMs because they have no
    177 // hwid.
    178 const char kSkipHWIDCheck[]                 = "skip-hwid-check";
    179 
    180 // Sends test messages on first call to RequestUpdate (stub only).
    181 const char kSmsTestMessages[]               = "sms-test-messages";
    182 
    183 // Indicates that a stub implementation of CrosSettings that stores settings in
    184 // memory without signing should be used, treating current user as the owner.
    185 // This option is for testing the chromeos build of chrome on the desktop only.
    186 const char kStubCrosSettings[]              = "stub-cros-settings";
    187 
    188 // Disables user image sync.
    189 const char kDisableUserImageSync[]          = "disable-user-image-sync";
    190 
    191 // Enables SAML sigin support.
    192 const char kEnableSamlSignin[]              = "enable-saml-signin";
    193 
    194 // Disables new first-run overlay UI.
    195 const char kDisableFirstRunUI[] = "disable-first-run-ui";
    196 
    197 // Enables animated transitions during first-run tutorial.
    198 const char kEnableFirstRunUITransitions[] = "enable-first-run-ui-transitions";
    199 
    200 // Forces first-run UI to be shown for every login.
    201 const char kForceFirstRunUI[] = "force-first-run-ui";
    202 
    203 // Enables testing for auto update UI.
    204 const char kTestAutoUpdateUI[] = "test-auto-update-ui";
    205 
    206 }  // namespace switches
    207 }  // namespace chromeos
    208