1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/common/chrome_switches.h"
7 #include "base/base_switches.h"
8 #include "base/command_line.h"
12 // -----------------------------------------------------------------------------
13 // Can't find the switch you are looking for? Try looking in:
14 // ash/ash_switches.cc
15 // base/base_switches.cc
16 // chromeos/chromeos_switches.cc
19 // When commenting your switch, please use the same voice as surrounding
20 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll
22 // -----------------------------------------------------------------------------
24 // If set, Chrome will activate any existing browsers for a specific profile.
25 // Used for example by the fast-user switcher in the Windows JumpList.
26 const char kActivateExistingProfileBrowser
[] =
27 "activate-existing-profile-browser";
29 // Allows third-party content included on a page to prompt for a HTTP basic
30 // auth username/password pair.
31 const char kAllowCrossOriginAuthPrompt
[] = "allow-cross-origin-auth-prompt";
33 // On ChromeOS, file:// access is disabled except for certain whitelisted
34 // directories. This switch re-enables file:// for testing.
35 const char kAllowFileAccess
[] = "allow-file-access";
37 // Allow non-secure origins to use the screen capture API and the desktopCapture
39 const char kAllowHttpScreenCapture
[] = "allow-http-screen-capture";
41 #if defined(ENABLE_PLUGINS)
42 // Specifies comma-separated list of extension ids or hosts to grant
43 // access to CRX file system APIs.
44 const char kAllowNaClCrxFsAPI
[] = "allow-nacl-crxfs-api";
46 // Specifies comma-separated list of extension ids or hosts to grant
47 // access to file handle APIs.
48 const char kAllowNaClFileHandleAPI
[] = "allow-nacl-file-handle-api";
50 // Specifies comma-separated list of extension ids or hosts to grant
51 // access to TCP/UDP socket APIs.
52 const char kAllowNaClSocketAPI
[] = "allow-nacl-socket-api";
55 // Don't block outdated plugins.
56 const char kAllowOutdatedPlugins
[] = "allow-outdated-plugins";
58 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
59 // URLs. This provides an override to get the old insecure behavior.
60 const char kAllowRunningInsecureContent
[] = "allow-running-insecure-content";
62 // Specifies the threshold to be used when determining of an Alternate-Protocol
63 // advertisement will be honored. If the advertised probability is larger
64 // than the threshold, then it will be honored.
65 const char kAlternateProtocolProbabilityThreshold
[] =
66 "alternate-protocol-probability-threshold";
68 // Prevents Chrome from requiring authorization to run certain widely installed
69 // but less commonly used plug-ins.
70 const char kAlwaysAuthorizePlugins
[] = "always-authorize-plugins";
72 // Specifies that the extension-app with the specified id should be launched
73 // according to its configuration.
74 const char kAppId
[] = "app-id";
76 // Specifies that the associated value should be launched in "application"
78 const char kApp
[] = "app";
80 // Specifies an URL to use for app list start page.
81 const char kAppListStartPageURL
[] = "app-list-start-page-url";
83 // Overrides the apps checkout URL, which is used to determine when to expose
85 const char kAppsCheckoutURL
[] = "apps-checkout-url";
87 // The URL that the webstore APIs download extensions from.
88 // Note: the URL must contain one '%s' for the extension ID.
89 const char kAppsGalleryDownloadURL
[] = "apps-gallery-download-url";
91 // The URL to use for the gallery link in the app launcher.
92 const char kAppsGalleryURL
[] = "apps-gallery-url";
94 // The update url used by gallery/webstore extensions.
95 const char kAppsGalleryUpdateURL
[] = "apps-gallery-update-url";
97 // Value of GAIA auth code for --force-app-mode.
98 const char kAppModeAuthCode
[] = "app-mode-auth-code";
100 // Value of OAuth2 refresh token for --force-app-mode.
101 const char kAppModeOAuth2Token
[] = "app-mode-oauth-token";
103 // Enables overriding the path for the default authentication extension.
104 const char kAuthExtensionPath
[] = "auth-ext-path";
106 // Whitelist of servers that Negotiate will generate delegated Kerberos tickets
108 const char kAuthNegotiateDelegateWhitelist
[] =
109 "auth-negotiate-delegate-whitelist";
111 // HTTP authentication schemes to enable. This is a comma-separated list of
112 // authentication schemes (basic, digest, ntlm, and negotiate). By default all
113 // schemes are enabled. The primary use of this command line flag is to help
114 // triage authentication-related issues reported by end-users.
115 const char kAuthSchemes
[] = "auth-schemes";
117 // Whitelist of servers which NTLM and Negotiate can automatically authenticate
118 // with using the default credentials of the currently logged in user.
119 const char kAuthServerWhitelist
[] = "auth-server-whitelist";
121 // A flag that is used to tell Chrome that it was launched automatically at
122 // computer startup and not by some user action.
123 const char kAutoLaunchAtStartup
[] = "auto-launch-at-startup";
125 // This flag makes Chrome auto-select the provided choice when an extension asks
126 // permission to start desktop capture. Should only be used for tests. For
127 // instance, --auto-select-desktop-capture-source="Entire screen" will
128 // automatically select to share the entire screen in English locales.
129 const char kAutoSelectDesktopCaptureSource
[] =
130 "auto-select-desktop-capture-source";
132 // Certificate Transparency: Uses the provided log(s) for checking Signed
133 // Certificate Timestamps provided with certificates.
134 // The switch's value is:
135 // log_description:log_key,log_description:log_key,...
137 // log_description is a textual description of the log.
138 // log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
140 // Multiple logs can be specified by repeating description:key pairs,
141 // separated by a comma.
142 const char kCertificateTransparencyLog
[] =
143 "certificate-transparency-log";
145 // How often (in seconds) to check for updates. Should only be used for testing
147 const char kCheckForUpdateIntervalSec
[] = "check-for-update-interval";
149 // Checks the cloud print connector policy, informing the service process if
150 // the policy is set to disallow the connector, then quits.
151 const char kCheckCloudPrintConnectorPolicy
[] =
152 "check-cloud-print-connector-policy";
154 // Comma-separated list of SSL cipher suites to disable.
155 const char kCipherSuiteBlacklist
[] = "cipher-suite-blacklist";
157 // Tells chrome to display the cloud print dialog and upload the specified file
159 const char kCloudPrintFile
[] = "cloud-print-file";
161 // Specifies the mime type to be used when uploading data from the file
162 // referenced by cloud-print-file. Defaults to "application/pdf" if
164 const char kCloudPrintFileType
[] = "cloud-print-file-type";
166 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
167 // print job. Defaults to null if unspecified.
168 const char kCloudPrintPrintTicket
[] = "cloud-print-print-ticket";
170 // Used with kCloudPrintFile to specify a title for the resulting print job.
171 const char kCloudPrintJobTitle
[] = "cloud-print-job-title";
173 // Setup cloud print proxy for provided printers. This does not start
174 // service or register proxy for autostart.
175 const char kCloudPrintSetupProxy
[] = "cloud-print-setup-proxy";
177 // Comma-separated list of BrowserThreads that cause browser process to crash
178 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
179 // list of BrowserThreads that are supported.
182 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
183 // is not responsive for 18 seconds and the number of browser threads that
184 // are responding is less than or equal to 3.
185 const char kCrashOnHangThreads
[] = "crash-on-hang-threads";
187 // Some platforms like ChromeOS default to empty desktop.
188 // Browser tests may need to add this switch so that at least one browser
189 // instance is created on startup.
190 // TODO(nkostylev): Investigate if this switch could be removed.
191 // (http://crbug.com/148675)
192 const char kCreateBrowserOnStartupForTests
[] =
193 "create-browser-on-startup-for-tests";
195 // Enables a frame context menu item that toggles the frame in and out of glass
196 // mode (Windows Vista and up only).
197 const char kDebugEnableFrameToggle
[] = "debug-enable-frame-toggle";
199 // Adds debugging entries such as Inspect Element to context menus of packed
201 const char kDebugPackedApps
[] = "debug-packed-apps";
203 // Triggers a plethora of diagnostic modes.
204 const char kDiagnostics
[] = "diagnostics";
206 // Sets the output format for diagnostic modes enabled by diagnostics flag.
207 const char kDiagnosticsFormat
[] = "diagnostics-format";
209 // Tells the diagnostics mode to do the requested recovery step(s).
210 const char kDiagnosticsRecovery
[] = "diagnostics-recovery";
212 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings
213 // instead of as a separate page, unless this flag is specified.
214 const char kDisableAboutInSettings
[] = "disable-about-in-settings";
216 // Disables the experimental asynchronous DNS client.
217 const char kDisableAsyncDns
[] = "disable-async-dns";
219 // Disables CNAME lookup of the host when generating the Kerberos SPN for a
220 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
222 const char kDisableAuthNegotiateCnameLookup
[] =
223 "disable-auth-negotiate-cname-lookup";
225 // Disable several subsystems which run network requests in the background.
226 // This is for use when doing network performance testing to avoid noise in the
228 const char kDisableBackgroundNetworking
[] = "disable-background-networking";
230 // Disables the bundled PPAPI version of Flash.
231 const char kDisableBundledPpapiFlash
[] = "disable-bundled-ppapi-flash";
233 // Disable hardware encoding support for Cast Streaming.
234 const char kDisableCastStreamingHWEncoding
[] =
235 "disable-cast-streaming-hw-encoding";
237 // Disables the client-side phishing detection feature. Note that even if
238 // client-side phishing detection is enabled, it will only be active if the
239 // user has opted in to UMA stats and SafeBrowsing is enabled in the
241 const char kDisableClientSidePhishingDetection
[] =
242 "disable-client-side-phishing-detection";
244 // Disable default component extensions with background pages - useful for
245 // performance tests where these pages may interfere with perf results.
246 const char kDisableComponentExtensionsWithBackgroundPages
[] =
247 "disable-component-extensions-with-background-pages";
249 const char kDisableComponentUpdate
[] = "disable-component-update";
251 // Disables installation of default apps on first run. This is used during
252 // automated testing.
253 const char kDisableDefaultApps
[] = "disable-default-apps";
255 // Disables device discovery notifications.
256 const char kDisableDeviceDiscoveryNotifications
[] =
257 "disable-device-discovery-notifications";
259 // Disables Domain Reliability Monitoring.
260 const char kDisableDomainReliability
[] = "disable-domain-reliability";
262 // Disable extensions.
263 const char kDisableExtensions
[] = "disable-extensions";
265 // Disable checking for user opt-in for extensions that want to inject script
266 // into file URLs (ie, always allow it). This is used during automated testing.
267 const char kDisableExtensionsFileAccessCheck
[] =
268 "disable-extensions-file-access-check";
270 // Disable the net::URLRequestThrottlerManager functionality for
271 // requests originating from extensions.
272 const char kDisableExtensionsHttpThrottling
[] =
273 "disable-extensions-http-throttling";
275 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
276 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
277 // bugs if something isn't working properly in the presence of IPv6. This flag
278 // can be overidden by the "enable-ipv6" flag.
279 const char kDisableIPv6
[] = "disable-ipv6";
281 // Disable the behavior that the second click on a launcher item (the click when
282 // the item is already active) minimizes the item.
283 const char kDisableMinimizeOnSecondLauncherItemClick
[] =
284 "disable-minimize-on-second-launcher-item-click";
286 // Disables the menu on the NTP for accessing sessions from other devices.
287 const char kDisableNTPOtherSessionsMenu
[] = "disable-ntp-other-sessions-menu";
289 // Disables the Material Design NTP.
290 const char kDisableMaterialDesignNTP
[] = "disable-material-design-ntp";
292 // Disable auto-reload of error pages if offline.
293 const char kDisableOfflineAutoReload
[] = "disable-offline-auto-reload";
295 // Disable only auto-reloading error pages when the tab is visible.
296 const char kDisableOfflineAutoReloadVisibleOnly
[] =
297 "disable-offline-auto-reload-visible-only";
299 // Disable the origin chip.
300 const char kDisableOriginChip
[] = "disable-origin-chip";
302 // Disable the setting to prompt the user for their OS account password before
303 // revealing plaintext passwords in the password manager.
304 const char kDisablePasswordManagerReauthentication
[] =
305 "disable-password-manager-reauthentication";
307 // Enables searching for people from the apps list search box.
308 const char kDisablePeopleSearch
[] = "disable-people-search";
310 // Don't use bubbles for content permissions requests instead of infobars.
311 const char kDisablePermissionsBubbles
[] = "disable-permissions-bubbles";
313 // Disable pop-up blocking.
314 const char kDisablePopupBlocking
[] = "disable-popup-blocking";
316 // Disable speculative TCP/IP preconnection.
317 const char kDisablePreconnect
[] = "disable-preconnect";
319 // Disable prerendering based on local browsing history.
320 const char kDisablePrerenderLocalPredictor
[] =
321 "disable-prerender-local-predictor";
323 // Disables print preview (For testing, and for users who don't like us. :[ )
324 const char kDisablePrintPreview
[] = "disable-print-preview";
326 // Normally when the user attempts to navigate to a page that was the result of
327 // a post we prompt to make sure they want to. This switch may be used to
328 // disable that check. This switch is used during automated testing.
329 const char kDisablePromptOnRepost
[] = "disable-prompt-on-repost";
331 // Disables support for the QUIC protocol.
332 const char kDisableQuic
[] = "disable-quic";
334 // Disable use of pacing of QUIC packets.
335 // This only has an effect if QUIC protocol is enabled.
336 const char kDisableQuicPacing
[] = "disable-quic-pacing";
338 // Disable use of Chromium's port selection for the ephemeral port via bind().
339 // This only has an effect if QUIC protocol is enabled.
340 const char kDisableQuicPortSelection
[] = "disable-quic-port-selection";
342 // Prevents the save password bubble from being enabled.
343 const char kDisableSavePasswordBubble
[] = "disable-save-password-bubble";
345 // Disables the "search button in omnibox" experiment.
346 const char kDisableSearchButtonInOmnibox
[] =
347 "disable-search-button-in-omnibox";
349 // Disables using bubbles for session restore request.
350 const char kDisableSessionCrashedBubble
[] = "disable-session-crashed-bubble";
352 // Disables the suggestions service.
353 const char kDisableSuggestionsService
[] = "disable-suggestions-service";
355 // Disables the supervised user host blacklist.
356 const char kDisableSupervisedUserBlacklist
[] =
357 "disable-supervised-user-blacklist";
359 // Disables SafeSites filtering for supervised users.
360 const char kDisableSupervisedUserSafeSites
[] =
361 "disable-supervised-user-safesites";
363 // Disables syncing browser data to a Google Account.
364 const char kDisableSync
[] = "disable-sync";
366 // Disable synced notifications.
367 const char kDisableSyncSyncedNotifications
[] =
368 "disable-sync-synced-notifications";
370 // Disables syncing one or more sync data types that are on by default.
371 // See sync/internal_api/public/base/model_type.h for possible types. Types
372 // should be comma separated, and follow the naming convention for string
373 // representation of model types, e.g.:
374 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles'
375 const char kDisableSyncTypes
[] = "disable-sync-types";
377 // Disables the backend service for web resources.
378 const char kDisableWebResources
[] = "disable-web-resources";
380 // Some tests seem to require the application to close when the last
381 // browser window is closed. Thus, we need a switch to force this behavior
382 // for ChromeOS Aura, disable "zero window mode".
383 // TODO(pkotwicz): Investigate if this bug can be removed.
384 // (http://crbug.com/119175)
385 const char kDisableZeroBrowsersOpenForTests
[] =
386 "disable-zero-browsers-open-for-tests";
388 // Use a specific disk cache location, rather than one derived from the
390 const char kDiskCacheDir
[] = "disk-cache-dir";
392 // Forces the maximum disk space to be used by the disk cache, in bytes.
393 const char kDiskCacheSize
[] = "disk-cache-size";
395 const char kDnsLogDetails
[] = "dns-log-details";
397 // Disables prefetching of DNS information.
398 const char kDnsPrefetchDisable
[] = "dns-prefetch-disable";
400 // Requests that a running browser process dump its collected histograms to a
401 // given file. The file is overwritten if it exists.
402 const char kDumpBrowserHistograms
[] = "dump-browser-histograms";
404 // Overrides the path of Easy Unlock component app.
405 extern const char kEasyUnlockAppPath
[] = "easy-unlock-app-path";
407 // If set, the app list will be enabled as if enabled from CWS.
408 const char kEnableAppList
[] = "enable-app-list";
410 // Enable OS integration for Chrome app file associations.
411 const char kEnableAppsFileAssociations
[] = "enable-apps-file-associations";
413 // Enables the experimental asynchronous DNS client.
414 const char kEnableAsyncDns
[] = "enable-async-dns";
416 // Enables the inclusion of non-standard ports when generating the Kerberos SPN
417 // in response to a Negotiate challenge. See
418 // HttpAuthHandlerNegotiate::CreateSPN for more background.
419 const char kEnableAuthNegotiatePort
[] = "enable-auth-negotiate-port";
421 // Enables the benchmarking extensions.
422 const char kEnableBenchmarking
[] = "enable-benchmarking";
424 // Enables client hints, which adds hints about browser state to HTTP requests.
425 const char kEnableClientHints
[] = "enable-client-hints";
427 // Enables the multi-level undo system for bookmarks.
428 const char kEnableBookmarkUndo
[] = "enable-bookmark-undo";
430 // This applies only when the process type is "service". Enables the Cloud
431 // Print Proxy component within the service process.
432 const char kEnableCloudPrintProxy
[] = "enable-cloud-print-proxy";
434 // If true devtools experimental settings are enabled.
435 const char kEnableDevToolsExperiments
[] = "enable-devtools-experiments";
437 // Enable device discovery notifications.
438 const char kEnableDeviceDiscoveryNotifications
[] =
439 "enable-device-discovery-notifications";
441 // Enables the DOM distiller.
442 const char kEnableDomDistiller
[] = "enable-dom-distiller";
444 // Enables Domain Reliability Monitoring.
445 const char kEnableDomainReliability
[] = "enable-domain-reliability";
447 // Enable Enhanced Bookmarks.
448 const char kEnhancedBookmarksExperiment
[] = "enhanced-bookmarks-experiment";
450 // Enables experimentation with ephemeral apps, which are launched without
451 // installing in Chrome.
452 const char kEnableEphemeralApps
[] = "enable-ephemeral-apps";
454 // Enables v2 hotword detection features. These features include
455 // using a new component extension for performing hotword detection, new UI
456 // flows, and always-on detection.
457 const char kEnableExperimentalHotwording
[] = "enable-experimental-hotwording";
459 // Enables experimental hotword features specific to always-on.
460 const char kEnableExperimentalHotwordHardware
[] = "enable-hotword-hardware";
462 // Enables logging for extension activity.
463 const char kEnableExtensionActivityLogging
[] =
464 "enable-extension-activity-logging";
466 const char kEnableExtensionActivityLogTesting
[] =
467 "enable-extension-activity-log-testing";
469 // Enable the fast unload controller, which speeds up tab/window close by
470 // running a tab's onunload js handler independently of the GUI -
471 // crbug.com/142458 .
472 const char kEnableFastUnload
[] = "enable-fast-unload";
474 // Enables IPv6 support, even if probes suggest that it may not be fully
475 // supported. Some probes may require internet connections, and this flag will
476 // allow support independent of application testing. This flag overrides
477 // "disable-ipv6" which appears elswhere in this file.
478 const char kEnableIPv6
[] = "enable-ipv6";
480 // Enables experimentation with launching ephemeral apps via hyperlinks.
481 const char kEnableLinkableEphemeralApps
[] = "enable-linkable-ephemeral-apps";
483 // Runs the Native Client inside the renderer process and enables GPU plugin
484 // (internally adds lEnableGpuPlugin to the command line).
485 const char kEnableNaCl
[] = "enable-nacl";
487 // Enables the network-related benchmarking extensions.
488 const char kEnableNetBenchmarking
[] = "enable-net-benchmarking";
490 // Enables the Material Design NTP.
491 const char kEnableMaterialDesignNTP
[] = "enable-material-design-ntp";
493 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
494 // HTTP is still used for all requests.
495 const char kEnableNpnHttpOnly
[] = "enable-npn-http";
497 // Enable auto-reload of error pages if offline.
498 const char kEnableOfflineAutoReload
[] = "enable-offline-auto-reload";
500 // Only auto-reload error pages when the tab is visible.
501 const char kEnableOfflineAutoReloadVisibleOnly
[] =
502 "enable-offline-auto-reload-visible-only";
504 // Enable/Disable offering a "Load stale copy" option to the user if offline.
505 const char kEnableOfflineLoadStaleCache
[] = "enable-offline-load-stale-cache";
506 const char kDisableOfflineLoadStaleCache
[] =
507 "disable-offline-load-stale-cache";
509 // Controls which branch of the origin chip in location bar experiment is
512 // We're using independent flags here (as opposed to a common flag with
513 // different values) to be able to enable/disable the entire experience
514 // associated with this feature server-side from the FieldTrial (the complete
515 // experience includes other flag changes as well). It is not currently possible
516 // to do that with "flag=value" flags.
517 const char kEnableOriginChipAlways
[] = "enable-origin-chip-always";
518 const char kEnableOriginChipOnSrp
[] = "enable-origin-chip-on-srp";
520 // Enables panels (always on-top docked pop-up windows).
521 const char kEnablePanels
[] = "enable-panels";
523 // Enables presenting plugin placeholder content as shadow DOM.
524 const char kEnablePluginPlaceholderShadowDom
[] =
525 "enable-plugin-placeholder-shadow-dom";
527 // Enables the Power overlay in Settings.
528 const char kEnablePowerOverlay
[] = "enable-power-overlay";
530 // Enables showing unregistered printers in print preview
531 const char kEnablePrintPreviewRegisterPromos
[] =
532 "enable-print-preview-register-promos";
534 // Enable Privet storage.
535 const char kEnablePrivetStorage
[] = "enable-privet-storage";
537 // Enables tracking of tasks in profiler for viewing via about:profiler.
538 // To predominantly disable tracking (profiling), use the command line switch:
539 // --enable-profiling=0
540 // Some tracking will still take place at startup, but it will be turned off
541 // during chrome_browser_main.
542 const char kEnableProfiling
[] = "enable-profiling";
544 // Enables query in the omnibox.
545 const char kEnableQueryExtraction
[] = "enable-query-extraction";
547 // Enables support for the QUIC protocol. This is a temporary testing flag.
548 const char kEnableQuic
[] = "enable-quic";
550 // Disable use of pacing of QUIC packets.
551 // This only has an effect if QUIC protocol is enabled.
552 const char kEnableQuicPacing
[] = "enable-quic-pacing";
554 // Enable use of Chromium's port selection for the ephemeral port via bind().
555 // This only has an effect if QUIC protocol is enabled.
556 const char kEnableQuicPortSelection
[] = "enable-quic-port-selection";
558 // Enables context-sensitive reader mode button in the toolbar.
559 const char kEnableReaderModeToolbarIcon
[] =
560 "enable-reader-mode-toolbar-icon";
562 // Enables save password prompt bubble.
563 const char kEnableSavePasswordBubble
[] = "enable-save-password-bubble";
565 // Enables SDCH for https schemes.
566 const char kEnableSdchOverHttps
[] = "enable-sdch-over-https";
568 // Controls which branch of the "search button in omnibox" experiment is
571 // We're using independent flags here (as opposed to a common flag with
572 // different values) to be able to enable/disable the entire experience
573 // associated with this feature server-side from the FieldTrial (the complete
574 // experience includes other flag changes as well). It is not currently possible
575 // to do that with "flag=value" flags.
576 const char kEnableSearchButtonInOmniboxAlways
[] =
577 "enable-search-button-in-omnibox-always";
578 const char kEnableSearchButtonInOmniboxForStr
[] =
579 "enable-search-button-in-omnibox-for-str";
580 const char kEnableSearchButtonInOmniboxForStrOrIip
[] =
581 "enable-search-button-in-omnibox-for-str-or-iip";
583 // Enables using bubbles for session restore request instead of infobars.
584 const char kEnableSessionCrashedBubble
[] = "enable-session-crashed-bubble";
586 // Enables the deprecated window.showModalDialog API. This is slated for
588 const char kEnableShowModalDialog
[] = "enable-show-modal-dialog";
590 // Enable or disable settings in a separate browser window per profile
591 // (see SettingsWindowEnabled() below).
592 const char kEnableSettingsWindow
[] = "enable-settings-window";
593 const char kDisableSettingsWindow
[] = "disable-settings-window";
595 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag.
596 const char kEnableSpdy4
[] = "enable-spdy4";
598 // Enables a feature that holds back some SSLConnectJobs in order to
599 // minimize the number of full SSL handshakes completed.
600 const char kEnableSSLConnectJobWaiting
[] = "enable-ssl-connect-job-waiting";
602 // Enables implementation of the Cache-Control: stale-while-revalidate directive
603 // which permits servers to allow the use of stale resources while revalidation
604 // proceeds in the background.
605 const char kEnableStaleWhileRevalidate
[] = "enable-stale-while-revalidate";
607 // Enables an experimental hosted app experience.
608 const char kEnableStreamlinedHostedApps
[] = "enable-streamlined-hosted-apps";
610 // Enables the suggestions service.
611 const char kEnableSuggestionsService
[] = "enable-suggestions-service";
613 // Enables the supervised user host blacklist.
614 const char kEnableSupervisedUserBlacklist
[] =
615 "enable-supervised-user-blacklist";
617 // Enables SafeSites filtering for supervised users.
618 const char kEnableSupervisedUserSafeSites
[] =
619 "enable-supervised-user-safesites";
621 // Enables synced notifications.
622 const char kEnableSyncSyncedNotifications
[] =
623 "enable-sync-synced-notifications";
625 // Enables synced articles.
626 const char kEnableSyncArticles
[] = "enable-sync-articles";
628 // Enables user control over muting tab audio from the tab strip.
629 const char kEnableTabAudioMuting
[] = "enable-tab-audio-muting";
631 // Enables fanciful thumbnail processing. Used with NTP for
632 // instant-extended-api, where thumbnails are generally smaller.
633 const char kEnableThumbnailRetargeting
[] = "enable-thumbnail-retargeting";
635 // Enables Translate experimental new UX which replaces the infobar.
636 const char kEnableTranslateNewUX
[] = "enable-translate-new-ux";
638 // Enables Alternate-Protocol when the port is user controlled (> 1024).
639 const char kEnableUserAlternateProtocolPorts
[] =
640 "enable-user-controlled-alternate-protocol-ports";
642 // Enables the Website Settings page on the Settings page.
643 const char kEnableWebsiteSettingsManager
[] = "enable-website-settings-manager";
645 // Explicitly allows additional ports using a comma-separated list of port
647 const char kExplicitlyAllowedPorts
[] = "explicitly-allowed-ports";
649 // Values for the kExtensionContentVerification flag.
650 // See ContentVerifierDelegate::Mode for more explanation.
651 const char kExtensionContentVerificationBootstrap
[] = "bootstrap";
652 const char kExtensionContentVerificationEnforceStrict
[] = "enforce_strict";
653 const char kExtensionContentVerificationEnforce
[] = "enforce";
655 // Name of the command line flag to force content verification to be on in one
657 const char kExtensionContentVerification
[] = "extension-content-verification";
659 // Turns on extension install verification if it would not otherwise have been
661 const char kExtensionsInstallVerification
[] = "extensions-install-verification";
663 // Specifies a comma-separated list of extension ids that should be forced to
664 // be treated as not from the webstore when doing install verification.
665 const char kExtensionsNotWebstore
[] = "extensions-not-webstore";
667 // Frequency in seconds for Extensions auto-update.
668 const char kExtensionsUpdateFrequency
[] = "extensions-update-frequency";
670 // Fakes the channel of the browser for purposes of Variations filtering. This
671 // is to be used for testing only. Possible values are "stable", "beta", "dev"
672 // and "canary". Note that this only applies if the browser's reported channel
674 const char kFakeVariationsChannel
[] = "fake-variations-channel";
676 // If this flag is present then this command line is being delegated to an
677 // already running chrome process via the fast path, ie: before chrome.dll is
678 // loaded. It is useful to tell the difference for tracking purposes.
679 const char kFastStart
[] = "fast-start";
681 // These two flags are added around the switches about:flags adds to the
682 // command line. This is useful to see which switches were added by about:flags
683 // on about:version. They don't have any effect.
684 const char kFlagSwitchesBegin
[] = "flag-switches-begin";
685 const char kFlagSwitchesEnd
[] = "flag-switches-end";
687 // Forces application mode. This hides certain system UI elements and forces
688 // the app to be installed if it hasn't been already.
689 const char kForceAppMode
[] = "force-app-mode";
691 // Displays the First Run experience when the browser is started, regardless of
692 // whether or not it's actually the First Run (this overrides kNoFirstRun).
693 const char kForceFirstRun
[] = "force-first-run";
695 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
696 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
697 // prefixed with the character "t" will be treated as Trigger Variation Ids.
698 const char kForceVariationIds
[] = "force-variation-ids";
700 // Specifies a custom name for the GSSAPI library to load.
701 const char kGSSAPILibraryName
[] = "gssapi-library-name";
703 // These flags show the man page on Linux. They are equivalent to each
705 const char kHelp
[] = "help";
706 const char kHelpShort
[] = "h";
708 // Makes Windows happy by allowing it to show "Enable access to this program"
709 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
710 // shows an error box because the only way to hide Chrome is by uninstalling
712 const char kHideIcons
[] = "hide-icons";
714 // Enables grouping websites by domain and filtering them by period.
715 const char kHistoryEnableGroupByDomain
[] = "enable-grouped-history";
717 // Specifies which page will be displayed in newly-opened tabs. We need this
718 // for testing purposes so that the UI tests don't depend on what comes up for
719 // http://google.com.
720 const char kHomePage
[] = "homepage";
722 // Comma-separated list of rules that control how hostnames are mapped.
725 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
726 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
727 // resolved to "proxy".
728 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
729 // Will also force the port of the resulting
730 // socket address to be 77.
731 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
732 // except for "www.google.com".
734 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
735 // connect and host resolver in a direct connection, and the CONNECT in an http
736 // proxy connection, and the endpoint host in a SOCKS proxy connection).
737 const char kHostRules
[] = "host-rules";
739 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow
740 // (not counting backup attempts which would also consume threads).
741 // --host-resolver-retry-attempts must be set to zero for this to be exact.
742 const char kHostResolverParallelism
[] = "host-resolver-parallelism";
744 // The maximum number of retry attempts to resolve the host. Set this to zero
745 // to disable host resolver retry attempts.
746 const char kHostResolverRetryAttempts
[] = "host-resolver-retry-attempts";
748 // Causes net::URLFetchers to ignore requests for SSL client certificates,
749 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
750 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
751 // kSyncServiceURL, etc)
752 const char kIgnoreUrlFetcherCertRequests
[] =
753 "ignore-urlfetcher-cert-requests";
755 // Causes the browser to launch directly in incognito mode.
756 const char kIncognito
[] = "incognito";
758 // Causes Chrome to initiate an installation flow for the given app.
759 const char kInstallChromeApp
[] = "install-chrome-app";
761 // Causes Chrome to attempt to get metadata from the webstore for the
762 // app/extension ID given, and then prompt the user to download and install it.
763 // This is allowed *only* for ephemeral apps. All other ids will be ignored.
764 const char kInstallEphemeralAppFromWebstore
[] =
765 "install-ephemeral-app-from-webstore";
767 // Marks a renderer as an Instant process.
768 const char kInstantProcess
[] = "instant-process";
770 // Invalidation service should use GCM network channel even if experiment is not
772 const char kInvalidationUseGCMChannel
[] = "invalidation-use-gcm-channel";
774 // Enables experimental Harmony (ECMAScript 6) features.
775 const char kJavaScriptHarmony
[] = "javascript-harmony";
777 // Specifies the testcase used by the IPC fuzzer.
778 const char kIpcFuzzerTestcase
[] = "ipc-fuzzer-testcase";
780 // Used for testing - keeps browser alive after last browser window closes.
781 const char kKeepAliveForTest
[] = "keep-alive-for-test";
783 // Enable Kiosk mode.
784 const char kKioskMode
[] = "kiosk";
786 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
787 // See http://crbug.com/31395.
788 const char kKioskModePrinting
[] = "kiosk-printing";
790 // Comma-separated list of directories with component extensions to load.
791 const char kLoadComponentExtension
[] = "load-component-extension";
793 // Loads an extension from the specified directory.
794 const char kLoadExtension
[] = "load-extension";
796 // Makes Chrome default browser
797 const char kMakeDefaultBrowser
[] = "make-default-browser";
799 // Use to opt-in user into Finch experiment groups.
800 const char kManualEnhancedBookmarks
[] = "manual-enhanced-bookmarks";
801 const char kManualEnhancedBookmarksOptout
[] =
802 "manual-enhanced-bookmarks-optout";
804 // Forces the maximum disk space to be used by the media cache, in bytes.
805 const char kMediaCacheSize
[] = "media-cache-size";
807 // Enables histograming of tasks served by MessageLoop. See
808 // about:histograms/Loop for results, which show frequency of messages on each
809 // thread, including APC count, object signalling count, etc.
810 const char kMessageLoopHistogrammer
[] = "message-loop-histogrammer";
812 // Enables the recording of metrics reports but disables reporting. In contrast
813 // to kDisableMetrics, this executes all the code that a normal client would
814 // use for reporting, except the report is dropped rather than sent to the
815 // server. This is useful for finding issues in the metrics code during UI and
816 // performance tests.
817 const char kMetricsRecordingOnly
[] = "metrics-recording-only";
819 // Sets the base logging level for the net log. Log 0 logs the most data.
820 // Intended primarily for use with --log-net-log.
821 const char kNetLogLevel
[] = "net-log-level";
823 // Disables the default browser check. Useful for UI/browser tests where we
824 // want to avoid having the default browser info-bar displayed.
825 const char kNoDefaultBrowserCheck
[] = "no-default-browser-check";
827 // By default, an https page can load images, fonts or frames from an http
828 // page. This switch overrides this to block this lesser mixed-content problem.
829 const char kNoDisplayingInsecureContent
[] = "no-displaying-insecure-content";
831 // Don't record/playback events when using record & playback.
832 const char kNoEvents
[] = "no-events";
834 // Disables all experiments set on about:flags. Does not disable about:flags
835 // itself. Useful if an experiment makes chrome crash at startup: One can start
836 // chrome with --no-experiments, disable the problematic lab at about:flags and
837 // then restart chrome without this switch again.
838 const char kNoExperiments
[] = "no-experiments";
840 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
841 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
842 // prevent first run from occuring the next time chrome is launched without this
844 const char kNoFirstRun
[] = "no-first-run";
846 // Whether or not the browser should warn if the profile is on a network share.
847 // This flag is only relevant for Windows currently.
848 const char kNoNetworkProfileWarning
[] = "no-network-profile-warning";
850 // Don't send hyperlink auditing pings
851 const char kNoPings
[] = "no-pings";
853 // Don't use a proxy server, always make direct connections. Overrides any
854 // other proxy server flags that are passed.
855 const char kNoProxyServer
[] = "no-proxy-server";
857 // Disables the service process from adding itself as an autorun process. This
858 // does not delete existing autorun registrations, it just prevents the service
859 // from registering a new one.
860 const char kNoServiceAutorun
[] = "no-service-autorun";
862 // Does not automatically open a browser window on startup (used when
863 // launching Chrome for the purpose of hosting background apps).
864 const char kNoStartupWindow
[] = "no-startup-window";
866 // Disables checking whether we received an acknowledgment when registering
867 // a supervised user. Also disables the timeout during registration that waits
868 // for the ack. Useful when debugging against a server that does not
869 // support notifications.
870 const char kNoSupervisedUserAcknowledgmentCheck
[] =
871 "no-managed-user-acknowledgment-check";
873 // Specifies the maximum number of threads to use for running the Proxy
874 // Autoconfig (PAC) script.
875 const char kNumPacThreads
[] = "num-pac-threads";
877 // Launches URL in new browser window.
878 const char kOpenInNewWindow
[] = "new-window";
880 // Force use of QUIC for requests to the specified origin.
881 const char kOriginToForceQuicOn
[] = "origin-to-force-quic-on";
883 // The time that a new chrome process which is delegating to an already running
884 // chrome process started. (See ProcessSingleton for more details.)
885 const char kOriginalProcessStartTime
[] = "original-process-start-time";
887 // Enable the out of process PDF plugin.
888 const char kOutOfProcessPdf
[] = "out-of-process-pdf";
890 // Packages an extension to a .crx installable file from a given directory.
891 const char kPackExtension
[] = "pack-extension";
893 // Optional PEM private key to use in signing packaged .crx.
894 const char kPackExtensionKey
[] = "pack-extension-key";
896 // Specifies the path to the user data folder for the parent profile.
897 const char kParentProfile
[] = "parent-profile";
899 // Development flag for permission request API. This flag is needed until
900 // the API is finalized.
901 // TODO(bauerb): Remove when this flag is not needed anymore.
902 const char kPermissionRequestApiScope
[] = "permission-request-api-scope";
904 // Development flag for permission request API. This flag is needed until
905 // the API is finalized.
906 // TODO(bauerb): Remove when this flag is not needed anymore.
907 const char kPermissionRequestApiUrl
[] = "permission-request-api-url";
909 // Read previously recorded data from the cache. Only cached data is read.
911 const char kPlaybackMode
[] = "playback-mode";
913 // Use the PPAPI (Pepper) Flash found at the given path.
914 const char kPpapiFlashPath
[] = "ppapi-flash-path";
916 // Report the given version for the PPAPI (Pepper) Flash. The version should be
917 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
918 // defaults to "10.2.999.999".
919 const char kPpapiFlashVersion
[] = "ppapi-flash-version";
921 // Triggers prerendering of search base page to prefetch results for the typed
922 // omnibox query. Only has an effect when prerender is enabled.
923 const char kPrefetchSearchResults
[] = "prefetch-search-results";
925 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
926 // effect when Instant is either disabled or restricted to search, and when
927 // prerender is enabled.
928 const char kPrerenderFromOmnibox
[] = "prerender-from-omnibox";
929 // These are the values the kPrerenderFromOmnibox switch may have, as in
930 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
931 const char kPrerenderFromOmniboxSwitchValueAuto
[] = "auto";
932 // disabled: No prerendering.
933 const char kPrerenderFromOmniboxSwitchValueDisabled
[] = "disabled";
934 // enabled: Guaranteed prerendering.
935 const char kPrerenderFromOmniboxSwitchValueEnabled
[] = "enabled";
936 // Controls speculative prerendering of pages, and content prefetching. Both
937 // are dispatched from <link rel=prefetch href=...> elements.
938 const char kPrerenderMode
[] = "prerender";
939 // These are the values the kPrerenderMode switch may have, as in
940 // "--prerender=auto".
941 // auto: Allow field trial selection for prerender.
942 const char kPrerenderModeSwitchValueAuto
[] = "auto";
943 // disabled: No prerendering.
944 const char kPrerenderModeSwitchValueDisabled
[] = "disabled";
945 // enabled: Prerendering.
946 const char kPrerenderModeSwitchValueEnabled
[] = "enabled";
948 // Use IPv6 only for privet HTTP.
949 const char kPrivetIPv6Only
[] = "privet-ipv6-only";
951 // Outputs the product version information and quit. Used as an internal api to
952 // detect the installed version of Chrome on Linux.
953 const char kProductVersion
[] = "product-version";
955 // Selects directory of profile to associate with the first browser launched.
956 const char kProfileDirectory
[] = "profile-directory";
958 // Starts the sampling based profiler for the browser process at startup. This
959 // will only work if chrome has been built with the gyp variable profiling=1.
960 // The output will go to the value of kProfilingFile.
961 const char kProfilingAtStart
[] = "profiling-at-start";
963 // Specifies a location for profiling output. This will only work if chrome has
964 // been built with the gyp variable profiling=1.
966 // {pid} if present will be replaced by the pid of the process.
967 // {count} if present will be incremented each time a profile is generated
969 // The default is chrome-profile-{pid}.
970 const char kProfilingFile
[] = "profiling-file";
972 // Specifies a path for the output of task-level profiling which can be loaded
973 // and viewed in about:profiler.
974 const char kProfilingOutputFile
[] = "profiling-output-file";
976 // Controls whether profile data is periodically flushed to a file. Normally
977 // the data gets written on exit but cases exist where chrome doesn't exit
978 // cleanly (especially when using single-process). A time in seconds can be
980 const char kProfilingFlush
[] = "profiling-flush";
982 // Specifies a custom URL for fetching NTP promo data.
983 const char kPromoServerURL
[] = "promo-server-url";
985 // Forces proxy auto-detection.
986 const char kProxyAutoDetect
[] = "proxy-auto-detect";
988 // Specifies a list of hosts for whom we bypass proxy settings and use direct
989 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
990 // specified. This is a comma-separated list of bypass rules. See:
991 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
992 const char kProxyBypassList
[] = "proxy-bypass-list";
994 // Uses the pac script at the given URL
995 const char kProxyPacUrl
[] = "proxy-pac-url";
997 // Uses a specified proxy server, overrides system settings. This switch only
998 // affects HTTP and HTTPS requests.
999 const char kProxyServer
[] = "proxy-server";
1001 // Specifies a comma separated list of QUIC connection options to send to
1003 const char kQuicConnectionOptions
[] = "quic-connection-options";
1005 // Specifies the maximum length for a QUIC packet.
1006 const char kQuicMaxPacketLength
[] = "quic-max-packet-length";
1008 // Specifies the version of QUIC to use.
1009 const char kQuicVersion
[] = "quic-version";
1011 // Chrome supports a playback and record mode. Record mode saves *everything*
1012 // to the cache. Playback mode reads data exclusively from the cache. This
1013 // allows us to record a session into the cache and then replay it at will.
1014 // See also kPlaybackMode.
1015 const char kRecordMode
[] = "record-mode";
1017 // Remember user proceeds through SSL interstitials for a specified amount of
1018 // time. In particular, remember these decisions through session restart. The
1019 // time delta to remember certificates should be specified in seconds.
1020 const char kRememberCertErrorDecisions
[] = "remember-cert-error-decisions";
1022 // If set, the app list will forget it has been installed on startup. Note this
1023 // doesn't prevent the app list from running, it just makes Chrome think the app
1024 // list hasn't been enabled (as in kEnableAppList) yet.
1025 const char kResetAppListInstallState
[] = "reset-app-list-install-state";
1027 // Indicates the last session should be restored on startup. This overrides the
1028 // preferences value and is primarily intended for testing. The value of this
1029 // switch is the number of tabs to wait until loaded before 'load completed' is
1030 // sent to the ui_test.
1031 const char kRestoreLastSession
[] = "restore-last-session";
1033 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1034 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1035 // See http://crbug.com/120416 for how to remove this switch.
1036 const char kSavePageAsMHTML
[] = "save-page-as-mhtml";
1038 // If present, safebrowsing only performs update when
1039 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1040 // This is used for testing only.
1041 const char kSbDisableAutoUpdate
[] = "safebrowsing-disable-auto-update";
1043 // TODO(lzheng): Remove this flag once the feature works fine
1044 // (http://crbug.com/74848).
1046 // Disables safebrowsing feature that checks download url and downloads
1047 // content's hash to make sure the content are not malicious.
1048 const char kSbDisableDownloadProtection
[] =
1049 "safebrowsing-disable-download-protection";
1051 // Disables safebrowsing feature that checks for blacklisted extensions.
1052 const char kSbDisableExtensionBlacklist
[] =
1053 "safebrowsing-disable-extension-blacklist";
1055 // Disables safebrowsing feature that provides a side-effect free whitelist.
1056 const char kSbDisableSideEffectFreeWhitelist
[] =
1057 "safebrowsing-disable-side-effect-free-whitelist";
1059 // Causes the process to run as a service process.
1060 const char kServiceProcess
[] = "service";
1062 // Sets a token in the token service, for testing.
1063 const char kSetToken
[] = "set-token";
1065 // If true the app list will be shown.
1066 const char kShowAppList
[] = "show-app-list";
1069 const char kShowIcons
[] = "show-icons";
1071 // Marks a renderer as the signin process.
1072 const char kSigninProcess
[] = "signin-process";
1074 // Does not show an infobar when an extension attaches to a page using
1075 // chrome.debugger page. Required to attach to extension background pages.
1076 const char kSilentDebuggerExtensionAPI
[] = "silent-debugger-extension-api";
1078 // Causes Chrome to launch without opening any windows by default. Useful if
1079 // one wishes to use Chrome as an ash server.
1080 const char kSilentLaunch
[] = "silent-launch";
1082 // Simulates an update being available.
1083 const char kSimulateUpgrade
[] = "simulate-upgrade";
1085 // Simulates a critical update being available.
1086 const char kSimulateCriticalUpdate
[] = "simulate-critical-update";
1088 // Simulates that current version is outdated.
1089 const char kSimulateOutdated
[] = "simulate-outdated";
1091 // Simulates that current version is outdated and auto-update is off.
1092 const char kSimulateOutdatedNoAU
[] = "simulate-outdated-no-au";
1094 // Speculative resource prefetching.
1095 const char kSpeculativeResourcePrefetching
[] =
1096 "speculative-resource-prefetching";
1098 // Speculative resource prefetching is disabled.
1099 const char kSpeculativeResourcePrefetchingDisabled
[] = "disabled";
1101 // Speculative resource prefetching will only learn about resources that need to
1102 // be prefetched but will not prefetch them.
1103 const char kSpeculativeResourcePrefetchingLearning
[] = "learning";
1105 // Speculative resource prefetching is enabled.
1106 const char kSpeculativeResourcePrefetchingEnabled
[] = "enabled";
1108 #if defined(ENABLE_SPELLCHECK)
1109 // Enables auto correction for misspelled words.
1110 const char kEnableSpellingAutoCorrect
[] = "enable-spelling-auto-correct";
1112 // Enables participation in the field trial for user feedback to spelling
1114 const char kEnableSpellingFeedbackFieldTrial
[] =
1115 "enable-spelling-feedback-field-trial";
1117 // Specifies the URL where spelling service feedback data will be sent instead
1118 // of the default URL. This switch is for temporary testing only.
1119 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1121 const char kSpellingServiceFeedbackUrl
[] = "spelling-service-feedback-url";
1123 // Specifies the number of seconds between sending batches of feedback to
1124 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This
1125 // switch is for temporary testing only.
1126 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1128 const char kSpellingServiceFeedbackIntervalSeconds
[] =
1129 "spelling-service-feedback-interval-seconds";
1132 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1134 const char kSSLVersionMax
[] = "ssl-version-max";
1136 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1138 const char kSSLVersionMin
[] = "ssl-version-min";
1140 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1141 // "tls1.2") that TLS fallback will accept.
1142 const char kSSLVersionFallbackMin
[] = "ssl-version-fallback-min";
1144 // These values aren't switches, but rather the values that kSSLVersionMax,
1145 // kSSLVersionMin and kSSLVersionFallbackMin can have.
1146 const char kSSLVersionSSLv3
[] = "ssl3";
1147 const char kSSLVersionTLSv1
[] = "tls1";
1148 const char kSSLVersionTLSv11
[] = "tls1.1";
1149 const char kSSLVersionTLSv12
[] = "tls1.2";
1151 // Starts the browser maximized, regardless of any previous settings.
1152 const char kStartMaximized
[] = "start-maximized";
1154 // Sets the supervised user ID for any loaded or newly created profile to the
1155 // given value. Pass an empty string to mark the profile as non-supervised.
1156 // Used for testing.
1157 const char kSupervisedUserId
[] = "managed-user-id";
1159 // Used to authenticate requests to the Sync service for supervised users.
1160 // Setting this switch also causes Sync to be set up for a supervised user.
1161 const char kSupervisedUserSyncToken
[] = "managed-user-sync-token";
1163 // This flag causes sync to retry very quickly (see polling_constants.h) the
1164 // when it encounters an error, as the first step towards exponential backoff.
1165 const char kSyncShortInitialRetryOverride
[] =
1166 "sync-short-initial-retry-override";
1168 // Overrides the default server used for profile sync.
1169 const char kSyncServiceURL
[] = "sync-url";
1171 // Enables deferring sync backend initialization until user initiated changes
1173 const char kSyncDisableDeferredStartup
[] = "sync-disable-deferred-startup";
1175 // Allows overriding the deferred init fallback timeout.
1176 const char kSyncDeferredStartupTimeoutSeconds
[] =
1177 "sync-deferred-startup-timeout-seconds";
1179 // Enables feature to avoid unnecessary GetUpdate requests.
1180 const char kSyncEnableGetUpdateAvoidance
[] =
1181 "sync-enable-get-update-avoidance";
1183 // Disable data backup when user's not signed in.
1184 const char kSyncDisableBackup
[] = "disable-sync-backup";
1186 // Disable sync rollback.
1187 const char kSyncDisableRollback
[] = "disable-sync-rollback";
1189 // Passes the name of the current running automated test to Chrome.
1190 const char kTestName
[] = "test-name";
1192 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1193 // The value is the host:port of the trusted proxy.
1194 const char kTrustedSpdyProxy
[] = "trusted-spdy-proxy";
1196 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1197 // be used only by the upgrade process.
1198 const char kTryChromeAgain
[] = "try-chrome-again";
1200 // Runs un-installation steps that were done by chrome first-run.
1201 const char kUninstall
[] = "uninstall";
1203 // Overrides per-origin quota settings to unlimited storage for any
1204 // apps/origins. This should be used only for testing purpose.
1205 const char kUnlimitedStorage
[] = "unlimited-storage";
1207 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1209 const char kUseSpdy
[] = "use-spdy";
1211 // A string used to override the default user agent with a custom one.
1212 const char kUserAgent
[] = "user-agent";
1214 // Specifies the user data directory, which is where the browser will look for
1215 // all of its state.
1216 const char kUserDataDir
[] = "user-data-dir";
1218 // Examines a .crx for validity and prints the result.
1219 const char kValidateCrx
[] = "validate-crx";
1221 // Uses experimental simple cache backend if possible.
1222 const char kUseSimpleCacheBackend
[] = "use-simple-cache-backend";
1224 // Specifies a custom URL for the server which reports variation data to the
1225 // client. Specifying this switch enables the Variations service on
1226 // unofficial builds. See variations_service.cc.
1227 const char kVariationsServerURL
[] = "variations-server-url";
1229 // Prints version information and quits.
1230 const char kVersion
[] = "version";
1232 // Specify the initial window position: --window-position=x,y
1233 const char kWindowPosition
[] = "window-position";
1235 // Specify the initial window size: --window-size=w,h
1236 const char kWindowSize
[] = "window-size";
1238 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1239 // use Chromium's network stack to fetch, and V8 to evaluate.
1240 const char kWinHttpProxyResolver
[] = "winhttp-proxy-resolver";
1242 // Specifies which category option was clicked in the Windows Jumplist that
1243 // resulted in a browser startup.
1244 const char kWinJumplistAction
[] = "win-jumplist-action";
1246 #if defined(ENABLE_PLUGIN_INSTALLATION)
1247 // Specifies a custom URL for fetching plug-ins metadata. Used for testing.
1248 const char kPluginsMetadataServerURL
[] = "plugins-metadata-server-url";
1251 #if defined(OS_ANDROID)
1252 // Disables support for playing videos on Chromecast devices.
1253 const char kDisableCast
[] = "disable-cast";
1255 // Disables Contextual Search.
1256 const char kDisableContextualSearch
[] = "disable-contextual-search";
1258 // Disables zero suggest experiment on Dev channel.
1259 const char kDisableZeroSuggest
[] = "disable-zero-suggest";
1261 // Enable the accessibility tab switcher.
1262 const char kEnableAccessibilityTabSwitcher
[] =
1263 "enable-accessibility-tab-switcher";
1265 // Enables app install alerts.
1266 const char kEnableAppInstallAlerts
[] = "enable-app-install-alerts";
1268 // Enables Contextual Search.
1269 const char kEnableContextualSearch
[] = "enable-contextual-search";
1271 // Enables zero suggest functionality on Dev channel, showing most visited
1272 // sites as default suggestions.
1273 const char kEnableZeroSuggestMostVisited
[] =
1274 "enable-zero-suggest-most-visited";
1276 // Enable zero suggest functionality on Dev channel, showing most visited
1277 // sites on non-search-result pages as default suggestions.
1278 const char kEnableZeroSuggestMostVisitedWithoutSerp
[] =
1279 "enable-zero-suggest-most-visited-without-serp";
1281 // Enables instant search clicks feature.
1282 const char kEnableInstantSearchClicks
[] = "enable-instant-search-clicks";
1286 #if defined(USE_ASH)
1287 const char kOpenAsh
[] = "open-ash";
1290 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1291 // Specifies which password store to use (detect, default, gnome, kwallet).
1292 const char kPasswordStore
[] = "password-store";
1295 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1296 // Triggers migration of user data directory to another directory
1297 // specified as a parameter. The migration is done under singleton lock,
1298 // and sanity checks are made to avoid corrupting the profile.
1299 // The browser exits after migration is complete.
1300 const char kMigrateDataDirForSxS
[] = "migrate-data-dir-for-sxs";
1301 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1303 #if defined(OS_MACOSX)
1304 // Prevents Chrome from quitting when Chrome Apps are open.
1305 const char kAppsKeepChromeAliveInTests
[] = "apps-keep-chrome-alive-in-tests";
1307 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1308 // older, SnowLeopard-style fullscreen.
1309 const char kDisableSystemFullscreenForTesting
[] =
1310 "disable-system-fullscreen-for-testing";
1312 // A process type (switches::kProcessType) that relaunches the browser. See
1313 // chrome/browser/mac/relauncher.h.
1314 const char kRelauncherProcess
[] = "relauncher";
1318 // Use bubbles for content permissions requests instead of infobars.
1319 const char kEnablePermissionsBubbles
[] = "enable-permissions-bubbles";
1322 // Fallback to XPS. By default connector uses CDD.
1323 const char kEnableCloudPrintXps
[] = "enable-cloud-print-xps";
1325 // Force-enables the profile shortcut manager. This is needed for tests since
1326 // they use a custom-user-data-dir which disables this.
1327 const char kEnableProfileShortcutManager
[] = "enable-profile-shortcut-manager";
1329 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1330 // Windows 8 and higher. Used when relaunching metro Chrome.
1331 const char kForceImmersive
[] = "force-immersive";
1333 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1334 // Windows 8 and higher. Used when relaunching metro Chrome.
1335 const char kForceDesktop
[] = "force-desktop";
1337 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1338 const char kRelaunchShortcut
[] = "relaunch-shortcut";
1340 // Requests that Chrome launch the Metro viewer process via the given appid
1341 // (which is assumed to be registered as default browser) and synchronously
1343 const char kViewerLaunchViaAppId
[] = "viewer-launch-via-appid";
1345 // Waits for the given handle to be signaled before relaunching metro Chrome on
1346 // Windows 8 and higher.
1347 const char kWaitForMutex
[] = "wait-for-mutex";
1349 // Indicates that chrome was launched to service a search request in Windows 8.
1350 const char kWindows8Search
[] = "windows8-search";
1353 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1354 // Enables support to debug printing subsystem.
1355 const char kDebugPrint
[] = "debug-print";
1359 // Enables overriding the path of file manager extension.
1360 const char kFileManagerExtensionPath
[] = "filemgr-ext-path";
1363 bool AboutInSettingsEnabled() {
1364 return SettingsWindowEnabled() &&
1365 !CommandLine::ForCurrentProcess()->HasSwitch(
1366 ::switches::kDisableAboutInSettings
);
1369 bool SettingsWindowEnabled() {
1370 #if defined(OS_CHROMEOS)
1371 return !CommandLine::ForCurrentProcess()->HasSwitch(
1372 ::switches::kDisableSettingsWindow
);
1374 return CommandLine::ForCurrentProcess()->HasSwitch(
1375 ::switches::kEnableSettingsWindow
);
1379 #if defined(OS_CHROMEOS)
1380 bool PowerOverlayEnabled() {
1381 return CommandLine::ForCurrentProcess()->HasSwitch(
1382 ::switches::kEnablePowerOverlay
);
1386 // -----------------------------------------------------------------------------
1387 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1389 // You were going to just dump your switches here, weren't you? Instead, please
1390 // put them in alphabetical order above, or in order inside the appropriate
1391 // ifdef at the bottom. The order should match the header.
1392 // -----------------------------------------------------------------------------
1394 } // namespace switches