15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Copyright (c) 2012 The Chromium Authors. All rights reserved.
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file.
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "chrome/common/chrome_switches.h"
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/base_switches.h"
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "base/command_line.h"
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)namespace switches {
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------------------------
13b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Can't find the switch you are looking for? Try looking in:
14b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// ash/ash_switches.cc
15b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// base/base_switches.cc
16b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// chromeos/chromeos_switches.cc
17b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// etc.
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When commenting your switch, please use the same voice as surrounding
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// comments. Imagine "This switch..." at the beginning of the phrase, and it'll
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all work out.
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------------------------
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
242385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// Allows choosing an existing managed user profile during the managed
252385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch// user creation flow.
262385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdochconst char kAllowCreateExistingManagedUsers[] =
272385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch    "allow-create-existing-managed-users";
282385ea399aae016c0806a4f9ef3c9cfe3d2a39dfBen Murdoch
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows third-party content included on a page to prompt for a HTTP basic
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// auth username/password pair.
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowCrossOriginAuthPrompt[]    = "allow-cross-origin-auth-prompt";
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// On ChromeOS, file:// access is disabled except for certain whitelisted
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// directories. This switch re-enables file:// for testing.
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowFileAccess[]               = "allow-file-access";
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
37c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Allow non-secure origins to use the screen capture API.
38c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAllowHttpScreenCapture[] = "allow-http-screen-capture";
39c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
40c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Specifies comma-separated list of extension ids or hosts to grant
41868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// access to CRX file system APIs.
42868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kAllowNaClCrxFsAPI[]             = "allow-nacl-crxfs-api";
43868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
44868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Specifies comma-separated list of extension ids or hosts to grant
457d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// access to file handle APIs.
467d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kAllowNaClFileHandleAPI[]        = "allow-nacl-file-handle-api";
477d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
487d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Specifies comma-separated list of extension ids or hosts to grant
49c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// access to TCP/UDP socket APIs.
505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowNaClSocketAPI[]            = "allow-nacl-socket-api";
515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't block outdated plugins.
535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowOutdatedPlugins[]          = "allow-outdated-plugins";
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, an https page cannot run JavaScript, CSS or plug-ins from http
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// URLs. This provides an override to get the old insecure behavior.
575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAllowRunningInsecureContent[]   = "allow-running-insecure-content";
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevents Chrome from requiring authorization to run certain widely installed
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// but less commonly used plug-ins.
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAlwaysAuthorizePlugins[]        = "always-authorize-plugins";
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies that the extension-app with the specified id should be launched
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// according to its configuration.
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppId[]                         = "app-id";
665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies that the associated value should be launched in "application"
685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// mode.
695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kApp[]                           = "app";
705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
714e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Specifies an URL to use for app list start page.
724e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kAppListStartPageURL[]           = "app-list-start-page-url";
734e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
742a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Flag to enable apps_devtool app.
752a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAppsDevtool[]                   = "apps-devtool";
762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the initial size for application windows launched with --app.
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --app-window-size=w,h
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppWindowSize[]                 = "app-window-size";
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the apps checkout URL, which is used to determine when to expose
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// some private APIs.
835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppsCheckoutURL[]               = "apps-checkout-url";
845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL that the webstore APIs download extensions from.
865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Note: the URL must contain one '%s' for the extension ID.
875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppsGalleryDownloadURL[]        = "apps-gallery-download-url";
885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A setting to cause extension/app installs from the webstore skip the normal
905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// confirmation dialog. A value of 'accept' means to always act as if the dialog
915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// was accepted, and 'cancel' means to always act as if the dialog was
925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// cancelled.
935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppsGalleryInstallAutoConfirmForTests[] =
945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "apps-gallery-install-auto-confirm-for-tests";
955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL to use for the gallery link in the app launcher.
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppsGalleryURL[]                = "apps-gallery-url";
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The update url used by gallery/webstore extensions.
1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppsGalleryUpdateURL[]          = "apps-gallery-update-url";
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1022a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Value of GAIA auth code for --force-app-mode.
1032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAppModeAuthCode[]               = "app-mode-auth-code";
1042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Value of OAuth2 refresh token for --force-app-mode.
1062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kAppModeOAuth2Token[]            = "app-mode-oauth-token";
1072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether to always use the new app install bubble when installing an app.
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAppsNewInstallBubble[]          = "apps-new-install-bubble";
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
111c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Experimental native frame support for packaged apps.
112c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kAppsUseNativeFrame[]            = "apps-use-native-frame";
113c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
11490dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Enables overriding the path for the default authentication extension.
11590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kAuthExtensionPath[]             = "auth-ext-path";
11690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
1175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist of servers that Negotiate will generate delegated Kerberos tickets
1185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for.
1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthNegotiateDelegateWhitelist[] =
1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "auth-negotiate-delegate-whitelist";
1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// HTTP authentication schemes to enable. This is a comma-separated list of
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// authentication schemes (basic, digest, ntlm, and negotiate). By default all
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// schemes are enabled. The primary use of this command line flag is to help
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// triage authentication-related issues reported by end-users.
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthSchemes[]                   = "auth-schemes";
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whitelist of servers which NTLM and Negotiate can automatically authenticate
1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// with using the default credentials of the currently logged in user.
1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAuthServerWhitelist[]           = "auth-server-whitelist";
1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A flag that is used to tell Chrome that it was launched automatically at
1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// computer startup and not by some user action.
1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutoLaunchAtStartup[]           = "auto-launch-at-startup";
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value of this switch tells the app to listen for and broadcast
1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// automation-related messages on IPC channel with the given ID.
1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutomationClientChannelID[]     = "automation-channel";
1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the automation provider to reinitialize its IPC channel instead of
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shutting down when a client disconnects.
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kAutomationReinitializeOnChannelError[] =
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "automation-reinitialize-on-channel-error";
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
145ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// Similar to kNoFirstRun, but also drops the First Run beacon so that first run
146ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// will not occur in subsequent runs either.
147ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdochconst char kCancelFirstRun[]                = "cancel-first-run";
148ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch
149a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Certificate Transparency: Uses the provided log for checking Signed
150a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Certificate Timestamps provided with certificates.
151a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// The switch's value is:
152a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)//   log_description:log_key
153a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// where:
154a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)//   log_description is a textual description of the log
155a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)//   log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
156a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)//   public key.
157a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kCertificateTransparencyLog[] =
158a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    "certificate-transparency-log";
159a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// How often (in seconds) to check for updates. Should only be used for testing
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// purposes.
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCheckForUpdateIntervalSec[]     = "check-for-update-interval";
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Checks the cloud print connector policy, informing the service process if
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the policy is set to disallow the connector, then quits.
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCheckCloudPrintConnectorPolicy[] =
1675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "check-cloud-print-connector-policy";
1685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Run Chrome in Chrome Frame mode. This means that Chrome expects to be run
1702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// as a dependent process of the Chrome Frame plugin.
1712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kChromeFrame[]                   = "chrome-frame";
1722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells chrome to load the specified version of chrome.dll on Windows. If this
1745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// version cannot be loaded, Chrome will exit.
1755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kChromeVersion[]                 = "chrome-version";
1765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Comma-separated list of SSL cipher suites to disable.
1785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCipherSuiteBlacklist[]          = "cipher-suite-blacklist";
1795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Clears the token service before using it. This allows simulating the
1815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// expiration of credentials during testing.
1825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kClearTokenService[]             = "clear-token-service";
1835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used with kCloudPrintFile. Tells Chrome to delete the file when finished
1855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// displaying the print dialog.
1865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintDeleteFile[]          = "cloud-print-delete-file";
1875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells chrome to display the cloud print dialog and upload the specified file
1895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for printing.
1905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintFile[]                = "cloud-print-file";
1915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the mime type to be used when uploading data from the file
1935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// referenced by cloud-print-file. Defaults to "application/pdf" if
1945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// unspecified.
1955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintFileType[]            = "cloud-print-file-type";
1965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used with kCloudPrintFile to specify a JSON print ticket for the resulting
1985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// print job. Defaults to null if unspecified.
1995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintPrintTicket[]         = "cloud-print-print-ticket";
2005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used with kCloudPrintFile to specify a title for the resulting print job.
2025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintJobTitle[]            = "cloud-print-job-title";
2035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Setup cloud print proxy for provided printers. This does not start
2052a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// service or register proxy for autostart.
206c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kCloudPrintSetupProxy[]          = "cloud-print-setup-proxy";
2075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The URL of the cloud print service to use, overrides any value stored in
2095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences, and the default. Only used if the cloud print service has been
2105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// enabled (see enable-cloud-print).
2115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCloudPrintServiceURL[]          = "cloud-print-service";
2125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Comma-separated options to troubleshoot the component updater. Only valid
2145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for the browser process.
215eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kComponentUpdater[]              = "component-updater";
2165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the browser process to inspect loaded and registered DLLs for known
2185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// conflicts and warn the user.
2195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kConflictingModulesCheck[]       = "conflicting-modules-check";
2205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Toggles a new version of the content settings dialog in options.
2225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kContentSettings2[]              = "new-content-settings";
2235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The Country we should use. This is normally obtained from the operating
2255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// system during first run and cached in the preferences afterwards. This is a
2265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// string value, the 2 letter code from ISO 3166-1.
2275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCountry[]                       = "country";
2285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Comma-separated list of BrowserThreads that cause browser process to crash
2305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
2315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// list of BrowserThreads that are supported.
2325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
2335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For example:
2342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//    --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
2352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//      is not responsive for 18 seconds and the number of browser threads that
2362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)//      are responding is less than or equal to 3.
2375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCrashOnHangThreads[]            = "crash-on-hang-threads";
2385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some platforms like ChromeOS default to empty desktop.
2405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Browser tests may need to add this switch so that at least one browser
2415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// instance is created on startup.
2425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(nkostylev): Investigate if this switch could be removed.
2435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (http://crbug.com/148675)
2445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kCreateBrowserOnStartupForTests[] =
2455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "create-browser-on-startup-for-tests";
2465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2474e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#if defined(OS_ANDROID) || defined(OS_IOS)
2484e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// If set, the data reduction proxy will only be enabled if a request for this
2494e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// URL is successful.
2504e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDataReductionProxyProbeURL[]    = "data-reduction-proxy-probe-url";
2514e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)#endif
2524e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
2535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables a frame context menu item that toggles the frame in and out of glass
2545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// mode (Windows Vista and up only).
2555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDebugEnableFrameToggle[]        = "debug-enable-frame-toggle";
2565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Adds debugging entries such as Inspect Element to context menus of packed
2585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// apps.
259c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDebugPackedApps[]               = "debug-packed-apps";
2605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables support to debug printing subsystem.
2625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDebugPrint[]                    = "debug-print";
2635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the URL at which to fetch configuration policy from the device
2655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// management backend. Specifying this switch turns on managed policy from the
2665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// device management backend.
2675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDeviceManagementUrl[]           = "device-management-url";
2685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Triggers a plethora of diagnostic modes.
2705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiagnostics[]                   = "diagnostics";
2715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2727dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Sets the output format for diagnostic modes enabled by diagnostics flag.
2737dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kDiagnosticsFormat[]             = "diagnostics-format";
2747dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
2753240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// Tells the diagnostics mode to do the requested recovery step(s).
2763240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kDiagnosticsRecovery[]           = "diagnostics-recovery";
2773240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch
2785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the experimental asynchronous DNS client.
2795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAsyncDns[]               = "disable-async-dns";
2805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables CNAME lookup of the host when generating the Kerberos SPN for a
2825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
2835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// background.
2845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableAuthNegotiateCnameLookup[] =
2855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-auth-negotiate-cname-lookup";
2865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables background mode (background apps will not keep chrome running in
2885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the background).
2895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBackgroundMode[]         = "disable-background-mode";
2905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable several subsystems which run network requests in the background.
2925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is for use when doing network performance testing to avoid noise in the
2935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// measurements.
2945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBackgroundNetworking[]   = "disable-background-networking";
2955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables the bundled PPAPI version of Flash.
2975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBundledPpapiFlash[]      = "disable-bundled-ppapi-flash";
2985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
2995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the bookmark autocomplete provider (BookmarkProvider).
3005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableBookmarkAutocompleteProvider[] =
3015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-bookmark-autocomplete-provider";
3025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the client-side phishing detection feature. Note that even if
3045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// client-side phishing detection is enabled, it will only be active if the
3055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// user has opted in to UMA stats and SafeBrowsing is enabled in the
3065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences.
3075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableClientSidePhishingDetection[] =
3085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-client-side-phishing-detection";
3095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3104e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Disable default component extensions with background pages - useful for
3114e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// performance tests where these pages may interfere with perf results.
3124e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kDisableComponentExtensionsWithBackgroundPages[] =
3134e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)    "disable-component-extensions-with-background-pages";
3144e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
3155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableComponentUpdate[]        = "disable-component-update";
3165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables establishing certificate revocation information by downloading a
3185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// set of CRLs rather than performing on-line checks.
3195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableCRLSets[]                = "disable-crl-sets";
3205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the custom JumpList on Windows 7.
3225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableCustomJumpList[]         = "disable-custom-jumplist";
3235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables installation of default apps on first run. This is used during
3255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// automated testing.
3265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDefaultApps[]            = "disable-default-apps";
3275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
32858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables device discovery.
32958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableDeviceDiscovery[]        = "disable-device-discovery";
33058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
331d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Disables device discovery notifications.
332d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableDeviceDiscoveryNotifications[] =
333d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)    "disable-device-discovery-notifications";
334d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
3355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables retrieval of PAC URLs from DHCP as per the WPAD standard.
3365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableDhcpWpad[]               = "disable-dhcp-wpad";
3375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable extensions.
3395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensions[]             = "disable-extensions";
3405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable checking for user opt-in for extensions that want to inject script
3425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// into file URLs (ie, always allow it). This is used during automated testing.
3435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensionsFileAccessCheck[] =
3445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-extensions-file-access-check";
3455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable the net::URLRequestThrottlerManager functionality for
3475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// requests originating from extensions.
3485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensionsHttpThrottling[] =
3495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-extensions-http-throttling";
3505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable mandatory enforcement of web_accessible_resources in extensions.
3525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableExtensionsResourceWhitelist[] =
3535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-extensions-resource-whitelist";
3545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3558bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Disables Google Now integration.
3568bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kDisableGoogleNowIntegration[] = "disable-google-now-integration";
3578bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
3585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables improved SafeBrowsing download protection.
3595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableImprovedDownloadProtection[] =
3605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-improved-download-protection";
3615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't resolve hostnames to IPv6 addresses. This can be used when debugging
3635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
3645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// bugs if something isn't working properly in the presence of IPv6. This flag
3655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// can be overidden by the "enable-ipv6" flag.
3665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableIPv6[]                   = "disable-ipv6";
3675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
3685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables IP Pooling within the networks stack (SPDY only). When a connection
3695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is needed for a domain which shares an IP with an existing connection,
3705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// attempt to use the existing connection.
3715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableIPPooling[]              = "disable-ip-pooling";
3725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
373c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable the behavior that the second click on a launcher item (the click when
374c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// the item is already active) minimizes the item.
375c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDisableMinimizeOnSecondLauncherItemClick[] =
376c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "disable-minimize-on-second-launcher-item-click";
377c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
3785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the menu on the NTP for accessing sessions from other devices.
3795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableNTPOtherSessionsMenu[]   = "disable-ntp-other-sessions-menu";
3805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
381558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch// Disables omnibox auto-completion when IME is active.
382558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdochconst char kDisableOmniboxAutoCompletionForIme[] =
383558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch    "disable-omnibox-auto-completion-for-ime";
384558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch
385d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Disable the origin chip.
386d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kDisableOriginChip[]             = "disable-origin-chip";
387d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
388ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Disable using a public suffix based domain matching for autofill of
389ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// passwords.
390ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kDisablePasswordAutofillPublicSuffixDomainMatching[] =
391ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch    "disable-password-autofill-public-suffix-domain-matching";
392ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
393a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disable the setting to prompt the user for their OS account password before
394a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// revealing plaintext passwords in the password manager.
395a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisablePasswordManagerReauthentication[] =
396a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    "disable-password-manager-reauthentication";
397a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
398d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Enables searching for people from the apps list search box.
399d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kDisablePeopleSearch[]           = "disable-people-search";
400d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
4015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable pop-up blocking.
4025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePopupBlocking[]          = "disable-popup-blocking";
4035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
404d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Disables the usage of Portable Native Client.
405d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kDisablePnacl[]                  = "disable-pnacl";
406d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
4075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable speculative TCP/IP preconnection.
4085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePreconnect[]             = "disable-preconnect";
4095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
410b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Disable prerendering based on local browsing history.
411b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kDisablePrerenderLocalPredictor[] =
412b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "disable-prerender-local-predictor";
413b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
414a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disable Privet local printing.
415a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisablePrivetLocalPrinting[]     = "disable-privet-local-printing";
416a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
4175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Normally when the user attempts to navigate to a page that was the result of
4185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// a post we prompt to make sure they want to. This switch may be used to
4195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// disable that check. This switch is used during automated testing.
4205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePromptOnRepost[]         = "disable-prompt-on-repost";
4215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
422868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Disables support for the QUIC protocol.
423868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kDisableQuic[]                   = "disable-quic";
424868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
425bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// Disables support for the HTTPS over QUIC protocol.  This is a temporary
426bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch// testing flag.  This only has an effect if QUIC protocol is enabled.
427bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdochconst char kDisableQuicHttps[]              = "disable-quic-https";
428bbcdd45c55eb7c4641ab97aef9889b0fc828e7d3Ben Murdoch
4295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prevents the URLs of BackgroundContents from being remembered and
4305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// re-launched when the browser restarts.
4315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRestoreBackgroundContents[] =
4325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-restore-background-contents";
4335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables restoring session state (cookies, session storage, etc.) when
4355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// restoring the browsing session.
4365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableRestoreSessionState[]    = "disable-restore-session-state";
4375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables throttling prints initiated by scripts.
4395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableScriptedPrintThrottling[] =
4405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-scripted-print-throttling";
4415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
442d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Disables the "search button in omnibox" experiment.
443d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kDisableSearchButtonInOmnibox[]  =
444d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)    "disable-search-button-in-omnibox";
445d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
446d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Disable SPDY/3.1. This is a temporary testing flag.
447d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kDisableSpdy31[]                 = "disable-spdy31";
448d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
449d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Disables support of sticky keys.
450d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kDisableStickyKeys[]             = "disable-sticky-keys";
451d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
4525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing browser data to a Google Account.
4535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSync[]                   = "disable-sync";
4545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of app settings.
4565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncAppSettings[]        = "disable-sync-app-settings";
4575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of apps.
4595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncApps[]               = "disable-sync-apps";
4605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of autofill.
4625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncAutofill[]           = "disable-sync-autofill";
4635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of autofill Profile.
4655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncAutofillProfile[]    = "disable-sync-autofill-profile";
4665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of bookmarks.
4685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncBookmarks[]          = "disable-sync-bookmarks";
4695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables syncing of dictionary.
4712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableSyncDictionary[]         = "disable-sync-dictionary";
4722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
4735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing extension settings.
4745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncExtensionSettings[]  = "disable-sync-extension-settings";
4755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of extensions.
4775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncExtensions[]         = "disable-sync-extensions";
4785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4797dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Disables syncing of favicons.
4807dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kDisableSyncFavicons[]           = "disable-sync-favicons";
4817dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
4825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing browser passwords.
4835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncPasswords[]          = "disable-sync-passwords";
4845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
4855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of preferences.
4865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncPreferences[]        = "disable-sync-preferences";
4875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
488c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disables syncing of priority preferences.
489c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDisableSyncPriorityPreferences[] =
490c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "disable-sync-priority-preferences";
491c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
4925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable syncing custom search engines.
4935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncSearchEngines[]      = "disable-sync-search-engines";
4945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
495c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disable synced notifications.
496c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kDisableSyncSyncedNotifications[] =
497c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "disable-sync-synced-notifications";
498c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
4992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables syncing browser sessions. Will override kEnableSyncTabs.
5002a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableSyncTabs[]               = "disable-sync-tabs";
5012a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
5025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing of themes.
5035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncThemes[]             = "disable-sync-themes";
5045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables syncing browser typed urls.
5065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableSyncTypedUrls[]          = "disable-sync-typed-urls";
5075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows disabling of translate from the command line to assist with automated
5095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser testing (e.g. Selenium/WebDriver). Normal browser users should
5105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// disable translate with the preference.
5115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableTranslate[]              = "disable-translate";
5125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables TLS Channel ID extension.
5145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableTLSChannelID[]           = "disable-tls-channel-id";
5155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
51658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables some security measures when accessing user media devices like
51758537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// webcams and microphones, especially on non-HTTPS pages.
51858537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableUserMediaSecurity[]      = "disable-user-media-security";
51958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
5200f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Do not expose WebGL extension WEBGL_debug_renderer_info to unprivileged code
5210f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// in the browser.
5220f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kDisableWebGLDebugRendererInfo[] =
5230f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)    "disable-webgl-debug-renderer-info";
5240f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
5255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the backend service for web resources.
5265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisableWebResources[]           = "disable-web-resources";
5275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some tests seem to require the application to close when the last
5295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser window is closed. Thus, we need a switch to force this behavior
5305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for ChromeOS Aura, disable "zero window mode".
5315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(pkotwicz): Investigate if this bug can be removed.
5325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (http://crbug.com/119175)
5332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kDisableZeroBrowsersOpenForTests[] =
5345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "disable-zero-browsers-open-for-tests";
5355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use a specific disk cache location, rather than one derived from the
5375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// UserDatadir.
5385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheDir[]                  = "disk-cache-dir";
5395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Forces the maximum disk space to be used by the disk cache, in bytes.
5415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDiskCacheSize[]                 = "disk-cache-size";
5425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsLogDetails[]                 = "dns-log-details";
5445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables prefetching of DNS information.
5465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDnsPrefetchDisable[]            = "dns-prefetch-disable";
5475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
548f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Requests that a running browser process dump its collected histograms to a
549f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// given file. The file is overwritten if it exists.
550f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kDumpBrowserHistograms[]         = "dump-browser-histograms";
551f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
552d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// If set, Flash fullscreen widgets are embedded within the browser window and
553d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// with the same UX as HTML5 fullscreen.
554d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)//
555d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// TODO(miu): This feature is a work in-progress.  It should not be enabled by
556d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// default until going through a formal UX review, and all comments/concerns on
557d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// the crbug are addressed.  http://crbug.com/290403
558d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kEmbedFlashFullscreen[] = "embed-flash-fullscreen";
559d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
5602a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables the <adview> tag in packaged apps.
5612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableAdview[]                  = "enable-adview";
5622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
563ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// If set, the app list will be enabled as if enabled from CWS.
564ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kEnableAppList[]                 = "enable-app-list";
565ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
5662a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables specifying a "src" attribute on <adview> elements
5672a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// (for testing purposes, to skip the whitelist).
5682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableAdviewSrcAttribute[]      = "enable-adview-src-attribute";
5692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
570eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Enables the <window-controls> tag in platform apps.
571eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kEnableAppWindowControls[]       = "enable-app-window-controls";
572eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
573f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Show apps windows after the first paint. Windows will be shown significantly
574f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// later for heavy apps loading resources synchronously but it will be
575f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// insignificant for apps that load most of their resources asynchronously.
576f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableAppsShowOnFirstPaint[]    = "enable-apps-show-on-first-paint";
577f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
5785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the experimental asynchronous DNS client.
5795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAsyncDns[]                = "enable-async-dns";
5805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the inclusion of non-standard ports when generating the Kerberos SPN
5825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// in response to a Negotiate challenge. See
5835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// HttpAuthHandlerNegotiate::CreateSPN for more background.
5845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAuthNegotiatePort[]       = "enable-auth-negotiate-port";
5855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
586eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Enable using a public suffix based domain matching for autofill of passwords.
587eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kEnablePasswordAutofillPublicSuffixDomainMatching[] =
588eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch    "enable-password-autofill-public-suffix-domain-matching";
589eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
5905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the pre- and auto-login features. When a user signs in to sync, the
5915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// browser's cookie jar is pre-filled with GAIA cookies. When the user visits a
5925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// GAIA login page, an info bar can help the user login.
5935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableAutologin[]               = "enable-autologin";
5945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the benchmarking extensions.
5965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableBenchmarking[]            = "enable-benchmarking";
5975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
5984e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables client hints, which adds hints about browser state to HTTP requests.
5994e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableClientHints[]             = "enable-client-hints";
600d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
601a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables the multi-level undo system for bookmarks.
602a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnableBookmarkUndo[]            = "enable-bookmark-undo";
603a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
6045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This applies only when the process type is "service". Enables the Cloud
6055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Print Proxy component within the service process.
6065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableCloudPrintProxy[]         = "enable-cloud-print-proxy";
6075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables fetching the user's contacts from Google and showing them in the
6095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Chrome OS apps list.
6105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableContacts[]                = "enable-contacts";
6115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If true devtools experimental settings are enabled.
6135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableDevToolsExperiments[]     = "enable-devtools-experiments";
6145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
61568043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)// Enable device discovery notifications.
61668043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)const char kEnableDeviceDiscoveryNotifications[] =
61768043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)    "enable-device-discovery-notifications";
61868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)
619d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Enables the DOM distiller.
620d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kEnableDomDistiller[]               = "enable-dom-distiller";
621d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
622f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enable Enhanced Bookmarks.
623f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableEnhancedBookmarks[] = "enable-enhanced-bookmarks";
6245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6258bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Enables experimentation with ephemeral apps, which are launched without
6268bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// installing in Chrome.
6278bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kEnableEphemeralApps[]           = "enable-ephemeral-apps";
6288bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
6295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables logging for extension activity.
6305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableExtensionActivityLogging[] =
6315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "enable-extension-activity-logging";
6325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableExtensionActivityLogTesting[] =
6342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "enable-extension-activity-log-testing";
6352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
636eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Enable the fast unload controller, which speeds up tab/window close by
637eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// running a tab's onunload js handler independently of the GUI -
638eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// crbug.com/142458 .
639eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kEnableFastUnload[]         = "enable-fast-unload";
640eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
6415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, cookies are not allowed on file://. They are needed for testing,
6425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for example page cycler and layout tests. See bug 1157243.
6435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableFileCookies[]             = "enable-file-cookies";
6445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables Google Now integration.
646c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableGoogleNowIntegration[]    = "enable-google-now-integration";
6475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
648558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch// Enable HTTP/2 draft 04. This is a temporary testing flag.
649558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdochconst char kEnableHttp2Draft04[]            = "enable-http2-draft-04";
650558790d6acca3451cf3a6b497803a5f07d0bec58Ben Murdoch
6514e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables the inline sign in flow on Chrome desktop.
6524e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableInlineSignin[]            = "enable-inline-signin";
6534e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
6545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables IPv6 support, even if probes suggest that it may not be fully
6555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// supported. Some probes may require internet connections, and this flag will
6565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// allow support independent of application testing. This flag overrides
6575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "disable-ipv6" which appears elswhere in this file.
6585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableIPv6[]                    = "enable-ipv6";
6595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables IP Pooling within the networks stack (SPDY only). When a connection
6615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// is needed for a domain which shares an IP with an existing connection,
6625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// attempt to use the existing connection.
6635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableIPPooling[]               = "enable-ip-pooling";
6645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
665c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Enable always using the local NTP for the first NTP load of a new window.
666c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp";
667c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
6682a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Make the values returned to window.performance.memory more granular and more
6692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// up to date. Without this flag, the memory information is still available, but
6702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// it is bucketized and updated less frequently.
6715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableMemoryInfo[]              = "enable-memory-info";
6725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables metrics recording and reporting in the browser startup sequence, as
6745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// if this was an official Chrome build where the user allowed metrics
6755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// reporting. This is used for testing only.
6765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableMetricsReportingForTesting[] =
6775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "enable-metrics-reporting-for-testing";
6785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs the Native Client inside the renderer process and enables GPU plugin
6805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (internally adds lEnableGpuPlugin to the command line).
6815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableNaCl[]                    = "enable-nacl";
6825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables the network-related benchmarking extensions.
684c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableNetBenchmarking[]         = "enable-net-benchmarking";
6855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6864e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables |NetworkTimeService| to convert local time to network time.
6874e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableNetworkTime[]             = "enable-network-time";
6885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
6895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
6905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// HTTP is still used for all requests.
6915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableNpnHttpOnly[]             = "enable-npn-http";
6925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
693868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Enables omnibox auto-completion when IME is active.  The auto-completion for
694868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// IME is shown in the same style as the normal(non-IME) auto-completion.
695868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kEnableOmniboxAutoCompletionForIme[] =
696868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)    "enable-omnibox-auto-completion-for-ime";
697868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
698d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Enables the origin chip.
699d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kEnableOriginChip[]              = "enable-origin-chip";
700d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
7015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables panels (always on-top docked pop-up windows).
7025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnablePanels[]                  = "enable-panels";
7035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7048bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// Enables the proactive populating of the disk cache with Web resources that
7058bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// are likely to be needed in future page fetches.
7068bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kEnablePrecache[]                = "enable-precache";
7078bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
708a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables showing unregistered printers in print preview
709a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnablePrintPreviewRegisterPromos[] =
710a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    "enable-print-preview-register-promos";
7111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
7125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables tracking of tasks in profiler for viewing via about:profiler.
7135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// To predominantly disable tracking (profiling), use the command line switch:
7145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --enable-profiling=0
7155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Some tracking will still take place at startup, but it will be turned off
7165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// during chrome_browser_main.
7175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableProfiling[]               = "enable-profiling";
7185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
719f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables query in the omnibox.
720f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableQueryExtraction[]         = "enable-query-extraction";
721f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
7222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables support for the QUIC protocol.  This is a temporary testing flag.
7232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableQuic[]                    = "enable-quic";
7242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
7257dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Enables support for the HTTPS over QUIC protocol.  This is a temporary
726ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// testing flag.  This only has an effect if QUIC protocol is enabled.
7277dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kEnableQuicHttps[]               = "enable-quic-https";
7287dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
7293240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdoch// Enables the Quickoffoce/Chrome document viewer rather than the editor.
7303240926e260ce088908e02ac07a6cf7b0c0cbf44Ben Murdochconst char kEnableQuickofficeViewing[]      = "enable-quickoffice-viewing";
731868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
732ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Enables save password prompt bubble.
733ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kEnableSavePasswordBubble[]      = "enable-save-password-bubble";
734ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
7355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Controls the support for SDCH filtering (dictionary based expansion of
7365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content). By default SDCH filtering is enabled. To disable SDCH filtering,
7375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// use "--enable-sdch=0" as command line argument. SDCH is currently only
7385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// supported server-side for searches on google.com.
7395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSdch[]                    = "enable-sdch";
7405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
741d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Controls which branch of the "search button in omnibox" experiment is
742d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// enabled.
743d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kEnableSearchButtonInOmniboxAlways[] =
744d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)        "enable-search-button-in-omnibox-always";
745d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kEnableSearchButtonInOmniboxForStr[] =
746d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)        "enable-search-button-in-omnibox-for-str";
747d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kEnableSearchButtonInOmniboxForStrOrIip[] =
748d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)        "enable-search-button-in-omnibox-for-str-or-iip";
749d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
750a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch// Enables support of sticky keys.
751a3f7b4e666c476898878fa745f637129375cd889Ben Murdochconst char kEnableStickyKeys[]              = "enable-sticky-keys";
752a3f7b4e666c476898878fa745f637129375cd889Ben Murdoch
7534e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enable SPDY/2. This is a temporary testing flag. See
7544e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// http://crbug.com/303957 .
7554e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableSpdy2[]                   = "enable-spdy2";
7564e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
757eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Enable SPDY/4 alpha 2. This is a temporary testing flag.
758eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kEnableSpdy4a2[]                 = "enable-spdy4a2";
759eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
7605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables auto correction for misspelled words.
761c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableSpellingAutoCorrect[]     = "enable-spelling-auto-correct";
7625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
763f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables participation in the field trial for user feedback to spelling
764f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// service.
765f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableSpellingFeedbackFieldTrial[] =
766f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)    "enable-spelling-feedback-field-trial";
767868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
7685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the stacked tabstrip.
7695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableStackedTabStrip[]         = "enable-stacked-tab-strip";
7705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7714e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables an experimental hosted app experience.
7724e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableStreamlinedHostedApps[]   = "enable-streamlined-hosted-apps";
7734e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
7745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables experimental suggestions pane in New Tab page.
7755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableSuggestionsTabPage[]      = "enable-suggestions-ntp";
7765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
7772a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables synced notifications.
7782a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableSyncSyncedNotifications[] =
7792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "enable-sync-synced-notifications";
7805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
781f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enables sync/API based session sync implementation (in favor of legacy).
782f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kEnableSyncSessionsV2[] = "enable-sync-sessions-v2";
783f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
784d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)// Enables syncing of the app list.
785d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kEnableSyncAppList[]             = "enable-sync-app-list";
786d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)
7874e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables synced articles.
788d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)const char kEnableSyncArticles[]            = "enable-sync-articles";
7894e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
7905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables context menu for selecting groups of tabs.
7915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableTabGroupsContextMenu[]    = "enable-tab-groups-context-menu";
7925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
793868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Enables fanciful thumbnail processing. Used with NTP for
794868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// instant-extended-api, where thumbnails are generally smaller.
795868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kEnableThumbnailRetargeting[]   = "enable-thumbnail-retargeting";
796c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
7973551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// Enables Translate experimental new UX which replaces the infobar.
7983551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)const char kEnableTranslateNewUX[]         = "enable-translate-new-ux";
7993551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
800c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Enables unrestricted SSL 3.0 fallback.
801c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// With this switch, SSL 3.0 fallback will be enabled for all sites.
802c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Without this switch, SSL 3.0 fallback will be disabled for a site
803c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// pinned to the Google pin list (indicating that it is a Google site).
804c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kEnableUnrestrictedSSL3Fallback[] =
805c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "enable-unrestricted-ssl3-fallback";
806c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
8072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables Alternate-Protocol when the port is user controlled (> 1024).
8082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableUserAlternateProtocolPorts[] =
8092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "enable-user-controlled-alternate-protocol-ports";
8102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Spawns threads to watch for excessive delays in specified message loops.
8125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// User should set breakpoints on Alarm() to examine problematic thread.
8135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
8145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Usage:   -enable-watchdog=[ui][io]
8155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
8165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Order of the listed sub-arguments does not matter.
8175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableWatchdog[]                = "enable-watchdog";
8185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses WebSocket over SPDY.
8205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableWebSocketOverSpdy[]       = "enable-websocket-over-spdy";
8215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Explicitly allows additional ports using a comma-separated list of port
8235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// numbers.
8245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExplicitlyAllowedPorts[]        = "explicitly-allowed-ports";
8255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Marks a renderer as extension process.
8275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionProcess[]              = "extension-process";
8285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
829f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Turns on extension install verification if it would not otherwise have been
830f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// turned on.
831f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kExtensionsInstallVerification[] = "extensions-install-verification";
832f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
833f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Specifies a comma-separated list of extension ids that should be forced to
834f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// be treated as not from the webstore when doing install verification.
835f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kExtensionsNotWebstore[] = "extensions-not-webstore";
836f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
8375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Frequency in seconds for Extensions auto-update.
8385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kExtensionsUpdateFrequency[]     = "extensions-update-frequency";
8395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
840eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Additional query params to insert in the search and instant URLs.  Useful for
841eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// testing.
842eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kExtraSearchQueryParams[]        = "extra-search-query-params";
843eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
8442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Fakes the channel of the browser for purposes of Variations filtering. This
8452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// is to be used for testing only. Possible values are "stable", "beta", "dev"
8462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// and "canary". Note that this only applies if the browser's reported channel
8472a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// is UNKNOWN.
848c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kFakeVariationsChannel[]         = "fake-variations-channel";
8492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
850eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// If this flag is present then this command line is being delegated to an
851eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// already running chrome process via the fast path, ie: before chrome.dll is
852eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// loaded. It is useful to tell the difference for tracking purposes.
853eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kFastStart[]            = "fast-start";
854eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
8555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These two flags are added around the switches about:flags adds to the
8565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// command line. This is useful to see which switches were added by about:flags
8575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// on about:version. They don't have any effect.
8585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFlagSwitchesBegin[]             = "flag-switches-begin";
8595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFlagSwitchesEnd[]               = "flag-switches-end";
8605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Alternative feedback server to use when submitting user feedback
8625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFeedbackServer[]                = "feedback-server";
8635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The file descriptor limit is set to the value of this switch, subject to the
8655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// OS hard limits. Useful for testing that file descriptor exhaustion is
8665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// handled gracefully.
8675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFileDescriptorLimit[]           = "file-descriptor-limit";
8685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8692a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Forces application mode. This hides certain system UI elements and forces
8702a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// the app to be installed if it hasn't been already.
8712a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kForceAppMode[]                  = "force-app-mode";
8722a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
8735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Displays the First Run experience when the browser is started, regardless of
874ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// whether or not it's actually the First Run (this overrides kNoFirstRun and
875ba5b9a6411cb1792fd21f0a078d7a25cd1ceec16Ben Murdoch// kCancelFirstRun).
8762a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kForceFirstRun[]                 = "force-first-run";
8775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8784e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Forces additional Chrome Variation Ids that will be sent in
879a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// X-Client-Data header, specified as a 64-bit encoded list of numeric
8804e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// experiment ids.
8814e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kForceVariationIds[]             = "force-variation-ids";
8824e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
8832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Tries to load cloud policy for every signed in user, regardless of whether
8842a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// they are a dasher user or not. Used to allow any GAIA account to be used for
8852a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// testing the cloud policy framework.
8862a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kForceLoadCloudPolicy[]          = "force-load-cloud-policy";
8875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
888eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Specifies an alternate URL to use for speaking to Google. Useful for testing.
889eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kGoogleBaseURL[]                 = "google-base-url";
890c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
8911e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Enables using GAIA information to populate profile name and icon.
8921e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kGoogleProfileInfo[]             = "google-profile-info";
8931e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
8945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies an alternate URL to use for retrieving the search domain for
8955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Google. Useful for testing.
896c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kGoogleSearchDomainCheckURL[]    = "google-search-domain-check-url";
8975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
8985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a custom name for the GSSAPI library to load.
8995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kGSSAPILibraryName[]             = "gssapi-library-name";
9005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These flags show the man page on Linux. They are equivalent to each
9025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// other.
9035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHelp[]                          = "help";
9045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHelpShort[]                     = "h";
9055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Makes Windows happy by allowing it to show "Enable access to this program"
9075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
9085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// shows an error box because the only way to hide Chrome is by uninstalling
9095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// it.
9105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHideIcons[]                     = "hide-icons";
9115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9122a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables full history sync.
913c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kHistoryDisableFullHistorySync[] = "disable-full-history-sync";
9142a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9152a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables grouping websites by domain and filtering them by period.
916c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kHistoryEnableGroupByDomain[]    = "enable-grouped-history";
9172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies which page will be displayed in newly-opened tabs. We need this
9195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// for testing purposes so that the UI tests don't depend on what comes up for
9205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// http://google.com.
9215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHomePage[]                      = "homepage";
9225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Comma-separated list of rules that control how hostnames are mapped.
9245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
9255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For example:
9265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
9275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    "MAP *.google.com proxy" --> Forces all google.com subdomains to be
9285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                                 resolved to "proxy".
9295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
9305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                               Will also force the port of the resulting
9315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                               socket address to be 77.
9325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//    "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
9335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                                            except for "www.google.com".
9345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
9355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These mappings apply to the endpoint host in a net::URLRequest (the TCP
9365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// connect and host resolver in a direct connection, and the CONNECT in an http
9375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// proxy connection, and the endpoint host in a SOCKS proxy connection).
9385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostRules[]                     = "host-rules";
9395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The maximum number of concurrent host resolve requests (i.e. DNS) to allow
9415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (not counting backup attempts which would also consume threads).
9425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// --host-resolver-retry-attempts must be set to zero for this to be exact.
9435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostResolverParallelism[]       = "host-resolver-parallelism";
9445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The maximum number of retry attempts to resolve the host. Set this to zero
9465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to disable host resolver retry attempts.
9475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kHostResolverRetryAttempts[]     = "host-resolver-retry-attempts";
9485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9492a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Causes net::URLFetchers to ignore requests for SSL client certificates,
9502a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// causing them to attempt an unauthenticated SSL/TLS session. This is intended
951eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
952eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// kSyncServiceURL, etc)
953c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kIgnoreUrlFetcherCertRequests[]  =
9542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "ignore-urlfetcher-cert-requests";
9552a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes the browser to launch directly in incognito mode.
9575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kIncognito[]                     = "incognito";
9585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Causes Chrome to attempt to get metadata from the webstore for the
9605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// app/extension ID given, and then prompt the user to download and install it.
961c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kInstallFromWebstore[]           = "install-from-webstore";
9625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Marks a renderer as an Instant process.
9642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kInstantProcess[]                = "instant-process";
9652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
966a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Specifies the testcase used by the IPC fuzzer.
967a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kIpcFuzzerTestcase[]             = "ipc-fuzzer-testcase";
968a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
9695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Used for testing - keeps browser alive after last browser window closes.
9705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKeepAliveForTest[]              = "keep-alive-for-test";
9715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable Kiosk mode.
9735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKioskMode[]                     = "kiosk";
9745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Print automatically in kiosk mode. |kKioskMode| must be set as well.
9765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See http://crbug.com/31395.
9775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKioskModePrinting[]             = "kiosk-printing";
9785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9792a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Causes Chrome to attempt to get metadata from the webstore for the
9802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// given item, and then prompt the user to download and install it.
9812a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kLimitedInstallFromWebstore[]    = "limited-install-from-webstore";
9822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
9835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Comma-separated list of directories with component extensions to load.
9845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadComponentExtension[]        = "load-component-extension";
9855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
9865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Loads an extension from the specified directory.
9875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kLoadExtension[]                 = "load-extension";
9885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
98990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Makes Chrome default browser
99090dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kMakeDefaultBrowser[]            = "make-default-browser";
99190dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
992f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Sets the managed user ID for any loaded or newly created profile to the
993f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// given value. Pass an empty string to mark the profile as non-supervised.
994f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Used for testing.
995f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kManagedUserId[]                 = "managed-user-id";
996f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
99790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Used to authenticate requests to the Sync service for managed users. Setting
99890dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// this switch also causes Sync to be set up for a managed user.
99990dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kManagedUserSyncToken[]          = "managed-user-sync-token";
10005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Forces the maximum disk space to be used by the media cache, in bytes.
10025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMediaCacheSize[]                = "media-cache-size";
10035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables dynamic loading of the Memory Profiler DLL, which will trace all
10055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// memory allocations during the run.
10065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMemoryProfiling[]               = "memory-profile";
10075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables histograming of tasks served by MessageLoop. See
10095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// about:histograms/Loop for results, which show frequency of messages on each
10105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// thread, including APC count, object signalling count, etc.
10115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMessageLoopHistogrammer[]       = "message-loop-histogrammer";
10125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the recording of metrics reports but disables reporting. In contrast
10145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to kDisableMetrics, this executes all the code that a normal client would
10155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// use for reporting, except the report is dropped rather than sent to the
10165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// server. This is useful for finding issues in the metrics code during UI and
10175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// performance tests.
10185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMetricsRecordingOnly[]          = "metrics-recording-only";
10195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables multiprofile Chrome.
10215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMultiProfiles[]                 = "multi-profiles";
10225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// List of native messaging hosts outside of the default location. Used for
10242a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// tests. The value must be comma-separate lists of key-value pairs separated
10252a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json".
1026c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kNativeMessagingHosts[]          = "native-messaging-hosts";
10272a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
10285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets the base logging level for the net log. Log 0 logs the most data.
10295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Intended primarily for use with --log-net-log.
10305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNetLogLevel[]                   = "net-log-level";
10315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1032c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Use new profile management system, including profile sign-out and new
1033c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// choosers.
10348bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kNewProfileManagement[]          = "new-profile-management";
1035c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
10365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the default browser check. Useful for UI/browser tests where we
10375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// want to avoid having the default browser info-bar displayed.
10385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoDefaultBrowserCheck[]         = "no-default-browser-check";
10395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// By default, an https page can load images, fonts or frames from an http
10415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// page. This switch overrides this to block this lesser mixed-content problem.
10425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoDisplayingInsecureContent[]   = "no-displaying-insecure-content";
10435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't record/playback events when using record & playback.
10455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoEvents[]                      = "no-events";
10465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables all experiments set on about:flags. Does not disable about:flags
10485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// itself. Useful if an experiment makes chrome crash at startup: One can start
10495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// chrome with --no-experiments, disable the problematic lab at about:flags and
10505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// then restart chrome without this switch again.
10515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoExperiments[]                 = "no-experiments";
10525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10532a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Skip First Run tasks, whether or not it's actually the First Run. Overridden
10548bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
10558bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// prevent first run from occuring the next time chrome is launched without this
10568bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// flag (see kCancelFirstRun for that).
10575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoFirstRun[]                    = "no-first-run";
10585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Support a separate switch that enables the v8 playback extension.
10605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The extension causes javascript calls to Date.now() and Math.random()
10615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to return consistent values, such that subsequent loads of the same
10625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// page will result in consistent js-generated data and XHR requests.
10635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Pages may still be able to generate inconsistent data from plugins.
10645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoJsRandomness[]                = "no-js-randomness";
10655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Whether or not the browser should warn if the profile is on a network share.
10675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This flag is only relevant for Windows currently.
10685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoNetworkProfileWarning[]       = "no-network-profile-warning";
10695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't send hyperlink auditing pings
10715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoPings[]                       = "no-pings";
10725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Don't use a proxy server, always make direct connections. Overrides any
10745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// other proxy server flags that are passed.
10755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoProxyServer[]                 = "no-proxy-server";
10765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables the service process from adding itself as an autorun process. This
10785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// does not delete existing autorun registrations, it just prevents the service
10795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// from registering a new one.
10805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoServiceAutorun[]              = "no-service-autorun";
10815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Does not automatically open a browser window on startup (used when
10835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// launching Chrome for the purpose of hosting background apps).
10845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNoStartupWindow[]               = "no-startup-window";
10855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1086a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// Disables checking whether we received an acknowledgment when registering
1087a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// a supervised user. Also disables the timeout during registration that waits
1088a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// for the ack. Useful when debugging against a server that does not
1089a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)// support notifications.
1090a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)const char kNoManagedUserAcknowledgmentCheck[]  =
1091a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)    "no-managed-user-acknowledgment-check";
1092a36e5920737c6adbddd3e43b760e5de8431db6e0Torne (Richard Coles)
10935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the maximum number of threads to use for running the Proxy
10945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Autoconfig (PAC) script.
10955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kNumPacThreads[]                 = "num-pac-threads";
10965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
10975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// When the option to block third-party cookies is enabled, only block
10985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// third-party cookies from being set.
10995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOnlyBlockSettingThirdPartyCookies[] =
11005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "only-block-setting-third-party-cookies";
11015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Launches URL in new browser window.
11035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOpenInNewWindow[]               = "new-window";
11045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Simulates an organic Chrome install.
11065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kOrganicInstall[]                = "organic";
11075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1108868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Force use of QUIC for requests to the specified origin.
1109868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kOriginToForceQuicOn[]           = "origin-to-force-quic-on";
11102a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1111a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// The time that a new chrome process which is delegating to an already running
1112a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// chrome process started. (See ProcessSingleton for more details.)
1113a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)const char kOriginalProcessStartTime[]      = "original-process-start-time";
1114a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
1115f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Enable the out of process PDF plugin.
1116f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kOutOfProcessPdf[] = "out-of-process-pdf";
1117f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
11185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Packages an extension to a .crx installable file from a given directory.
11195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPackExtension[]                 = "pack-extension";
11205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Optional PEM private key to use in signing packaged .crx.
11225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPackExtensionKey[]              = "pack-extension-key";
11235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the path to the user data folder for the parent profile.
11255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kParentProfile[]                 = "parent-profile";
11265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Launches PerformanceMonitor at startup, which will gather statistics about
11285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Chrome's CPU and memory usage, page load times, startup times, and network
11295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// usage, and will also store information about events which may be of interest,
11305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// such as extension-related occurrences and crashes. Optionally, this may be
11315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// run with an integer value representing the interval between the timed
11325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// metric gatherings, measured in seconds (if invalid or not provided, the
11335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// default interval is used).
1134c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPerformanceMonitorGathering[]   = "performance-monitor-gathering";
11355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Read previously recorded data from the cache. Only cached data is read.
11375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See kRecordMode.
11385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPlaybackMode[]                  = "playback-mode";
11395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the path to the location that PNaCl is installed.
11415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPnaclDir[]                      = "pnacl-dir";
11425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Forces the PPAPI version of Flash (if it's being used) to run in the
11445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// renderer process rather than in a separate plugin process.
11455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiFlashInProcess[]           = "ppapi-flash-in-process";
11465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use the PPAPI (Pepper) Flash found at the given path.
11485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiFlashPath[]                = "ppapi-flash-path";
11495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Report the given version for the PPAPI (Pepper) Flash. The version should be
11515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
11525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// defaults to "10.2.999.999".
11535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPpapiFlashVersion[]             = "ppapi-flash-version";
11545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Triggers prerendering of pages from suggestions in the omnibox. Only has an
11565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// effect when Instant is either disabled or restricted to search, and when
11575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// prerender is enabled.
11585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderFromOmnibox[]          = "prerender-from-omnibox";
11595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are the values the kPrerenderFromOmnibox switch may have, as in
11605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "--prerender-from-omnibox=auto". auto: Allow field trial selection.
11615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
11625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   disabled: No prerendering.
11635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
11645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   enabled: Guaranteed prerendering.
11655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
11665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Controls speculative prerendering of pages, and content prefetching. Both
11675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// are dispatched from <link rel=prefetch href=...> elements.
11685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderMode[]                 = "prerender";
11695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// These are the values the kPrerenderMode switch may have, as in
11705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "--prerender=auto".
1171d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)//   auto: Allow field trial selection for prerender.
11725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderModeSwitchValueAuto[]  = "auto";
1173d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)//   disabled: No prerendering.
11745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderModeSwitchValueDisabled[] = "disabled";
1175d57369da7c6519fef57db42085f7b42d4c8845c1Torne (Richard Coles)//   enabled: Prerendering.
11765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPrerenderModeSwitchValueEnabled[] = "enabled";
11775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
117868043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#if defined(OS_WIN)
11795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enable conversion from vector to raster for any page.
1180c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kPrintRaster[]                   = "print-raster";
118168043e1e95eeb07d5cae7aca370b26518b0867d6Torne (Richard Coles)#endif
11825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11833551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// Use IPv6 only for privet HTTP.
11843551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)const char kPrivetIPv6Only[]                   = "privet-ipv6-only";
11853551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
11865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Outputs the product version information and quit. Used as an internal api to
11875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// detect the installed version of Chrome on Linux.
11885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProductVersion[]                = "product-version";
11895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Selects directory of profile to associate with the first browser launched.
11915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfileDirectory[]              = "profile-directory";
11925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Starts the sampling based profiler for the browser process at startup. This
11945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// will only work if chrome has been built with the gyp variable profiling=1.
11955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The output will go to the value of kProfilingFile.
11965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilingAtStart[]              = "profiling-at-start";
11975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
11985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a location for profiling output. This will only work if chrome has
11995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// been built with the gyp variable profiling=1.
12005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
12015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   {pid} if present will be replaced by the pid of the process.
12025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//   {count} if present will be incremented each time a profile is generated
12035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//           for this process.
12045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The default is chrome-profile-{pid}.
12055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilingFile[]                 = "profiling-file";
12065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a path for the output of task-level profiling which can be loaded
12085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and viewed in about:profiler.
12095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilingOutputFile[]           = "profiling-output-file";
12105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Controls whether profile data is periodically flushed to a file. Normally
12125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// the data gets written on exit but cases exist where chrome doesn't exit
12135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// cleanly (especially when using single-process). A time in seconds can be
12145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified.
12155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProfilingFlush[]                = "profiling-flush";
12165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a custom URL for fetching NTP promo data.
12185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPromoServerURL[]                = "promo-server-url";
12195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Forces proxy auto-detection.
12215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxyAutoDetect[]               = "proxy-auto-detect";
12225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a list of hosts for whom we bypass proxy settings and use direct
12245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
12255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified. This is a comma-separated list of bypass rules. See:
12265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "net/proxy/proxy_bypass_rules.h" for the format of these rules.
12275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxyBypassList[]               = "proxy-bypass-list";
12285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses the pac script at the given URL
12305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxyPacUrl[]                   = "proxy-pac-url";
12315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses a specified proxy server, overrides system settings. This switch only
12335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// affects HTTP and HTTPS requests.
12345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kProxyServer[]                   = "proxy-server";
12355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Adds a "Purge memory" button to the Task Manager, which tries to dump as
12375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// much memory as possible. This is mostly useful for testing how well the
12385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// MemoryPurger functionality works.
12395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
12405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// NOTE: This is only implemented for Views.
12415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPurgeMemoryButton[]             = "purge-memory-button";
12425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1243f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)// Specifies the maximum length for a QUIC packet.
1244f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)const char kQuicMaxPacketLength[]           = "quic-max-packet-length";
1245f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)
12465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Chrome supports a playback and record mode.  Record mode saves *everything*
12475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to the cache.  Playback mode reads data exclusively from the cache.  This
12485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// allows us to record a session into the cache and then replay it at will.
12495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See also kPlaybackMode.
12505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRecordMode[]                    = "record-mode";
12515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses custom front-end URL for the remote debugging.
12535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRemoteDebuggingFrontend[]       = "remote-debugging-frontend";
12545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables print preview in the renderer. This flag is generated internally by
12565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Chrome and does nothing when directly passed to the browser.
12575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRendererPrintPreview[]          = "renderer-print-preview";
12585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12598bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// If set, the app list will forget it has been installed on startup. Note this
12608bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// doesn't prevent the app list from running, it just makes Chrome think the app
12618bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)// list hasn't been enabled (as in kEnableAppList) yet.
12628bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)const char kResetAppListInstallState[]      = "reset-app-list-install-state";
12638bcbed890bc3ce4d7a057a8f32cab53fa534672eTorne (Richard Coles)
12645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Forces a reset of the one-time-randomized FieldTrials on this client, also
12655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// known as the Chrome Variations state.
12665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kResetVariationState[]           = "reset-variation-state";
12675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Indicates the last session should be restored on startup. This overrides the
12695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// preferences value and is primarily intended for testing. The value of this
12705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// switch is the number of tabs to wait until loaded before 'load completed' is
12715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sent to the ui_test.
12725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRestoreLastSession[]            = "restore-last-session";
12735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disable saving pages as HTML-only, disable saving pages as HTML Complete
12755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (with a directory of sub-resources). Enable only saving pages as MHTML.
12765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See http://crbug.com/120416 for how to remove this switch.
12775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSavePageAsMHTML[]               = "save-page-as-mhtml";
12785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// URL prefix used by safebrowsing to fetch hash, download data and report
12805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// malware.
12815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSbURLPrefix[]                   = "safebrowsing-url-prefix";
12825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If present, safebrowsing only performs update when
12845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
12855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This is used for testing only.
12865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
12875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// TODO(lzheng): Remove this flag once the feature works fine
12895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// (http://crbug.com/74848).
12905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
12915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables safebrowsing feature that checks download url and downloads
12925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// content's hash to make sure the content are not malicious.
12935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSbDisableDownloadProtection[] =
12945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "safebrowsing-disable-download-protection";
12955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
12962a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables safebrowsing feature that checks for blacklisted extensions.
12972a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSbDisableExtensionBlacklist[] =
12982a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)    "safebrowsing-disable-extension-blacklist";
12992a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1300c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Disables safebrowsing feature that provides a side-effect free whitelist.
1301c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSbDisableSideEffectFreeWhitelist[] =
1302c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)    "safebrowsing-disable-side-effect-free-whitelist";
1303c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
13047d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// URL to send safebrowsing download feedback reports to.
13057d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kSbDownloadFeedbackURL[] = "safebrowsing-download-feedback-url";
13067d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
13072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Causes the process to run as a service process.
13082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kServiceProcess[]                = "service";
13092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets a token in the token service, for testing.
13115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSetToken[]                      = "set-token";
13125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// If true the app list will be shown.
13145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowAppList[]                   = "show-app-list";
13155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13164e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// If true the app list will show the start page webui.
13174e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kShowAppListStartPage[]          = "show-app-list-start-page";
13184e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
13195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// See kHideIcons.
13205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kShowIcons[]                     = "show-icons";
13215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13222a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Marks a renderer as the signin process.
13232a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSigninProcess[]                 = "signin-process";
13245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13257dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Does not show an infobar when an extension attaches to a page using
13267dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// chrome.debugger page. Required to attach to extension background pages.
13277dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kSilentDebuggerExtensionAPI[]    = "silent-debugger-extension-api";
13287dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
13295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Changes the DCHECKS to dump memory and continue instead of displaying error
13305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// dialog. This is valid only in Release mode when --enable-dcheck is
13315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// specified.
13325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSilentDumpOnDCHECK[]            = "silent-dump-on-dcheck";
13335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Causes Chrome to launch without opening any windows by default. Useful if
13352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// one wishes to use Chrome as an ash server.
13362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSilentLaunch[]                  = "silent-launch";
13372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Simulates an update being available.
13395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSimulateUpgrade[]               = "simulate-upgrade";
13405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13412a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Simulates a critical update being available.
13422a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSimulateCriticalUpdate[]        = "simulate-critical-update";
13432a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13442a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Simulates that current version is outdated.
13452a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSimulateOutdated[]               = "simulate-outdated";
13462a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
13475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Replaces the buffered data source for <audio> and <video> with a simplified
13485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// resource loader that downloads the entire resource into memory.
13495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13501e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Second origin that can be used for the spdy proxy.
13511e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)const char kSpdyProxyAuthFallback[]         = "spdy-proxy-auth-fallback";
13521e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
13535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Origin for which SpdyProxy authentication is supported.
13542a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kSpdyProxyAuthOrigin[]           = "spdy-proxy-auth-origin";
13555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13564e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Authentication string for the data reduction proxy.
13574e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kSpdyProxyAuthValue[]            = "spdy-proxy-auth-value";
13584e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
13595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Speculative resource prefetching.
13605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeculativeResourcePrefetching[] =
13615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "speculative-resource-prefetching";
13625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Speculative resource prefetching is disabled.
13645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
13655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Speculative resource prefetching will only learn about resources that need to
13675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be prefetched but will not prefetch them.
13685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeculativeResourcePrefetchingLearning[] = "learning";
13695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Speculative resource prefetching is enabled.
13715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
13725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1373a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// Specifies the URL where spelling service feedback data will be sent instead
1374a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// of the default URL. This switch is for temporary testing only.
1375a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1376a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)// August 2013.
1377a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url";
1378a93a17c8d99d686bd4a1511e5504e5e6cc9fcadfTorne (Richard Coles)
1379868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Specifies the number of seconds between sending batches of feedback to
1380868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// spelling service. The default is 30 minutes. The mininum is 5 seconds. This
1381868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// switch is for temporary testing only.
1382868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1383868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// August 2013.
1384868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kSpellingServiceFeedbackIntervalSeconds[] =
1385868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)    "spelling-service-feedback-interval-seconds";
1386868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
13875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
13885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "tls1.2").
13895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMax[]                 = "ssl-version-max";
13905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
13925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// "tls1.2").
13935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSSLVersionMin[]                 = "ssl-version-min";
13945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Starts the browser maximized, regardless of any previous settings.
13965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kStartMaximized[]                = "start-maximized";
13975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
13985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Controls the width of time-of-day filters on the 'suggested' ntp page, in
13995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// minutes.
14005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSuggestionNtpFilterWidth[]      = "suggestion-ntp-filter-width";
14015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables a normal distribution dropoff to the relevancy of visits with respect
14035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// to the time of day.
14045821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSuggestionNtpGaussianFilter[]   = "suggestion-ntp-gaussian-filter";
14055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables a linear dropoff to the relevancy of visits with respect to the time
14075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// of day.
14085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSuggestionNtpLinearFilter[]     = "suggestion-ntp-linear-filter";
14095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Allows insecure XMPP connections for sync (for testing).
14115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncAllowInsecureXmppConnection[] =
14125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync-allow-insecure-xmpp-connection";
14135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Invalidates any login info passed into sync's XMPP connection.
14155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncInvalidateXmppLogin[]       = "sync-invalidate-xmpp-login";
14165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// This flag causes sync to retry very quickly (see polling_constants.h) the
14185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// when it encounters an error, as the first step towards exponential backoff.
14195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncShortInitialRetryOverride[] =
14205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)    "sync-short-initial-retry-override";
14215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the default host:port used for sync notifications.
14235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncNotificationHostPort[]      = "sync-notification-host-port";
14245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Overrides the default server used for profile sync.
14265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncServiceURL[]                = "sync-url";
14275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Makes the sync code to throw an unrecoverable error after initialization.
14295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Useful for testing unrecoverable error scenarios.
14305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncThrowUnrecoverableError[]   = "sync-throw-unrecoverable-error";
14315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tries to connect to XMPP using SSLTCP first (for testing).
14345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kSyncTrySsltcpFirstForXmpp[]     = "sync-try-ssltcp-first-for-xmpp";
14355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables deferring sync backend initialization until user initiated changes
14372a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// occur.
1438c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kSyncEnableDeferredStartup[]     = "sync-enable-deferred-startup";
14392a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1440ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Enables feature to avoid unnecessary GetUpdate requests.
1441ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kSyncEnableGetUpdateAvoidance[]   =
1442ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch    "sync-enable-get-update-avoidance";
1443ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
1444b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Enables directory support for sync filesystem
1445b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)const char kSyncfsEnableDirectoryOperation[] =
1446b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)    "enable-syncfs-directory-operation";
1447b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)
14485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables tab dragging to create a real browser.
14495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTabBrowserDragging[]            = "enable-tab-browser-dragging";
14505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Passes the name of the current running automated test to Chrome.
14525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestName[]                      = "test-name";
14535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Type of the current test harness ("browser" or "ui").
14555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestType[]                      = "test-type";
14565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Tells the app to listen for and broadcast testing-related messages on IPC
14585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// channel with the given ID.
14595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTestingChannelID[]              = "testing-channel";
14605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14612a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables tracking the amount of non-idle time spent viewing pages.
14622a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kTrackActiveVisitTime[]          = "track-active-visit-time";
14632a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1464c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Overrides the default server used for Google Translate.
1465c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kTranslateScriptURL[]            = "translate-script-url";
1466c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
14675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables same-origin check on HTTP resources pushed via a SPDY proxy.
14685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// The value is the host:port of the trusted proxy.
1469c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kTrustedSpdyProxy[]              = "trusted-spdy-proxy";
14705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Experimental. Shows a dialog asking the user to try chrome. This flag is to
14725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// be used only by the upgrade process.
14735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kTryChromeAgain[]                = "try-chrome-again";
14745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
147590dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)// Uninstalls an extension with the specified extension id.
147690dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)const char kUninstallExtension[]            = "uninstall-extension";
147790dce4d38c5ff5333bea97d859d4e484e27edf0cTorne (Richard Coles)
14785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Runs un-installation steps that were done by chrome first-run.
14795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUninstall[]                     = "uninstall";
14805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1481c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Overrides per-origin quota settings to unlimited storage for any
1482c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// apps/origins.  This should be used only for testing purpose.
1483c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kUnlimitedStorage[]              = "unlimited-storage";
1484c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
14855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses Spdy for the transport protocol instead of HTTP. This is a temporary
14865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// testing flag.
14875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseSpdy[]                       = "use-spdy";
14885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14892a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Disables use of the spelling web service and only provides suggestions.
14902a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// This will only work if asynchronous spell checking is not disabled.
1491c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kUseSpellingSuggestions[]        = "use-spelling-suggestions";
14925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Sets the maximum concurrent streams over a SPDY session.
14945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kMaxSpdyConcurrentStreams[]      = "max-spdy-concurrent-streams";
14955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
14965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies the user data directory, which is where the browser will look for
14975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// all of its state.
14985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUserDataDir[]                   = "user-data-dir";
14995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1500c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)// Examines a .crx for validity and prints the result.
1501c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kValidateCrx[]                   = "validate-crx";
1502c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)
15032a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Uses experimental simple cache backend if possible.
15042a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kUseSimpleCacheBackend[]         = "use-simple-cache-backend";
15055821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a custom URL for the server which reports variation data to the
15072a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// client. Specifying this switch enables the Variations service on
15082a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// unofficial builds. See variations_service.cc.
15092a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kVariationsServerURL[]           = "variations-server-url";
15105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Prints version information and quits.
15125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kVersion[]                       = "version";
15135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Adds the given extension ID to all the permission whitelists.
15155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWhitelistedExtensionID[]        = "whitelisted-extension-id";
15165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specify the initial window position: --window-position=x,y
15185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWindowPosition[]                = "window-position";
15195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specify the initial window size: --window-size=w,h
15215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWindowSize[]                    = "window-size";
15225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
15245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// use Chromium's network stack to fetch, and V8 to evaluate.
15255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWinHttpProxyResolver[]          = "winhttp-proxy-resolver";
15265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(ENABLE_PLUGIN_INSTALLATION)
15285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies a custom URL for fetching plug-ins metadata. Used for testing.
15295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPluginsMetadataServerURL[]      = "plugins-metadata-server-url";
15305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
15315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15322a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(OS_ANDROID) || defined(OS_IOS)
15332a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enable SPDY proxy.
15342a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableSpdyProxyAuth[]           = "enable-spdy-proxy-auth";
15352a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif  // defined(OS_ANDROID) || defined(OS_IOS)
15362a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
15375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_ANDROID)
1538d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)// Makes the "Add to Homescreen" shortcut invisible.
1539d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)const char kDisableAddToHomescreen[]         = "disable-add-to-homescreen";
1540d0247b1b59f9c528cb6df88b4f2b9afaf80d181eTorne (Richard Coles)
154158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Disables the new NTP.
154258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kDisableNewNTP[]                  = "disable-new-ntp";
154358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
1544a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Disables zero suggest experiment on Dev channel.
1545a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kDisableZeroSuggest[] = "disable-zero-suggest";
1546a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
15473551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)// Enable the accessibility tab switcher.
15483551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)const char kEnableAccessibilityTabSwitcher[] =
15493551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)    "enable-accessibility-tab-switcher";
15503551c9c881056c480085172ff9840cab31610854Torne (Richard Coles)
155158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Makes the "Add to Homescreen" shortcut visible.
155258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kEnableAddToHomescreen[]         = "enable-add-to-homescreen";
155358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
1554ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch// Enables the new NTP.
1555ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdochconst char kEnableNewNTP[]                  = "enable-new-ntp";
1556ca12bfac764ba476d6cd062bf1dde12cc64c3f40Ben Murdoch
15572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Pops the translate infobar if possible.
15582a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kEnableTranslate[]               = "enable-translate";
15592a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
15604e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)// Enables support for playing videos on Chromecast devices.
15614e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)const char kEnableCast[]                    = "enable-cast";
15624e180b6a0b4720a9b8e9e959a882386f690f08ffTorne (Richard Coles)
1563a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables zero suggest functionality on Dev channel, showing contextual
1564a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// suggestions (EtherSuggest) for http pages and google.com search queries.
1565a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnableZeroSuggestEtherSerp[] =
1566a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    "enable-zero-suggest-ether-serp";
1567a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
1568a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables zero suggest functionality on Dev channel, showing contextual
1569a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// suggestions (EtherSuggest) for http pages.
1570a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnableZeroSuggestEtherNoSerp[] =
1571a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    "enable-zero-suggest-ether-noserp";
1572a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
1573a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// Enables zero suggest functionality on Dev channel, showing most visited
1574a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)// sites as default suggestions.
1575a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)const char kEnableZeroSuggestMostVisited[] =
1576a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    "enable-zero-suggest-most-visited";
1577a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)
15785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
15795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
15802a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#if defined(USE_ASH)
1581c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kOpenAsh[]                       = "open-ash";
15822a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)#endif
15832a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
1584f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)#if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
15855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Specifies which password store to use (detect, default, gnome, kwallet).
15865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kPasswordStore[]                 = "password-store";
15875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
15885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
158958537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
159058537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// Triggers migration of user data directory to another directory
159158537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// specified as a parameter. The migration is done under singleton lock,
159258537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// and sanity checks are made to avoid corrupting the profile.
159358537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)// The browser exits after migration is complete.
159458537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)const char kMigrateDataDirForSxS[]          = "migrate-data-dir-for-sxs";
159558537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)#endif  // defined(OS_LINUX) && !defined(OS_CHROMEOS)
159658537e28ecd584eab876aee8be7156509866d23aTorne (Richard Coles)
15975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_MACOSX)
15987dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// Forcibly disables Lion-style on newer OSes, to allow developers to test the
15997dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch// older, SnowLeopard-style fullscreen.
16007dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdochconst char kDisableSystemFullscreenForTesting[] =
16017dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch    "disable-system-fullscreen-for-testing";
16027dbb3d5cf0c15f500944d211057644d6a2f37371Ben Murdoch
1603868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Enable to allow creation and launch of app shims for platform apps.
1604868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kEnableAppShims[]                = "enable-app-shims";
1605868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
16065821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables the tabs expose feature ( http://crbug.com/50307 ).
16075821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnableExposeForTabs[]           = "enable-expose-for-tabs";
16085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16097d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)// Enables a simplified fullscreen UI on Mac.
16107d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)const char kEnableSimplifiedFullscreen[]    = "enable-simplified-fullscreen";
16117d4cd473f85ac64c3747c96c277f9e506a0d2246Torne (Richard Coles)
16125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Performs Keychain reauthorization from the command line on behalf of a
16135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// special Keychain reauthorization stub executable. Used during auto-update.
16145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kKeychainReauthorize[]           = "keychain-reauthorize";
16155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A process type (switches::kProcessType) that relaunches the browser. See
16175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// chrome/browser/mac/relauncher.h.
16185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kRelauncherProcess[]             = "relauncher";
16195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Uses mock keychain for testing purposes, which prevents blocking dialogs
16215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// from causing timeouts.
16225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kUseMockKeychain[]               = "use-mock-keychain";
16235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(OS_WIN)
16260f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// Force-enables the profile shortcut manager. This is needed for tests since
16270f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)// they use a custom-user-data-dir which disables this.
16280f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)const char kEnableProfileShortcutManager[]  = "enable-profile-shortcut-manager";
16290f1bc08d4cfcc34181b0b5cbf065c40f687bf740Torne (Richard Coles)
16305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For the DelegateExecute verb handler to launch Chrome in metro mode on
16315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Windows 8 and higher.  Used when relaunching metro Chrome.
1632c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kForceImmersive[]                = "force-immersive";
16335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// For the DelegateExecute verb handler to launch Chrome in desktop mode on
16355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Windows 8 and higher.  Used when relaunching metro Chrome.
1636c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kForceDesktop[]                  = "force-desktop";
16375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1639c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)const char kRelaunchShortcut[]              = "relaunch-shortcut";
16405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Waits for the given handle to be signaled before relaunching metro Chrome on
16425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Windows 8 and higher.
16435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kWaitForMutex[]                  = "wait-for-mutex";
1644868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
1645868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Indicates that chrome was launched to service a search request in Windows 8.
1646868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)const char kWindows8Search[]           = "windows8-search";
1647868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
16485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1650eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#if defined(OS_WIN) && defined(USE_AURA)
1651eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Requests that Chrome connect to the running Metro viewer process.
1652eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kViewerConnect[]                 = "viewer-connect";
1653eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
1654eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// Requests that Chrome launch the Metro viewer process via the given appid
1655eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// (which is assumed to be registered as default browser) and synchronously
1656eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch// connect to it.
1657eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdochconst char kViewerLaunchViaAppId[]          = "viewer-launch-via-appid";
1658eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch#endif
1659eb525c5499e34cc9c4b825d6d9e75bb07cc06aceBen Murdoch
16605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef NDEBUG
16615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables overriding the path of file manager extension.
16625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kFileManagerExtensionPath[]      = "filemgr-ext-path";
16635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16642a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)// Enables overriding the path of image loader extension.
16652a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)const char kImageLoaderExtensionPath[]      = "image-loader-ext-path";
16665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif  // NDEBUG
16675821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Controls print preview in the browser process.
16695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#if defined(GOOGLE_CHROME_BUILD)
16705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Disables print preview (For testing, and for users who don't like us. :[ )
16715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kDisablePrintPreview[]           = "disable-print-preview";
16725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#else
16735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Enables print preview (Force enable on Chromium, which normally does not
16745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//                        have the PDF viewer required for print preview.)
16755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)const char kEnablePrintPreview[]            = "enable-print-preview";
16765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
16775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------------------------
16795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
16805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)//
16815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// You were going to just dump your switches here, weren't you? Instead, please
16825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// put them in alphabetical order above, or in order inside the appropriate
16835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// ifdef at the bottom. The order should match the header.
16845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// -----------------------------------------------------------------------------
16855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
16865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)}  // namespace switches
1687