Home | History | Annotate | Download | only in common
      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 "chrome/common/chrome_switches.h"
      6 
      7 #include "base/base_switches.h"
      8 #include "base/command_line.h"
      9 
     10 namespace switches {
     11 
     12 // -----------------------------------------------------------------------------
     13 // Can't find the switch you are looking for? Try looking in:
     14 // ash/ash_switches.cc
     15 // base/base_switches.cc
     16 // chromeos/chromeos_switches.cc
     17 // etc.
     18 //
     19 // When commenting your switch, please use the same voice as surrounding
     20 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll
     21 // all work out.
     22 // -----------------------------------------------------------------------------
     23 
     24 // Allows choosing an existing managed user profile during the managed
     25 // user creation flow.
     26 const char kAllowCreateExistingManagedUsers[] =
     27     "allow-create-existing-managed-users";
     28 
     29 // Allows third-party content included on a page to prompt for a HTTP basic
     30 // auth username/password pair.
     31 const char kAllowCrossOriginAuthPrompt[]    = "allow-cross-origin-auth-prompt";
     32 
     33 // On ChromeOS, file:// access is disabled except for certain whitelisted
     34 // directories. This switch re-enables file:// for testing.
     35 const char kAllowFileAccess[]               = "allow-file-access";
     36 
     37 // Allow non-secure origins to use the screen capture API.
     38 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture";
     39 
     40 // Specifies comma-separated list of extension ids or hosts to grant
     41 // access to CRX file system APIs.
     42 const char kAllowNaClCrxFsAPI[]             = "allow-nacl-crxfs-api";
     43 
     44 // Specifies comma-separated list of extension ids or hosts to grant
     45 // access to file handle APIs.
     46 const char kAllowNaClFileHandleAPI[]        = "allow-nacl-file-handle-api";
     47 
     48 // Specifies comma-separated list of extension ids or hosts to grant
     49 // access to TCP/UDP socket APIs.
     50 const char kAllowNaClSocketAPI[]            = "allow-nacl-socket-api";
     51 
     52 // Don't block outdated plugins.
     53 const char kAllowOutdatedPlugins[]          = "allow-outdated-plugins";
     54 
     55 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
     56 // URLs. This provides an override to get the old insecure behavior.
     57 const char kAllowRunningInsecureContent[]   = "allow-running-insecure-content";
     58 
     59 // Prevents Chrome from requiring authorization to run certain widely installed
     60 // but less commonly used plug-ins.
     61 const char kAlwaysAuthorizePlugins[]        = "always-authorize-plugins";
     62 
     63 // Specifies that the extension-app with the specified id should be launched
     64 // according to its configuration.
     65 const char kAppId[]                         = "app-id";
     66 
     67 // Specifies that the associated value should be launched in "application"
     68 // mode.
     69 const char kApp[]                           = "app";
     70 
     71 // Specifies an URL to use for app list start page.
     72 const char kAppListStartPageURL[]           = "app-list-start-page-url";
     73 
     74 // Flag to enable apps_devtool app.
     75 const char kAppsDevtool[]                   = "apps-devtool";
     76 
     77 // Specifies the initial size for application windows launched with --app.
     78 // --app-window-size=w,h
     79 const char kAppWindowSize[]                 = "app-window-size";
     80 
     81 // Overrides the apps checkout URL, which is used to determine when to expose
     82 // some private APIs.
     83 const char kAppsCheckoutURL[]               = "apps-checkout-url";
     84 
     85 // The URL that the webstore APIs download extensions from.
     86 // Note: the URL must contain one '%s' for the extension ID.
     87 const char kAppsGalleryDownloadURL[]        = "apps-gallery-download-url";
     88 
     89 // A setting to cause extension/app installs from the webstore skip the normal
     90 // confirmation dialog. A value of 'accept' means to always act as if the dialog
     91 // was accepted, and 'cancel' means to always act as if the dialog was
     92 // cancelled.
     93 const char kAppsGalleryInstallAutoConfirmForTests[] =
     94     "apps-gallery-install-auto-confirm-for-tests";
     95 
     96 // The URL to use for the gallery link in the app launcher.
     97 const char kAppsGalleryURL[]                = "apps-gallery-url";
     98 
     99 // The update url used by gallery/webstore extensions.
    100 const char kAppsGalleryUpdateURL[]          = "apps-gallery-update-url";
    101 
    102 // Value of GAIA auth code for --force-app-mode.
    103 const char kAppModeAuthCode[]               = "app-mode-auth-code";
    104 
    105 // Value of OAuth2 refresh token for --force-app-mode.
    106 const char kAppModeOAuth2Token[]            = "app-mode-oauth-token";
    107 
    108 // Whether to always use the new app install bubble when installing an app.
    109 const char kAppsNewInstallBubble[]          = "apps-new-install-bubble";
    110 
    111 // Experimental native frame support for packaged apps.
    112 const char kAppsUseNativeFrame[]            = "apps-use-native-frame";
    113 
    114 // Enables overriding the path for the default authentication extension.
    115 const char kAuthExtensionPath[]             = "auth-ext-path";
    116 
    117 // Whitelist of servers that Negotiate will generate delegated Kerberos tickets
    118 // for.
    119 const char kAuthNegotiateDelegateWhitelist[] =
    120     "auth-negotiate-delegate-whitelist";
    121 
    122 // HTTP authentication schemes to enable. This is a comma-separated list of
    123 // authentication schemes (basic, digest, ntlm, and negotiate). By default all
    124 // schemes are enabled. The primary use of this command line flag is to help
    125 // triage authentication-related issues reported by end-users.
    126 const char kAuthSchemes[]                   = "auth-schemes";
    127 
    128 // Whitelist of servers which NTLM and Negotiate can automatically authenticate
    129 // with using the default credentials of the currently logged in user.
    130 const char kAuthServerWhitelist[]           = "auth-server-whitelist";
    131 
    132 // A flag that is used to tell Chrome that it was launched automatically at
    133 // computer startup and not by some user action.
    134 const char kAutoLaunchAtStartup[]           = "auto-launch-at-startup";
    135 
    136 // The value of this switch tells the app to listen for and broadcast
    137 // automation-related messages on IPC channel with the given ID.
    138 const char kAutomationClientChannelID[]     = "automation-channel";
    139 
    140 // Causes the automation provider to reinitialize its IPC channel instead of
    141 // shutting down when a client disconnects.
    142 const char kAutomationReinitializeOnChannelError[] =
    143     "automation-reinitialize-on-channel-error";
    144 
    145 // Similar to kNoFirstRun, but also drops the First Run beacon so that first run
    146 // will not occur in subsequent runs either.
    147 const char kCancelFirstRun[]                = "cancel-first-run";
    148 
    149 // Certificate Transparency: Uses the provided log for checking Signed
    150 // Certificate Timestamps provided with certificates.
    151 // The switch's value is:
    152 //   log_description:log_key
    153 // where:
    154 //   log_description is a textual description of the log
    155 //   log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
    156 //   public key.
    157 const char kCertificateTransparencyLog[] =
    158     "certificate-transparency-log";
    159 
    160 // How often (in seconds) to check for updates. Should only be used for testing
    161 // purposes.
    162 const char kCheckForUpdateIntervalSec[]     = "check-for-update-interval";
    163 
    164 // Checks the cloud print connector policy, informing the service process if
    165 // the policy is set to disallow the connector, then quits.
    166 const char kCheckCloudPrintConnectorPolicy[] =
    167     "check-cloud-print-connector-policy";
    168 
    169 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run
    170 // as a dependent process of the Chrome Frame plugin.
    171 const char kChromeFrame[]                   = "chrome-frame";
    172 
    173 // Tells chrome to load the specified version of chrome.dll on Windows. If this
    174 // version cannot be loaded, Chrome will exit.
    175 const char kChromeVersion[]                 = "chrome-version";
    176 
    177 // Comma-separated list of SSL cipher suites to disable.
    178 const char kCipherSuiteBlacklist[]          = "cipher-suite-blacklist";
    179 
    180 // Clears the token service before using it. This allows simulating the
    181 // expiration of credentials during testing.
    182 const char kClearTokenService[]             = "clear-token-service";
    183 
    184 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished
    185 // displaying the print dialog.
    186 const char kCloudPrintDeleteFile[]          = "cloud-print-delete-file";
    187 
    188 // Tells chrome to display the cloud print dialog and upload the specified file
    189 // for printing.
    190 const char kCloudPrintFile[]                = "cloud-print-file";
    191 
    192 // Specifies the mime type to be used when uploading data from the file
    193 // referenced by cloud-print-file. Defaults to "application/pdf" if
    194 // unspecified.
    195 const char kCloudPrintFileType[]            = "cloud-print-file-type";
    196 
    197 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
    198 // print job. Defaults to null if unspecified.
    199 const char kCloudPrintPrintTicket[]         = "cloud-print-print-ticket";
    200 
    201 // Used with kCloudPrintFile to specify a title for the resulting print job.
    202 const char kCloudPrintJobTitle[]            = "cloud-print-job-title";
    203 
    204 // Setup cloud print proxy for provided printers. This does not start
    205 // service or register proxy for autostart.
    206 const char kCloudPrintSetupProxy[]          = "cloud-print-setup-proxy";
    207 
    208 // The URL of the cloud print service to use, overrides any value stored in
    209 // preferences, and the default. Only used if the cloud print service has been
    210 // enabled (see enable-cloud-print).
    211 const char kCloudPrintServiceURL[]          = "cloud-print-service";
    212 
    213 // Comma-separated options to troubleshoot the component updater. Only valid
    214 // for the browser process.
    215 const char kComponentUpdater[]              = "component-updater";
    216 
    217 // Causes the browser process to inspect loaded and registered DLLs for known
    218 // conflicts and warn the user.
    219 const char kConflictingModulesCheck[]       = "conflicting-modules-check";
    220 
    221 // Toggles a new version of the content settings dialog in options.
    222 const char kContentSettings2[]              = "new-content-settings";
    223 
    224 // The Country we should use. This is normally obtained from the operating
    225 // system during first run and cached in the preferences afterwards. This is a
    226 // string value, the 2 letter code from ISO 3166-1.
    227 const char kCountry[]                       = "country";
    228 
    229 // Comma-separated list of BrowserThreads that cause browser process to crash
    230 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
    231 // list of BrowserThreads that are supported.
    232 //
    233 // For example:
    234 //    --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
    235 //      is not responsive for 18 seconds and the number of browser threads that
    236 //      are responding is less than or equal to 3.
    237 const char kCrashOnHangThreads[]            = "crash-on-hang-threads";
    238 
    239 // Some platforms like ChromeOS default to empty desktop.
    240 // Browser tests may need to add this switch so that at least one browser
    241 // instance is created on startup.
    242 // TODO(nkostylev): Investigate if this switch could be removed.
    243 // (http://crbug.com/148675)
    244 const char kCreateBrowserOnStartupForTests[] =
    245     "create-browser-on-startup-for-tests";
    246 
    247 #if defined(OS_ANDROID) || defined(OS_IOS)
    248 // If set, the data reduction proxy will only be enabled if a request for this
    249 // URL is successful.
    250 const char kDataReductionProxyProbeURL[]    = "data-reduction-proxy-probe-url";
    251 #endif
    252 
    253 // Enables a frame context menu item that toggles the frame in and out of glass
    254 // mode (Windows Vista and up only).
    255 const char kDebugEnableFrameToggle[]        = "debug-enable-frame-toggle";
    256 
    257 // Adds debugging entries such as Inspect Element to context menus of packed
    258 // apps.
    259 const char kDebugPackedApps[]               = "debug-packed-apps";
    260 
    261 // Enables support to debug printing subsystem.
    262 const char kDebugPrint[]                    = "debug-print";
    263 
    264 // Specifies the URL at which to fetch configuration policy from the device
    265 // management backend. Specifying this switch turns on managed policy from the
    266 // device management backend.
    267 const char kDeviceManagementUrl[]           = "device-management-url";
    268 
    269 // Triggers a plethora of diagnostic modes.
    270 const char kDiagnostics[]                   = "diagnostics";
    271 
    272 // Sets the output format for diagnostic modes enabled by diagnostics flag.
    273 const char kDiagnosticsFormat[]             = "diagnostics-format";
    274 
    275 // Tells the diagnostics mode to do the requested recovery step(s).
    276 const char kDiagnosticsRecovery[]           = "diagnostics-recovery";
    277 
    278 // Disables the experimental asynchronous DNS client.
    279 const char kDisableAsyncDns[]               = "disable-async-dns";
    280 
    281 // Disables CNAME lookup of the host when generating the Kerberos SPN for a
    282 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
    283 // background.
    284 const char kDisableAuthNegotiateCnameLookup[] =
    285     "disable-auth-negotiate-cname-lookup";
    286 
    287 // Disables background mode (background apps will not keep chrome running in
    288 // the background).
    289 const char kDisableBackgroundMode[]         = "disable-background-mode";
    290 
    291 // Disable several subsystems which run network requests in the background.
    292 // This is for use when doing network performance testing to avoid noise in the
    293 // measurements.
    294 const char kDisableBackgroundNetworking[]   = "disable-background-networking";
    295 
    296 // Disables the bundled PPAPI version of Flash.
    297 const char kDisableBundledPpapiFlash[]      = "disable-bundled-ppapi-flash";
    298 
    299 // Disables the bookmark autocomplete provider (BookmarkProvider).
    300 const char kDisableBookmarkAutocompleteProvider[] =
    301     "disable-bookmark-autocomplete-provider";
    302 
    303 // Disables the client-side phishing detection feature. Note that even if
    304 // client-side phishing detection is enabled, it will only be active if the
    305 // user has opted in to UMA stats and SafeBrowsing is enabled in the
    306 // preferences.
    307 const char kDisableClientSidePhishingDetection[] =
    308     "disable-client-side-phishing-detection";
    309 
    310 // Disable default component extensions with background pages - useful for
    311 // performance tests where these pages may interfere with perf results.
    312 const char kDisableComponentExtensionsWithBackgroundPages[] =
    313     "disable-component-extensions-with-background-pages";
    314 
    315 const char kDisableComponentUpdate[]        = "disable-component-update";
    316 
    317 // Disables establishing certificate revocation information by downloading a
    318 // set of CRLs rather than performing on-line checks.
    319 const char kDisableCRLSets[]                = "disable-crl-sets";
    320 
    321 // Disables the custom JumpList on Windows 7.
    322 const char kDisableCustomJumpList[]         = "disable-custom-jumplist";
    323 
    324 // Disables installation of default apps on first run. This is used during
    325 // automated testing.
    326 const char kDisableDefaultApps[]            = "disable-default-apps";
    327 
    328 // Disables device discovery.
    329 const char kDisableDeviceDiscovery[]        = "disable-device-discovery";
    330 
    331 // Disables device discovery notifications.
    332 const char kDisableDeviceDiscoveryNotifications[] =
    333     "disable-device-discovery-notifications";
    334 
    335 // Disables retrieval of PAC URLs from DHCP as per the WPAD standard.
    336 const char kDisableDhcpWpad[]               = "disable-dhcp-wpad";
    337 
    338 // Disable extensions.
    339 const char kDisableExtensions[]             = "disable-extensions";
    340 
    341 // Disable checking for user opt-in for extensions that want to inject script
    342 // into file URLs (ie, always allow it). This is used during automated testing.
    343 const char kDisableExtensionsFileAccessCheck[] =
    344     "disable-extensions-file-access-check";
    345 
    346 // Disable the net::URLRequestThrottlerManager functionality for
    347 // requests originating from extensions.
    348 const char kDisableExtensionsHttpThrottling[] =
    349     "disable-extensions-http-throttling";
    350 
    351 // Disable mandatory enforcement of web_accessible_resources in extensions.
    352 const char kDisableExtensionsResourceWhitelist[] =
    353     "disable-extensions-resource-whitelist";
    354 
    355 // Disables Google Now integration.
    356 const char kDisableGoogleNowIntegration[] = "disable-google-now-integration";
    357 
    358 // Disables improved SafeBrowsing download protection.
    359 const char kDisableImprovedDownloadProtection[] =
    360     "disable-improved-download-protection";
    361 
    362 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
    363 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
    364 // bugs if something isn't working properly in the presence of IPv6. This flag
    365 // can be overidden by the "enable-ipv6" flag.
    366 const char kDisableIPv6[]                   = "disable-ipv6";
    367 
    368 // Disables IP Pooling within the networks stack (SPDY only). When a connection
    369 // is needed for a domain which shares an IP with an existing connection,
    370 // attempt to use the existing connection.
    371 const char kDisableIPPooling[]              = "disable-ip-pooling";
    372 
    373 // Disable the behavior that the second click on a launcher item (the click when
    374 // the item is already active) minimizes the item.
    375 const char kDisableMinimizeOnSecondLauncherItemClick[] =
    376     "disable-minimize-on-second-launcher-item-click";
    377 
    378 // Disables the menu on the NTP for accessing sessions from other devices.
    379 const char kDisableNTPOtherSessionsMenu[]   = "disable-ntp-other-sessions-menu";
    380 
    381 // Disables omnibox auto-completion when IME is active.
    382 const char kDisableOmniboxAutoCompletionForIme[] =
    383     "disable-omnibox-auto-completion-for-ime";
    384 
    385 // Disable the origin chip.
    386 const char kDisableOriginChip[]             = "disable-origin-chip";
    387 
    388 // Disable using a public suffix based domain matching for autofill of
    389 // passwords.
    390 const char kDisablePasswordAutofillPublicSuffixDomainMatching[] =
    391     "disable-password-autofill-public-suffix-domain-matching";
    392 
    393 // Disable the setting to prompt the user for their OS account password before
    394 // revealing plaintext passwords in the password manager.
    395 const char kDisablePasswordManagerReauthentication[] =
    396     "disable-password-manager-reauthentication";
    397 
    398 // Enables searching for people from the apps list search box.
    399 const char kDisablePeopleSearch[]           = "disable-people-search";
    400 
    401 // Disable pop-up blocking.
    402 const char kDisablePopupBlocking[]          = "disable-popup-blocking";
    403 
    404 // Disables the usage of Portable Native Client.
    405 const char kDisablePnacl[]                  = "disable-pnacl";
    406 
    407 // Disable speculative TCP/IP preconnection.
    408 const char kDisablePreconnect[]             = "disable-preconnect";
    409 
    410 // Disable prerendering based on local browsing history.
    411 const char kDisablePrerenderLocalPredictor[] =
    412     "disable-prerender-local-predictor";
    413 
    414 // Disable Privet local printing.
    415 const char kDisablePrivetLocalPrinting[]     = "disable-privet-local-printing";
    416 
    417 // Normally when the user attempts to navigate to a page that was the result of
    418 // a post we prompt to make sure they want to. This switch may be used to
    419 // disable that check. This switch is used during automated testing.
    420 const char kDisablePromptOnRepost[]         = "disable-prompt-on-repost";
    421 
    422 // Disables support for the QUIC protocol.
    423 const char kDisableQuic[]                   = "disable-quic";
    424 
    425 // Disables support for the HTTPS over QUIC protocol.  This is a temporary
    426 // testing flag.  This only has an effect if QUIC protocol is enabled.
    427 const char kDisableQuicHttps[]              = "disable-quic-https";
    428 
    429 // Prevents the URLs of BackgroundContents from being remembered and
    430 // re-launched when the browser restarts.
    431 const char kDisableRestoreBackgroundContents[] =
    432     "disable-restore-background-contents";
    433 
    434 // Disables restoring session state (cookies, session storage, etc.) when
    435 // restoring the browsing session.
    436 const char kDisableRestoreSessionState[]    = "disable-restore-session-state";
    437 
    438 // Disables throttling prints initiated by scripts.
    439 const char kDisableScriptedPrintThrottling[] =
    440     "disable-scripted-print-throttling";
    441 
    442 // Disables the "search button in omnibox" experiment.
    443 const char kDisableSearchButtonInOmnibox[]  =
    444     "disable-search-button-in-omnibox";
    445 
    446 // Disable SPDY/3.1. This is a temporary testing flag.
    447 const char kDisableSpdy31[]                 = "disable-spdy31";
    448 
    449 // Disables support of sticky keys.
    450 const char kDisableStickyKeys[]             = "disable-sticky-keys";
    451 
    452 // Disables syncing browser data to a Google Account.
    453 const char kDisableSync[]                   = "disable-sync";
    454 
    455 // Disables syncing of app settings.
    456 const char kDisableSyncAppSettings[]        = "disable-sync-app-settings";
    457 
    458 // Disables syncing of apps.
    459 const char kDisableSyncApps[]               = "disable-sync-apps";
    460 
    461 // Disables syncing of autofill.
    462 const char kDisableSyncAutofill[]           = "disable-sync-autofill";
    463 
    464 // Disables syncing of autofill Profile.
    465 const char kDisableSyncAutofillProfile[]    = "disable-sync-autofill-profile";
    466 
    467 // Disables syncing of bookmarks.
    468 const char kDisableSyncBookmarks[]          = "disable-sync-bookmarks";
    469 
    470 // Disables syncing of dictionary.
    471 const char kDisableSyncDictionary[]         = "disable-sync-dictionary";
    472 
    473 // Disables syncing extension settings.
    474 const char kDisableSyncExtensionSettings[]  = "disable-sync-extension-settings";
    475 
    476 // Disables syncing of extensions.
    477 const char kDisableSyncExtensions[]         = "disable-sync-extensions";
    478 
    479 // Disables syncing of favicons.
    480 const char kDisableSyncFavicons[]           = "disable-sync-favicons";
    481 
    482 // Disables syncing browser passwords.
    483 const char kDisableSyncPasswords[]          = "disable-sync-passwords";
    484 
    485 // Disables syncing of preferences.
    486 const char kDisableSyncPreferences[]        = "disable-sync-preferences";
    487 
    488 // Disables syncing of priority preferences.
    489 const char kDisableSyncPriorityPreferences[] =
    490     "disable-sync-priority-preferences";
    491 
    492 // Disable syncing custom search engines.
    493 const char kDisableSyncSearchEngines[]      = "disable-sync-search-engines";
    494 
    495 // Disable synced notifications.
    496 const char kDisableSyncSyncedNotifications[] =
    497     "disable-sync-synced-notifications";
    498 
    499 // Disables syncing browser sessions. Will override kEnableSyncTabs.
    500 const char kDisableSyncTabs[]               = "disable-sync-tabs";
    501 
    502 // Disables syncing of themes.
    503 const char kDisableSyncThemes[]             = "disable-sync-themes";
    504 
    505 // Disables syncing browser typed urls.
    506 const char kDisableSyncTypedUrls[]          = "disable-sync-typed-urls";
    507 
    508 // Allows disabling of translate from the command line to assist with automated
    509 // browser testing (e.g. Selenium/WebDriver). Normal browser users should
    510 // disable translate with the preference.
    511 const char kDisableTranslate[]              = "disable-translate";
    512 
    513 // Disables TLS Channel ID extension.
    514 const char kDisableTLSChannelID[]           = "disable-tls-channel-id";
    515 
    516 // Disables some security measures when accessing user media devices like
    517 // webcams and microphones, especially on non-HTTPS pages.
    518 const char kDisableUserMediaSecurity[]      = "disable-user-media-security";
    519 
    520 // Do not expose WebGL extension WEBGL_debug_renderer_info to unprivileged code
    521 // in the browser.
    522 const char kDisableWebGLDebugRendererInfo[] =
    523     "disable-webgl-debug-renderer-info";
    524 
    525 // Disables the backend service for web resources.
    526 const char kDisableWebResources[]           = "disable-web-resources";
    527 
    528 // Some tests seem to require the application to close when the last
    529 // browser window is closed. Thus, we need a switch to force this behavior
    530 // for ChromeOS Aura, disable "zero window mode".
    531 // TODO(pkotwicz): Investigate if this bug can be removed.
    532 // (http://crbug.com/119175)
    533 const char kDisableZeroBrowsersOpenForTests[] =
    534     "disable-zero-browsers-open-for-tests";
    535 
    536 // Use a specific disk cache location, rather than one derived from the
    537 // UserDatadir.
    538 const char kDiskCacheDir[]                  = "disk-cache-dir";
    539 
    540 // Forces the maximum disk space to be used by the disk cache, in bytes.
    541 const char kDiskCacheSize[]                 = "disk-cache-size";
    542 
    543 const char kDnsLogDetails[]                 = "dns-log-details";
    544 
    545 // Disables prefetching of DNS information.
    546 const char kDnsPrefetchDisable[]            = "dns-prefetch-disable";
    547 
    548 // Requests that a running browser process dump its collected histograms to a
    549 // given file. The file is overwritten if it exists.
    550 const char kDumpBrowserHistograms[]         = "dump-browser-histograms";
    551 
    552 // If set, Flash fullscreen widgets are embedded within the browser window and
    553 // with the same UX as HTML5 fullscreen.
    554 //
    555 // TODO(miu): This feature is a work in-progress.  It should not be enabled by
    556 // default until going through a formal UX review, and all comments/concerns on
    557 // the crbug are addressed.  http://crbug.com/290403
    558 const char kEmbedFlashFullscreen[] = "embed-flash-fullscreen";
    559 
    560 // Enables the <adview> tag in packaged apps.
    561 const char kEnableAdview[]                  = "enable-adview";
    562 
    563 // If set, the app list will be enabled as if enabled from CWS.
    564 const char kEnableAppList[]                 = "enable-app-list";
    565 
    566 // Enables specifying a "src" attribute on <adview> elements
    567 // (for testing purposes, to skip the whitelist).
    568 const char kEnableAdviewSrcAttribute[]      = "enable-adview-src-attribute";
    569 
    570 // Enables the <window-controls> tag in platform apps.
    571 const char kEnableAppWindowControls[]       = "enable-app-window-controls";
    572 
    573 // Show apps windows after the first paint. Windows will be shown significantly
    574 // later for heavy apps loading resources synchronously but it will be
    575 // insignificant for apps that load most of their resources asynchronously.
    576 const char kEnableAppsShowOnFirstPaint[]    = "enable-apps-show-on-first-paint";
    577 
    578 // Enables the experimental asynchronous DNS client.
    579 const char kEnableAsyncDns[]                = "enable-async-dns";
    580 
    581 // Enables the inclusion of non-standard ports when generating the Kerberos SPN
    582 // in response to a Negotiate challenge. See
    583 // HttpAuthHandlerNegotiate::CreateSPN for more background.
    584 const char kEnableAuthNegotiatePort[]       = "enable-auth-negotiate-port";
    585 
    586 // Enable using a public suffix based domain matching for autofill of passwords.
    587 const char kEnablePasswordAutofillPublicSuffixDomainMatching[] =
    588     "enable-password-autofill-public-suffix-domain-matching";
    589 
    590 // Enables the pre- and auto-login features. When a user signs in to sync, the
    591 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a
    592 // GAIA login page, an info bar can help the user login.
    593 const char kEnableAutologin[]               = "enable-autologin";
    594 
    595 // Enables the benchmarking extensions.
    596 const char kEnableBenchmarking[]            = "enable-benchmarking";
    597 
    598 // Enables client hints, which adds hints about browser state to HTTP requests.
    599 const char kEnableClientHints[]             = "enable-client-hints";
    600 
    601 // Enables the multi-level undo system for bookmarks.
    602 const char kEnableBookmarkUndo[]            = "enable-bookmark-undo";
    603 
    604 // This applies only when the process type is "service". Enables the Cloud
    605 // Print Proxy component within the service process.
    606 const char kEnableCloudPrintProxy[]         = "enable-cloud-print-proxy";
    607 
    608 // Enables fetching the user's contacts from Google and showing them in the
    609 // Chrome OS apps list.
    610 const char kEnableContacts[]                = "enable-contacts";
    611 
    612 // If true devtools experimental settings are enabled.
    613 const char kEnableDevToolsExperiments[]     = "enable-devtools-experiments";
    614 
    615 // Enable device discovery notifications.
    616 const char kEnableDeviceDiscoveryNotifications[] =
    617     "enable-device-discovery-notifications";
    618 
    619 // Enables the DOM distiller.
    620 const char kEnableDomDistiller[]               = "enable-dom-distiller";
    621 
    622 // Enable Enhanced Bookmarks.
    623 const char kEnableEnhancedBookmarks[] = "enable-enhanced-bookmarks";
    624 
    625 // Enables experimentation with ephemeral apps, which are launched without
    626 // installing in Chrome.
    627 const char kEnableEphemeralApps[]           = "enable-ephemeral-apps";
    628 
    629 // Enables logging for extension activity.
    630 const char kEnableExtensionActivityLogging[] =
    631     "enable-extension-activity-logging";
    632 
    633 const char kEnableExtensionActivityLogTesting[] =
    634     "enable-extension-activity-log-testing";
    635 
    636 // Enable the fast unload controller, which speeds up tab/window close by
    637 // running a tab's onunload js handler independently of the GUI -
    638 // crbug.com/142458 .
    639 const char kEnableFastUnload[]         = "enable-fast-unload";
    640 
    641 // By default, cookies are not allowed on file://. They are needed for testing,
    642 // for example page cycler and layout tests. See bug 1157243.
    643 const char kEnableFileCookies[]             = "enable-file-cookies";
    644 
    645 // Enables Google Now integration.
    646 const char kEnableGoogleNowIntegration[]    = "enable-google-now-integration";
    647 
    648 // Enable HTTP/2 draft 04. This is a temporary testing flag.
    649 const char kEnableHttp2Draft04[]            = "enable-http2-draft-04";
    650 
    651 // Enables the inline sign in flow on Chrome desktop.
    652 const char kEnableInlineSignin[]            = "enable-inline-signin";
    653 
    654 // Enables IPv6 support, even if probes suggest that it may not be fully
    655 // supported. Some probes may require internet connections, and this flag will
    656 // allow support independent of application testing. This flag overrides
    657 // "disable-ipv6" which appears elswhere in this file.
    658 const char kEnableIPv6[]                    = "enable-ipv6";
    659 
    660 // Enables IP Pooling within the networks stack (SPDY only). When a connection
    661 // is needed for a domain which shares an IP with an existing connection,
    662 // attempt to use the existing connection.
    663 const char kEnableIPPooling[]               = "enable-ip-pooling";
    664 
    665 // Enable always using the local NTP for the first NTP load of a new window.
    666 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp";
    667 
    668 // Make the values returned to window.performance.memory more granular and more
    669 // up to date. Without this flag, the memory information is still available, but
    670 // it is bucketized and updated less frequently.
    671 const char kEnableMemoryInfo[]              = "enable-memory-info";
    672 
    673 // Enables metrics recording and reporting in the browser startup sequence, as
    674 // if this was an official Chrome build where the user allowed metrics
    675 // reporting. This is used for testing only.
    676 const char kEnableMetricsReportingForTesting[] =
    677     "enable-metrics-reporting-for-testing";
    678 
    679 // Runs the Native Client inside the renderer process and enables GPU plugin
    680 // (internally adds lEnableGpuPlugin to the command line).
    681 const char kEnableNaCl[]                    = "enable-nacl";
    682 
    683 // Enables the network-related benchmarking extensions.
    684 const char kEnableNetBenchmarking[]         = "enable-net-benchmarking";
    685 
    686 // Enables |NetworkTimeService| to convert local time to network time.
    687 const char kEnableNetworkTime[]             = "enable-network-time";
    688 
    689 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
    690 // HTTP is still used for all requests.
    691 const char kEnableNpnHttpOnly[]             = "enable-npn-http";
    692 
    693 // Enables omnibox auto-completion when IME is active.  The auto-completion for
    694 // IME is shown in the same style as the normal(non-IME) auto-completion.
    695 const char kEnableOmniboxAutoCompletionForIme[] =
    696     "enable-omnibox-auto-completion-for-ime";
    697 
    698 // Enables the origin chip.
    699 const char kEnableOriginChip[]              = "enable-origin-chip";
    700 
    701 // Enables panels (always on-top docked pop-up windows).
    702 const char kEnablePanels[]                  = "enable-panels";
    703 
    704 // Enables the proactive populating of the disk cache with Web resources that
    705 // are likely to be needed in future page fetches.
    706 const char kEnablePrecache[]                = "enable-precache";
    707 
    708 // Enables showing unregistered printers in print preview
    709 const char kEnablePrintPreviewRegisterPromos[] =
    710     "enable-print-preview-register-promos";
    711 
    712 // Enables tracking of tasks in profiler for viewing via about:profiler.
    713 // To predominantly disable tracking (profiling), use the command line switch:
    714 // --enable-profiling=0
    715 // Some tracking will still take place at startup, but it will be turned off
    716 // during chrome_browser_main.
    717 const char kEnableProfiling[]               = "enable-profiling";
    718 
    719 // Enables query in the omnibox.
    720 const char kEnableQueryExtraction[]         = "enable-query-extraction";
    721 
    722 // Enables support for the QUIC protocol.  This is a temporary testing flag.
    723 const char kEnableQuic[]                    = "enable-quic";
    724 
    725 // Enables support for the HTTPS over QUIC protocol.  This is a temporary
    726 // testing flag.  This only has an effect if QUIC protocol is enabled.
    727 const char kEnableQuicHttps[]               = "enable-quic-https";
    728 
    729 // Enables the Quickoffoce/Chrome document viewer rather than the editor.
    730 const char kEnableQuickofficeViewing[]      = "enable-quickoffice-viewing";
    731 
    732 // Enables save password prompt bubble.
    733 const char kEnableSavePasswordBubble[]      = "enable-save-password-bubble";
    734 
    735 // Controls the support for SDCH filtering (dictionary based expansion of
    736 // content). By default SDCH filtering is enabled. To disable SDCH filtering,
    737 // use "--enable-sdch=0" as command line argument. SDCH is currently only
    738 // supported server-side for searches on google.com.
    739 const char kEnableSdch[]                    = "enable-sdch";
    740 
    741 // Controls which branch of the "search button in omnibox" experiment is
    742 // enabled.
    743 const char kEnableSearchButtonInOmniboxAlways[] =
    744         "enable-search-button-in-omnibox-always";
    745 const char kEnableSearchButtonInOmniboxForStr[] =
    746         "enable-search-button-in-omnibox-for-str";
    747 const char kEnableSearchButtonInOmniboxForStrOrIip[] =
    748         "enable-search-button-in-omnibox-for-str-or-iip";
    749 
    750 // Enables support of sticky keys.
    751 const char kEnableStickyKeys[]              = "enable-sticky-keys";
    752 
    753 // Enable SPDY/2. This is a temporary testing flag. See
    754 // http://crbug.com/303957 .
    755 const char kEnableSpdy2[]                   = "enable-spdy2";
    756 
    757 // Enable SPDY/4 alpha 2. This is a temporary testing flag.
    758 const char kEnableSpdy4a2[]                 = "enable-spdy4a2";
    759 
    760 // Enables auto correction for misspelled words.
    761 const char kEnableSpellingAutoCorrect[]     = "enable-spelling-auto-correct";
    762 
    763 // Enables participation in the field trial for user feedback to spelling
    764 // service.
    765 const char kEnableSpellingFeedbackFieldTrial[] =
    766     "enable-spelling-feedback-field-trial";
    767 
    768 // Enables the stacked tabstrip.
    769 const char kEnableStackedTabStrip[]         = "enable-stacked-tab-strip";
    770 
    771 // Enables an experimental hosted app experience.
    772 const char kEnableStreamlinedHostedApps[]   = "enable-streamlined-hosted-apps";
    773 
    774 // Enables experimental suggestions pane in New Tab page.
    775 const char kEnableSuggestionsTabPage[]      = "enable-suggestions-ntp";
    776 
    777 // Enables synced notifications.
    778 const char kEnableSyncSyncedNotifications[] =
    779     "enable-sync-synced-notifications";
    780 
    781 // Enables sync/API based session sync implementation (in favor of legacy).
    782 const char kEnableSyncSessionsV2[] = "enable-sync-sessions-v2";
    783 
    784 // Enables syncing of the app list.
    785 const char kEnableSyncAppList[]             = "enable-sync-app-list";
    786 
    787 // Enables synced articles.
    788 const char kEnableSyncArticles[]            = "enable-sync-articles";
    789 
    790 // Enables context menu for selecting groups of tabs.
    791 const char kEnableTabGroupsContextMenu[]    = "enable-tab-groups-context-menu";
    792 
    793 // Enables fanciful thumbnail processing. Used with NTP for
    794 // instant-extended-api, where thumbnails are generally smaller.
    795 const char kEnableThumbnailRetargeting[]   = "enable-thumbnail-retargeting";
    796 
    797 // Enables Translate experimental new UX which replaces the infobar.
    798 const char kEnableTranslateNewUX[]         = "enable-translate-new-ux";
    799 
    800 // Enables unrestricted SSL 3.0 fallback.
    801 // With this switch, SSL 3.0 fallback will be enabled for all sites.
    802 // Without this switch, SSL 3.0 fallback will be disabled for a site
    803 // pinned to the Google pin list (indicating that it is a Google site).
    804 const char kEnableUnrestrictedSSL3Fallback[] =
    805     "enable-unrestricted-ssl3-fallback";
    806 
    807 // Enables Alternate-Protocol when the port is user controlled (> 1024).
    808 const char kEnableUserAlternateProtocolPorts[] =
    809     "enable-user-controlled-alternate-protocol-ports";
    810 
    811 // Spawns threads to watch for excessive delays in specified message loops.
    812 // User should set breakpoints on Alarm() to examine problematic thread.
    813 //
    814 // Usage:   -enable-watchdog=[ui][io]
    815 //
    816 // Order of the listed sub-arguments does not matter.
    817 const char kEnableWatchdog[]                = "enable-watchdog";
    818 
    819 // Uses WebSocket over SPDY.
    820 const char kEnableWebSocketOverSpdy[]       = "enable-websocket-over-spdy";
    821 
    822 // Explicitly allows additional ports using a comma-separated list of port
    823 // numbers.
    824 const char kExplicitlyAllowedPorts[]        = "explicitly-allowed-ports";
    825 
    826 // Marks a renderer as extension process.
    827 const char kExtensionProcess[]              = "extension-process";
    828 
    829 // Turns on extension install verification if it would not otherwise have been
    830 // turned on.
    831 const char kExtensionsInstallVerification[] = "extensions-install-verification";
    832 
    833 // Specifies a comma-separated list of extension ids that should be forced to
    834 // be treated as not from the webstore when doing install verification.
    835 const char kExtensionsNotWebstore[] = "extensions-not-webstore";
    836 
    837 // Frequency in seconds for Extensions auto-update.
    838 const char kExtensionsUpdateFrequency[]     = "extensions-update-frequency";
    839 
    840 // Additional query params to insert in the search and instant URLs.  Useful for
    841 // testing.
    842 const char kExtraSearchQueryParams[]        = "extra-search-query-params";
    843 
    844 // Fakes the channel of the browser for purposes of Variations filtering. This
    845 // is to be used for testing only. Possible values are "stable", "beta", "dev"
    846 // and "canary". Note that this only applies if the browser's reported channel
    847 // is UNKNOWN.
    848 const char kFakeVariationsChannel[]         = "fake-variations-channel";
    849 
    850 // If this flag is present then this command line is being delegated to an
    851 // already running chrome process via the fast path, ie: before chrome.dll is
    852 // loaded. It is useful to tell the difference for tracking purposes.
    853 const char kFastStart[]            = "fast-start";
    854 
    855 // These two flags are added around the switches about:flags adds to the
    856 // command line. This is useful to see which switches were added by about:flags
    857 // on about:version. They don't have any effect.
    858 const char kFlagSwitchesBegin[]             = "flag-switches-begin";
    859 const char kFlagSwitchesEnd[]               = "flag-switches-end";
    860 
    861 // Alternative feedback server to use when submitting user feedback
    862 const char kFeedbackServer[]                = "feedback-server";
    863 
    864 // The file descriptor limit is set to the value of this switch, subject to the
    865 // OS hard limits. Useful for testing that file descriptor exhaustion is
    866 // handled gracefully.
    867 const char kFileDescriptorLimit[]           = "file-descriptor-limit";
    868 
    869 // Forces application mode. This hides certain system UI elements and forces
    870 // the app to be installed if it hasn't been already.
    871 const char kForceAppMode[]                  = "force-app-mode";
    872 
    873 // Displays the First Run experience when the browser is started, regardless of
    874 // whether or not it's actually the First Run (this overrides kNoFirstRun and
    875 // kCancelFirstRun).
    876 const char kForceFirstRun[]                 = "force-first-run";
    877 
    878 // Forces additional Chrome Variation Ids that will be sent in
    879 // X-Client-Data header, specified as a 64-bit encoded list of numeric
    880 // experiment ids.
    881 const char kForceVariationIds[]             = "force-variation-ids";
    882 
    883 // Tries to load cloud policy for every signed in user, regardless of whether
    884 // they are a dasher user or not. Used to allow any GAIA account to be used for
    885 // testing the cloud policy framework.
    886 const char kForceLoadCloudPolicy[]          = "force-load-cloud-policy";
    887 
    888 // Specifies an alternate URL to use for speaking to Google. Useful for testing.
    889 const char kGoogleBaseURL[]                 = "google-base-url";
    890 
    891 // Enables using GAIA information to populate profile name and icon.
    892 const char kGoogleProfileInfo[]             = "google-profile-info";
    893 
    894 // Specifies an alternate URL to use for retrieving the search domain for
    895 // Google. Useful for testing.
    896 const char kGoogleSearchDomainCheckURL[]    = "google-search-domain-check-url";
    897 
    898 // Specifies a custom name for the GSSAPI library to load.
    899 const char kGSSAPILibraryName[]             = "gssapi-library-name";
    900 
    901 // These flags show the man page on Linux. They are equivalent to each
    902 // other.
    903 const char kHelp[]                          = "help";
    904 const char kHelpShort[]                     = "h";
    905 
    906 // Makes Windows happy by allowing it to show "Enable access to this program"
    907 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
    908 // shows an error box because the only way to hide Chrome is by uninstalling
    909 // it.
    910 const char kHideIcons[]                     = "hide-icons";
    911 
    912 // Disables full history sync.
    913 const char kHistoryDisableFullHistorySync[] = "disable-full-history-sync";
    914 
    915 // Enables grouping websites by domain and filtering them by period.
    916 const char kHistoryEnableGroupByDomain[]    = "enable-grouped-history";
    917 
    918 // Specifies which page will be displayed in newly-opened tabs. We need this
    919 // for testing purposes so that the UI tests don't depend on what comes up for
    920 // http://google.com.
    921 const char kHomePage[]                      = "homepage";
    922 
    923 // Comma-separated list of rules that control how hostnames are mapped.
    924 //
    925 // For example:
    926 //    "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
    927 //    "MAP *.google.com proxy" --> Forces all google.com subdomains to be
    928 //                                 resolved to "proxy".
    929 //    "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
    930 //                               Will also force the port of the resulting
    931 //                               socket address to be 77.
    932 //    "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
    933 //                                            except for "www.google.com".
    934 //
    935 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
    936 // connect and host resolver in a direct connection, and the CONNECT in an http
    937 // proxy connection, and the endpoint host in a SOCKS proxy connection).
    938 const char kHostRules[]                     = "host-rules";
    939 
    940 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow
    941 // (not counting backup attempts which would also consume threads).
    942 // --host-resolver-retry-attempts must be set to zero for this to be exact.
    943 const char kHostResolverParallelism[]       = "host-resolver-parallelism";
    944 
    945 // The maximum number of retry attempts to resolve the host. Set this to zero
    946 // to disable host resolver retry attempts.
    947 const char kHostResolverRetryAttempts[]     = "host-resolver-retry-attempts";
    948 
    949 // Causes net::URLFetchers to ignore requests for SSL client certificates,
    950 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
    951 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
    952 // kSyncServiceURL, etc)
    953 const char kIgnoreUrlFetcherCertRequests[]  =
    954     "ignore-urlfetcher-cert-requests";
    955 
    956 // Causes the browser to launch directly in incognito mode.
    957 const char kIncognito[]                     = "incognito";
    958 
    959 // Causes Chrome to attempt to get metadata from the webstore for the
    960 // app/extension ID given, and then prompt the user to download and install it.
    961 const char kInstallFromWebstore[]           = "install-from-webstore";
    962 
    963 // Marks a renderer as an Instant process.
    964 const char kInstantProcess[]                = "instant-process";
    965 
    966 // Specifies the testcase used by the IPC fuzzer.
    967 const char kIpcFuzzerTestcase[]             = "ipc-fuzzer-testcase";
    968 
    969 // Used for testing - keeps browser alive after last browser window closes.
    970 const char kKeepAliveForTest[]              = "keep-alive-for-test";
    971 
    972 // Enable Kiosk mode.
    973 const char kKioskMode[]                     = "kiosk";
    974 
    975 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
    976 // See http://crbug.com/31395.
    977 const char kKioskModePrinting[]             = "kiosk-printing";
    978 
    979 // Causes Chrome to attempt to get metadata from the webstore for the
    980 // given item, and then prompt the user to download and install it.
    981 const char kLimitedInstallFromWebstore[]    = "limited-install-from-webstore";
    982 
    983 // Comma-separated list of directories with component extensions to load.
    984 const char kLoadComponentExtension[]        = "load-component-extension";
    985 
    986 // Loads an extension from the specified directory.
    987 const char kLoadExtension[]                 = "load-extension";
    988 
    989 // Makes Chrome default browser
    990 const char kMakeDefaultBrowser[]            = "make-default-browser";
    991 
    992 // Sets the managed user ID for any loaded or newly created profile to the
    993 // given value. Pass an empty string to mark the profile as non-supervised.
    994 // Used for testing.
    995 const char kManagedUserId[]                 = "managed-user-id";
    996 
    997 // Used to authenticate requests to the Sync service for managed users. Setting
    998 // this switch also causes Sync to be set up for a managed user.
    999 const char kManagedUserSyncToken[]          = "managed-user-sync-token";
   1000 
   1001 // Forces the maximum disk space to be used by the media cache, in bytes.
   1002 const char kMediaCacheSize[]                = "media-cache-size";
   1003 
   1004 // Enables dynamic loading of the Memory Profiler DLL, which will trace all
   1005 // memory allocations during the run.
   1006 const char kMemoryProfiling[]               = "memory-profile";
   1007 
   1008 // Enables histograming of tasks served by MessageLoop. See
   1009 // about:histograms/Loop for results, which show frequency of messages on each
   1010 // thread, including APC count, object signalling count, etc.
   1011 const char kMessageLoopHistogrammer[]       = "message-loop-histogrammer";
   1012 
   1013 // Enables the recording of metrics reports but disables reporting. In contrast
   1014 // to kDisableMetrics, this executes all the code that a normal client would
   1015 // use for reporting, except the report is dropped rather than sent to the
   1016 // server. This is useful for finding issues in the metrics code during UI and
   1017 // performance tests.
   1018 const char kMetricsRecordingOnly[]          = "metrics-recording-only";
   1019 
   1020 // Enables multiprofile Chrome.
   1021 const char kMultiProfiles[]                 = "multi-profiles";
   1022 
   1023 // List of native messaging hosts outside of the default location. Used for
   1024 // tests. The value must be comma-separate lists of key-value pairs separated
   1025 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json".
   1026 const char kNativeMessagingHosts[]          = "native-messaging-hosts";
   1027 
   1028 // Sets the base logging level for the net log. Log 0 logs the most data.
   1029 // Intended primarily for use with --log-net-log.
   1030 const char kNetLogLevel[]                   = "net-log-level";
   1031 
   1032 // Use new profile management system, including profile sign-out and new
   1033 // choosers.
   1034 const char kNewProfileManagement[]          = "new-profile-management";
   1035 
   1036 // Disables the default browser check. Useful for UI/browser tests where we
   1037 // want to avoid having the default browser info-bar displayed.
   1038 const char kNoDefaultBrowserCheck[]         = "no-default-browser-check";
   1039 
   1040 // By default, an https page can load images, fonts or frames from an http
   1041 // page. This switch overrides this to block this lesser mixed-content problem.
   1042 const char kNoDisplayingInsecureContent[]   = "no-displaying-insecure-content";
   1043 
   1044 // Don't record/playback events when using record & playback.
   1045 const char kNoEvents[]                      = "no-events";
   1046 
   1047 // Disables all experiments set on about:flags. Does not disable about:flags
   1048 // itself. Useful if an experiment makes chrome crash at startup: One can start
   1049 // chrome with --no-experiments, disable the problematic lab at about:flags and
   1050 // then restart chrome without this switch again.
   1051 const char kNoExperiments[]                 = "no-experiments";
   1052 
   1053 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
   1054 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
   1055 // prevent first run from occuring the next time chrome is launched without this
   1056 // flag (see kCancelFirstRun for that).
   1057 const char kNoFirstRun[]                    = "no-first-run";
   1058 
   1059 // Support a separate switch that enables the v8 playback extension.
   1060 // The extension causes javascript calls to Date.now() and Math.random()
   1061 // to return consistent values, such that subsequent loads of the same
   1062 // page will result in consistent js-generated data and XHR requests.
   1063 // Pages may still be able to generate inconsistent data from plugins.
   1064 const char kNoJsRandomness[]                = "no-js-randomness";
   1065 
   1066 // Whether or not the browser should warn if the profile is on a network share.
   1067 // This flag is only relevant for Windows currently.
   1068 const char kNoNetworkProfileWarning[]       = "no-network-profile-warning";
   1069 
   1070 // Don't send hyperlink auditing pings
   1071 const char kNoPings[]                       = "no-pings";
   1072 
   1073 // Don't use a proxy server, always make direct connections. Overrides any
   1074 // other proxy server flags that are passed.
   1075 const char kNoProxyServer[]                 = "no-proxy-server";
   1076 
   1077 // Disables the service process from adding itself as an autorun process. This
   1078 // does not delete existing autorun registrations, it just prevents the service
   1079 // from registering a new one.
   1080 const char kNoServiceAutorun[]              = "no-service-autorun";
   1081 
   1082 // Does not automatically open a browser window on startup (used when
   1083 // launching Chrome for the purpose of hosting background apps).
   1084 const char kNoStartupWindow[]               = "no-startup-window";
   1085 
   1086 // Disables checking whether we received an acknowledgment when registering
   1087 // a supervised user. Also disables the timeout during registration that waits
   1088 // for the ack. Useful when debugging against a server that does not
   1089 // support notifications.
   1090 const char kNoManagedUserAcknowledgmentCheck[]  =
   1091     "no-managed-user-acknowledgment-check";
   1092 
   1093 // Specifies the maximum number of threads to use for running the Proxy
   1094 // Autoconfig (PAC) script.
   1095 const char kNumPacThreads[]                 = "num-pac-threads";
   1096 
   1097 // When the option to block third-party cookies is enabled, only block
   1098 // third-party cookies from being set.
   1099 const char kOnlyBlockSettingThirdPartyCookies[] =
   1100     "only-block-setting-third-party-cookies";
   1101 
   1102 // Launches URL in new browser window.
   1103 const char kOpenInNewWindow[]               = "new-window";
   1104 
   1105 // Simulates an organic Chrome install.
   1106 const char kOrganicInstall[]                = "organic";
   1107 
   1108 // Force use of QUIC for requests to the specified origin.
   1109 const char kOriginToForceQuicOn[]           = "origin-to-force-quic-on";
   1110 
   1111 // The time that a new chrome process which is delegating to an already running
   1112 // chrome process started. (See ProcessSingleton for more details.)
   1113 const char kOriginalProcessStartTime[]      = "original-process-start-time";
   1114 
   1115 // Enable the out of process PDF plugin.
   1116 const char kOutOfProcessPdf[] = "out-of-process-pdf";
   1117 
   1118 // Packages an extension to a .crx installable file from a given directory.
   1119 const char kPackExtension[]                 = "pack-extension";
   1120 
   1121 // Optional PEM private key to use in signing packaged .crx.
   1122 const char kPackExtensionKey[]              = "pack-extension-key";
   1123 
   1124 // Specifies the path to the user data folder for the parent profile.
   1125 const char kParentProfile[]                 = "parent-profile";
   1126 
   1127 // Launches PerformanceMonitor at startup, which will gather statistics about
   1128 // Chrome's CPU and memory usage, page load times, startup times, and network
   1129 // usage, and will also store information about events which may be of interest,
   1130 // such as extension-related occurrences and crashes. Optionally, this may be
   1131 // run with an integer value representing the interval between the timed
   1132 // metric gatherings, measured in seconds (if invalid or not provided, the
   1133 // default interval is used).
   1134 const char kPerformanceMonitorGathering[]   = "performance-monitor-gathering";
   1135 
   1136 // Read previously recorded data from the cache. Only cached data is read.
   1137 // See kRecordMode.
   1138 const char kPlaybackMode[]                  = "playback-mode";
   1139 
   1140 // Overrides the path to the location that PNaCl is installed.
   1141 const char kPnaclDir[]                      = "pnacl-dir";
   1142 
   1143 // Forces the PPAPI version of Flash (if it's being used) to run in the
   1144 // renderer process rather than in a separate plugin process.
   1145 const char kPpapiFlashInProcess[]           = "ppapi-flash-in-process";
   1146 
   1147 // Use the PPAPI (Pepper) Flash found at the given path.
   1148 const char kPpapiFlashPath[]                = "ppapi-flash-path";
   1149 
   1150 // Report the given version for the PPAPI (Pepper) Flash. The version should be
   1151 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
   1152 // defaults to "10.2.999.999".
   1153 const char kPpapiFlashVersion[]             = "ppapi-flash-version";
   1154 
   1155 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
   1156 // effect when Instant is either disabled or restricted to search, and when
   1157 // prerender is enabled.
   1158 const char kPrerenderFromOmnibox[]          = "prerender-from-omnibox";
   1159 // These are the values the kPrerenderFromOmnibox switch may have, as in
   1160 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
   1161 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
   1162 //   disabled: No prerendering.
   1163 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
   1164 //   enabled: Guaranteed prerendering.
   1165 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
   1166 // Controls speculative prerendering of pages, and content prefetching. Both
   1167 // are dispatched from <link rel=prefetch href=...> elements.
   1168 const char kPrerenderMode[]                 = "prerender";
   1169 // These are the values the kPrerenderMode switch may have, as in
   1170 // "--prerender=auto".
   1171 //   auto: Allow field trial selection for prerender.
   1172 const char kPrerenderModeSwitchValueAuto[]  = "auto";
   1173 //   disabled: No prerendering.
   1174 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
   1175 //   enabled: Prerendering.
   1176 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
   1177 
   1178 #if defined(OS_WIN)
   1179 // Enable conversion from vector to raster for any page.
   1180 const char kPrintRaster[]                   = "print-raster";
   1181 #endif
   1182 
   1183 // Use IPv6 only for privet HTTP.
   1184 const char kPrivetIPv6Only[]                   = "privet-ipv6-only";
   1185 
   1186 // Outputs the product version information and quit. Used as an internal api to
   1187 // detect the installed version of Chrome on Linux.
   1188 const char kProductVersion[]                = "product-version";
   1189 
   1190 // Selects directory of profile to associate with the first browser launched.
   1191 const char kProfileDirectory[]              = "profile-directory";
   1192 
   1193 // Starts the sampling based profiler for the browser process at startup. This
   1194 // will only work if chrome has been built with the gyp variable profiling=1.
   1195 // The output will go to the value of kProfilingFile.
   1196 const char kProfilingAtStart[]              = "profiling-at-start";
   1197 
   1198 // Specifies a location for profiling output. This will only work if chrome has
   1199 // been built with the gyp variable profiling=1.
   1200 //
   1201 //   {pid} if present will be replaced by the pid of the process.
   1202 //   {count} if present will be incremented each time a profile is generated
   1203 //           for this process.
   1204 // The default is chrome-profile-{pid}.
   1205 const char kProfilingFile[]                 = "profiling-file";
   1206 
   1207 // Specifies a path for the output of task-level profiling which can be loaded
   1208 // and viewed in about:profiler.
   1209 const char kProfilingOutputFile[]           = "profiling-output-file";
   1210 
   1211 // Controls whether profile data is periodically flushed to a file. Normally
   1212 // the data gets written on exit but cases exist where chrome doesn't exit
   1213 // cleanly (especially when using single-process). A time in seconds can be
   1214 // specified.
   1215 const char kProfilingFlush[]                = "profiling-flush";
   1216 
   1217 // Specifies a custom URL for fetching NTP promo data.
   1218 const char kPromoServerURL[]                = "promo-server-url";
   1219 
   1220 // Forces proxy auto-detection.
   1221 const char kProxyAutoDetect[]               = "proxy-auto-detect";
   1222 
   1223 // Specifies a list of hosts for whom we bypass proxy settings and use direct
   1224 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
   1225 // specified. This is a comma-separated list of bypass rules. See:
   1226 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
   1227 const char kProxyBypassList[]               = "proxy-bypass-list";
   1228 
   1229 // Uses the pac script at the given URL
   1230 const char kProxyPacUrl[]                   = "proxy-pac-url";
   1231 
   1232 // Uses a specified proxy server, overrides system settings. This switch only
   1233 // affects HTTP and HTTPS requests.
   1234 const char kProxyServer[]                   = "proxy-server";
   1235 
   1236 // Adds a "Purge memory" button to the Task Manager, which tries to dump as
   1237 // much memory as possible. This is mostly useful for testing how well the
   1238 // MemoryPurger functionality works.
   1239 //
   1240 // NOTE: This is only implemented for Views.
   1241 const char kPurgeMemoryButton[]             = "purge-memory-button";
   1242 
   1243 // Specifies the maximum length for a QUIC packet.
   1244 const char kQuicMaxPacketLength[]           = "quic-max-packet-length";
   1245 
   1246 // Chrome supports a playback and record mode.  Record mode saves *everything*
   1247 // to the cache.  Playback mode reads data exclusively from the cache.  This
   1248 // allows us to record a session into the cache and then replay it at will.
   1249 // See also kPlaybackMode.
   1250 const char kRecordMode[]                    = "record-mode";
   1251 
   1252 // Uses custom front-end URL for the remote debugging.
   1253 const char kRemoteDebuggingFrontend[]       = "remote-debugging-frontend";
   1254 
   1255 // Enables print preview in the renderer. This flag is generated internally by
   1256 // Chrome and does nothing when directly passed to the browser.
   1257 const char kRendererPrintPreview[]          = "renderer-print-preview";
   1258 
   1259 // If set, the app list will forget it has been installed on startup. Note this
   1260 // doesn't prevent the app list from running, it just makes Chrome think the app
   1261 // list hasn't been enabled (as in kEnableAppList) yet.
   1262 const char kResetAppListInstallState[]      = "reset-app-list-install-state";
   1263 
   1264 // Forces a reset of the one-time-randomized FieldTrials on this client, also
   1265 // known as the Chrome Variations state.
   1266 const char kResetVariationState[]           = "reset-variation-state";
   1267 
   1268 // Indicates the last session should be restored on startup. This overrides the
   1269 // preferences value and is primarily intended for testing. The value of this
   1270 // switch is the number of tabs to wait until loaded before 'load completed' is
   1271 // sent to the ui_test.
   1272 const char kRestoreLastSession[]            = "restore-last-session";
   1273 
   1274 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
   1275 // (with a directory of sub-resources). Enable only saving pages as MHTML.
   1276 // See http://crbug.com/120416 for how to remove this switch.
   1277 const char kSavePageAsMHTML[]               = "save-page-as-mhtml";
   1278 
   1279 // URL prefix used by safebrowsing to fetch hash, download data and report
   1280 // malware.
   1281 const char kSbURLPrefix[]                   = "safebrowsing-url-prefix";
   1282 
   1283 // If present, safebrowsing only performs update when
   1284 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
   1285 // This is used for testing only.
   1286 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
   1287 
   1288 // TODO(lzheng): Remove this flag once the feature works fine
   1289 // (http://crbug.com/74848).
   1290 //
   1291 // Disables safebrowsing feature that checks download url and downloads
   1292 // content's hash to make sure the content are not malicious.
   1293 const char kSbDisableDownloadProtection[] =
   1294     "safebrowsing-disable-download-protection";
   1295 
   1296 // Disables safebrowsing feature that checks for blacklisted extensions.
   1297 const char kSbDisableExtensionBlacklist[] =
   1298     "safebrowsing-disable-extension-blacklist";
   1299 
   1300 // Disables safebrowsing feature that provides a side-effect free whitelist.
   1301 const char kSbDisableSideEffectFreeWhitelist[] =
   1302     "safebrowsing-disable-side-effect-free-whitelist";
   1303 
   1304 // URL to send safebrowsing download feedback reports to.
   1305 const char kSbDownloadFeedbackURL[] = "safebrowsing-download-feedback-url";
   1306 
   1307 // Causes the process to run as a service process.
   1308 const char kServiceProcess[]                = "service";
   1309 
   1310 // Sets a token in the token service, for testing.
   1311 const char kSetToken[]                      = "set-token";
   1312 
   1313 // If true the app list will be shown.
   1314 const char kShowAppList[]                   = "show-app-list";
   1315 
   1316 // If true the app list will show the start page webui.
   1317 const char kShowAppListStartPage[]          = "show-app-list-start-page";
   1318 
   1319 // See kHideIcons.
   1320 const char kShowIcons[]                     = "show-icons";
   1321 
   1322 // Marks a renderer as the signin process.
   1323 const char kSigninProcess[]                 = "signin-process";
   1324 
   1325 // Does not show an infobar when an extension attaches to a page using
   1326 // chrome.debugger page. Required to attach to extension background pages.
   1327 const char kSilentDebuggerExtensionAPI[]    = "silent-debugger-extension-api";
   1328 
   1329 // Changes the DCHECKS to dump memory and continue instead of displaying error
   1330 // dialog. This is valid only in Release mode when --enable-dcheck is
   1331 // specified.
   1332 const char kSilentDumpOnDCHECK[]            = "silent-dump-on-dcheck";
   1333 
   1334 // Causes Chrome to launch without opening any windows by default. Useful if
   1335 // one wishes to use Chrome as an ash server.
   1336 const char kSilentLaunch[]                  = "silent-launch";
   1337 
   1338 // Simulates an update being available.
   1339 const char kSimulateUpgrade[]               = "simulate-upgrade";
   1340 
   1341 // Simulates a critical update being available.
   1342 const char kSimulateCriticalUpdate[]        = "simulate-critical-update";
   1343 
   1344 // Simulates that current version is outdated.
   1345 const char kSimulateOutdated[]               = "simulate-outdated";
   1346 
   1347 // Replaces the buffered data source for <audio> and <video> with a simplified
   1348 // resource loader that downloads the entire resource into memory.
   1349 
   1350 // Second origin that can be used for the spdy proxy.
   1351 const char kSpdyProxyAuthFallback[]         = "spdy-proxy-auth-fallback";
   1352 
   1353 // Origin for which SpdyProxy authentication is supported.
   1354 const char kSpdyProxyAuthOrigin[]           = "spdy-proxy-auth-origin";
   1355 
   1356 // Authentication string for the data reduction proxy.
   1357 const char kSpdyProxyAuthValue[]            = "spdy-proxy-auth-value";
   1358 
   1359 // Speculative resource prefetching.
   1360 const char kSpeculativeResourcePrefetching[] =
   1361     "speculative-resource-prefetching";
   1362 
   1363 // Speculative resource prefetching is disabled.
   1364 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
   1365 
   1366 // Speculative resource prefetching will only learn about resources that need to
   1367 // be prefetched but will not prefetch them.
   1368 const char kSpeculativeResourcePrefetchingLearning[] = "learning";
   1369 
   1370 // Speculative resource prefetching is enabled.
   1371 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
   1372 
   1373 // Specifies the URL where spelling service feedback data will be sent instead
   1374 // of the default URL. This switch is for temporary testing only.
   1375 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
   1376 // August 2013.
   1377 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url";
   1378 
   1379 // Specifies the number of seconds between sending batches of feedback to
   1380 // spelling service. The default is 30 minutes. The mininum is 5 seconds. This
   1381 // switch is for temporary testing only.
   1382 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
   1383 // August 2013.
   1384 const char kSpellingServiceFeedbackIntervalSeconds[] =
   1385     "spelling-service-feedback-interval-seconds";
   1386 
   1387 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
   1388 // "tls1.2").
   1389 const char kSSLVersionMax[]                 = "ssl-version-max";
   1390 
   1391 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
   1392 // "tls1.2").
   1393 const char kSSLVersionMin[]                 = "ssl-version-min";
   1394 
   1395 // Starts the browser maximized, regardless of any previous settings.
   1396 const char kStartMaximized[]                = "start-maximized";
   1397 
   1398 // Controls the width of time-of-day filters on the 'suggested' ntp page, in
   1399 // minutes.
   1400 const char kSuggestionNtpFilterWidth[]      = "suggestion-ntp-filter-width";
   1401 
   1402 // Enables a normal distribution dropoff to the relevancy of visits with respect
   1403 // to the time of day.
   1404 const char kSuggestionNtpGaussianFilter[]   = "suggestion-ntp-gaussian-filter";
   1405 
   1406 // Enables a linear dropoff to the relevancy of visits with respect to the time
   1407 // of day.
   1408 const char kSuggestionNtpLinearFilter[]     = "suggestion-ntp-linear-filter";
   1409 
   1410 // Allows insecure XMPP connections for sync (for testing).
   1411 const char kSyncAllowInsecureXmppConnection[] =
   1412     "sync-allow-insecure-xmpp-connection";
   1413 
   1414 // Invalidates any login info passed into sync's XMPP connection.
   1415 const char kSyncInvalidateXmppLogin[]       = "sync-invalidate-xmpp-login";
   1416 
   1417 // This flag causes sync to retry very quickly (see polling_constants.h) the
   1418 // when it encounters an error, as the first step towards exponential backoff.
   1419 const char kSyncShortInitialRetryOverride[] =
   1420     "sync-short-initial-retry-override";
   1421 
   1422 // Overrides the default host:port used for sync notifications.
   1423 const char kSyncNotificationHostPort[]      = "sync-notification-host-port";
   1424 
   1425 // Overrides the default server used for profile sync.
   1426 const char kSyncServiceURL[]                = "sync-url";
   1427 
   1428 // Makes the sync code to throw an unrecoverable error after initialization.
   1429 // Useful for testing unrecoverable error scenarios.
   1430 const char kSyncThrowUnrecoverableError[]   = "sync-throw-unrecoverable-error";
   1431 
   1432 
   1433 // Tries to connect to XMPP using SSLTCP first (for testing).
   1434 const char kSyncTrySsltcpFirstForXmpp[]     = "sync-try-ssltcp-first-for-xmpp";
   1435 
   1436 // Enables deferring sync backend initialization until user initiated changes
   1437 // occur.
   1438 const char kSyncEnableDeferredStartup[]     = "sync-enable-deferred-startup";
   1439 
   1440 // Enables feature to avoid unnecessary GetUpdate requests.
   1441 const char kSyncEnableGetUpdateAvoidance[]   =
   1442     "sync-enable-get-update-avoidance";
   1443 
   1444 // Enables directory support for sync filesystem
   1445 const char kSyncfsEnableDirectoryOperation[] =
   1446     "enable-syncfs-directory-operation";
   1447 
   1448 // Enables tab dragging to create a real browser.
   1449 const char kTabBrowserDragging[]            = "enable-tab-browser-dragging";
   1450 
   1451 // Passes the name of the current running automated test to Chrome.
   1452 const char kTestName[]                      = "test-name";
   1453 
   1454 // Type of the current test harness ("browser" or "ui").
   1455 const char kTestType[]                      = "test-type";
   1456 
   1457 // Tells the app to listen for and broadcast testing-related messages on IPC
   1458 // channel with the given ID.
   1459 const char kTestingChannelID[]              = "testing-channel";
   1460 
   1461 // Enables tracking the amount of non-idle time spent viewing pages.
   1462 const char kTrackActiveVisitTime[]          = "track-active-visit-time";
   1463 
   1464 // Overrides the default server used for Google Translate.
   1465 const char kTranslateScriptURL[]            = "translate-script-url";
   1466 
   1467 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
   1468 // The value is the host:port of the trusted proxy.
   1469 const char kTrustedSpdyProxy[]              = "trusted-spdy-proxy";
   1470 
   1471 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
   1472 // be used only by the upgrade process.
   1473 const char kTryChromeAgain[]                = "try-chrome-again";
   1474 
   1475 // Uninstalls an extension with the specified extension id.
   1476 const char kUninstallExtension[]            = "uninstall-extension";
   1477 
   1478 // Runs un-installation steps that were done by chrome first-run.
   1479 const char kUninstall[]                     = "uninstall";
   1480 
   1481 // Overrides per-origin quota settings to unlimited storage for any
   1482 // apps/origins.  This should be used only for testing purpose.
   1483 const char kUnlimitedStorage[]              = "unlimited-storage";
   1484 
   1485 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
   1486 // testing flag.
   1487 const char kUseSpdy[]                       = "use-spdy";
   1488 
   1489 // Disables use of the spelling web service and only provides suggestions.
   1490 // This will only work if asynchronous spell checking is not disabled.
   1491 const char kUseSpellingSuggestions[]        = "use-spelling-suggestions";
   1492 
   1493 // Sets the maximum concurrent streams over a SPDY session.
   1494 const char kMaxSpdyConcurrentStreams[]      = "max-spdy-concurrent-streams";
   1495 
   1496 // Specifies the user data directory, which is where the browser will look for
   1497 // all of its state.
   1498 const char kUserDataDir[]                   = "user-data-dir";
   1499 
   1500 // Examines a .crx for validity and prints the result.
   1501 const char kValidateCrx[]                   = "validate-crx";
   1502 
   1503 // Uses experimental simple cache backend if possible.
   1504 const char kUseSimpleCacheBackend[]         = "use-simple-cache-backend";
   1505 
   1506 // Specifies a custom URL for the server which reports variation data to the
   1507 // client. Specifying this switch enables the Variations service on
   1508 // unofficial builds. See variations_service.cc.
   1509 const char kVariationsServerURL[]           = "variations-server-url";
   1510 
   1511 // Prints version information and quits.
   1512 const char kVersion[]                       = "version";
   1513 
   1514 // Adds the given extension ID to all the permission whitelists.
   1515 const char kWhitelistedExtensionID[]        = "whitelisted-extension-id";
   1516 
   1517 // Specify the initial window position: --window-position=x,y
   1518 const char kWindowPosition[]                = "window-position";
   1519 
   1520 // Specify the initial window size: --window-size=w,h
   1521 const char kWindowSize[]                    = "window-size";
   1522 
   1523 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
   1524 // use Chromium's network stack to fetch, and V8 to evaluate.
   1525 const char kWinHttpProxyResolver[]          = "winhttp-proxy-resolver";
   1526 
   1527 #if defined(ENABLE_PLUGIN_INSTALLATION)
   1528 // Specifies a custom URL for fetching plug-ins metadata. Used for testing.
   1529 const char kPluginsMetadataServerURL[]      = "plugins-metadata-server-url";
   1530 #endif
   1531 
   1532 #if defined(OS_ANDROID) || defined(OS_IOS)
   1533 // Enable SPDY proxy.
   1534 const char kEnableSpdyProxyAuth[]           = "enable-spdy-proxy-auth";
   1535 #endif  // defined(OS_ANDROID) || defined(OS_IOS)
   1536 
   1537 #if defined(OS_ANDROID)
   1538 // Makes the "Add to Homescreen" shortcut invisible.
   1539 const char kDisableAddToHomescreen[]         = "disable-add-to-homescreen";
   1540 
   1541 // Disables the new NTP.
   1542 const char kDisableNewNTP[]                  = "disable-new-ntp";
   1543 
   1544 // Disables zero suggest experiment on Dev channel.
   1545 const char kDisableZeroSuggest[] = "disable-zero-suggest";
   1546 
   1547 // Enable the accessibility tab switcher.
   1548 const char kEnableAccessibilityTabSwitcher[] =
   1549     "enable-accessibility-tab-switcher";
   1550 
   1551 // Makes the "Add to Homescreen" shortcut visible.
   1552 const char kEnableAddToHomescreen[]         = "enable-add-to-homescreen";
   1553 
   1554 // Enables the new NTP.
   1555 const char kEnableNewNTP[]                  = "enable-new-ntp";
   1556 
   1557 // Pops the translate infobar if possible.
   1558 const char kEnableTranslate[]               = "enable-translate";
   1559 
   1560 // Enables support for playing videos on Chromecast devices.
   1561 const char kEnableCast[]                    = "enable-cast";
   1562 
   1563 // Enables zero suggest functionality on Dev channel, showing contextual
   1564 // suggestions (EtherSuggest) for http pages and google.com search queries.
   1565 const char kEnableZeroSuggestEtherSerp[] =
   1566     "enable-zero-suggest-ether-serp";
   1567 
   1568 // Enables zero suggest functionality on Dev channel, showing contextual
   1569 // suggestions (EtherSuggest) for http pages.
   1570 const char kEnableZeroSuggestEtherNoSerp[] =
   1571     "enable-zero-suggest-ether-noserp";
   1572 
   1573 // Enables zero suggest functionality on Dev channel, showing most visited
   1574 // sites as default suggestions.
   1575 const char kEnableZeroSuggestMostVisited[] =
   1576     "enable-zero-suggest-most-visited";
   1577 
   1578 #endif
   1579 
   1580 #if defined(USE_ASH)
   1581 const char kOpenAsh[]                       = "open-ash";
   1582 #endif
   1583 
   1584 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
   1585 // Specifies which password store to use (detect, default, gnome, kwallet).
   1586 const char kPasswordStore[]                 = "password-store";
   1587 #endif
   1588 
   1589 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
   1590 // Triggers migration of user data directory to another directory
   1591 // specified as a parameter. The migration is done under singleton lock,
   1592 // and sanity checks are made to avoid corrupting the profile.
   1593 // The browser exits after migration is complete.
   1594 const char kMigrateDataDirForSxS[]          = "migrate-data-dir-for-sxs";
   1595 #endif  // defined(OS_LINUX) && !defined(OS_CHROMEOS)
   1596 
   1597 #if defined(OS_MACOSX)
   1598 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
   1599 // older, SnowLeopard-style fullscreen.
   1600 const char kDisableSystemFullscreenForTesting[] =
   1601     "disable-system-fullscreen-for-testing";
   1602 
   1603 // Enable to allow creation and launch of app shims for platform apps.
   1604 const char kEnableAppShims[]                = "enable-app-shims";
   1605 
   1606 // Enables the tabs expose feature ( http://crbug.com/50307 ).
   1607 const char kEnableExposeForTabs[]           = "enable-expose-for-tabs";
   1608 
   1609 // Enables a simplified fullscreen UI on Mac.
   1610 const char kEnableSimplifiedFullscreen[]    = "enable-simplified-fullscreen";
   1611 
   1612 // Performs Keychain reauthorization from the command line on behalf of a
   1613 // special Keychain reauthorization stub executable. Used during auto-update.
   1614 const char kKeychainReauthorize[]           = "keychain-reauthorize";
   1615 
   1616 // A process type (switches::kProcessType) that relaunches the browser. See
   1617 // chrome/browser/mac/relauncher.h.
   1618 const char kRelauncherProcess[]             = "relauncher";
   1619 
   1620 // Uses mock keychain for testing purposes, which prevents blocking dialogs
   1621 // from causing timeouts.
   1622 const char kUseMockKeychain[]               = "use-mock-keychain";
   1623 #endif
   1624 
   1625 #if defined(OS_WIN)
   1626 // Force-enables the profile shortcut manager. This is needed for tests since
   1627 // they use a custom-user-data-dir which disables this.
   1628 const char kEnableProfileShortcutManager[]  = "enable-profile-shortcut-manager";
   1629 
   1630 // For the DelegateExecute verb handler to launch Chrome in metro mode on
   1631 // Windows 8 and higher.  Used when relaunching metro Chrome.
   1632 const char kForceImmersive[]                = "force-immersive";
   1633 
   1634 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
   1635 // Windows 8 and higher.  Used when relaunching metro Chrome.
   1636 const char kForceDesktop[]                  = "force-desktop";
   1637 
   1638 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
   1639 const char kRelaunchShortcut[]              = "relaunch-shortcut";
   1640 
   1641 // Waits for the given handle to be signaled before relaunching metro Chrome on
   1642 // Windows 8 and higher.
   1643 const char kWaitForMutex[]                  = "wait-for-mutex";
   1644 
   1645 // Indicates that chrome was launched to service a search request in Windows 8.
   1646 const char kWindows8Search[]           = "windows8-search";
   1647 
   1648 #endif
   1649 
   1650 #if defined(OS_WIN) && defined(USE_AURA)
   1651 // Requests that Chrome connect to the running Metro viewer process.
   1652 const char kViewerConnect[]                 = "viewer-connect";
   1653 
   1654 // Requests that Chrome launch the Metro viewer process via the given appid
   1655 // (which is assumed to be registered as default browser) and synchronously
   1656 // connect to it.
   1657 const char kViewerLaunchViaAppId[]          = "viewer-launch-via-appid";
   1658 #endif
   1659 
   1660 #ifndef NDEBUG
   1661 // Enables overriding the path of file manager extension.
   1662 const char kFileManagerExtensionPath[]      = "filemgr-ext-path";
   1663 
   1664 // Enables overriding the path of image loader extension.
   1665 const char kImageLoaderExtensionPath[]      = "image-loader-ext-path";
   1666 #endif  // NDEBUG
   1667 
   1668 // Controls print preview in the browser process.
   1669 #if defined(GOOGLE_CHROME_BUILD)
   1670 // Disables print preview (For testing, and for users who don't like us. :[ )
   1671 const char kDisablePrintPreview[]           = "disable-print-preview";
   1672 #else
   1673 // Enables print preview (Force enable on Chromium, which normally does not
   1674 //                        have the PDF viewer required for print preview.)
   1675 const char kEnablePrintPreview[]            = "enable-print-preview";
   1676 #endif
   1677 
   1678 // -----------------------------------------------------------------------------
   1679 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
   1680 //
   1681 // You were going to just dump your switches here, weren't you? Instead, please
   1682 // put them in alphabetical order above, or in order inside the appropriate
   1683 // ifdef at the bottom. The order should match the header.
   1684 // -----------------------------------------------------------------------------
   1685 
   1686 }  // namespace switches
   1687