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 // Overrides the apps checkout URL, which is used to determine when to expose
82 const char kAppsCheckoutURL
[] = "apps-checkout-url";
84 // The URL that the webstore APIs download extensions from.
85 // Note: the URL must contain one '%s' for the extension ID.
86 const char kAppsGalleryDownloadURL
[] = "apps-gallery-download-url";
88 // The URL to use for the gallery link in the app launcher.
89 const char kAppsGalleryURL
[] = "apps-gallery-url";
91 // The update url used by gallery/webstore extensions.
92 const char kAppsGalleryUpdateURL
[] = "apps-gallery-update-url";
94 // Value of GAIA auth code for --force-app-mode.
95 const char kAppModeAuthCode
[] = "app-mode-auth-code";
97 // Value of OAuth2 refresh token for --force-app-mode.
98 const char kAppModeOAuth2Token
[] = "app-mode-oauth-token";
100 // Enables overriding the path for the default authentication extension.
101 const char kAuthExtensionPath
[] = "auth-ext-path";
103 // Whitelist of servers that Negotiate will generate delegated Kerberos tickets
105 const char kAuthNegotiateDelegateWhitelist
[] =
106 "auth-negotiate-delegate-whitelist";
108 // HTTP authentication schemes to enable. This is a comma-separated list of
109 // authentication schemes (basic, digest, ntlm, and negotiate). By default all
110 // schemes are enabled. The primary use of this command line flag is to help
111 // triage authentication-related issues reported by end-users.
112 const char kAuthSchemes
[] = "auth-schemes";
114 // Whitelist of servers which NTLM and Negotiate can automatically authenticate
115 // with using the default credentials of the currently logged in user.
116 const char kAuthServerWhitelist
[] = "auth-server-whitelist";
118 // A flag that is used to tell Chrome that it was launched automatically at
119 // computer startup and not by some user action.
120 const char kAutoLaunchAtStartup
[] = "auto-launch-at-startup";
122 // This flag makes Chrome auto-select the provided choice when an extension asks
123 // permission to start desktop capture. Should only be used for tests. For
124 // instance, --auto-select-desktop-capture-source="Entire screen" will
125 // automatically select to share the entire screen in English locales.
126 const char kAutoSelectDesktopCaptureSource
[] =
127 "auto-select-desktop-capture-source";
129 // Certificate Transparency: Uses the provided log(s) for checking Signed
130 // Certificate Timestamps provided with certificates.
131 // The switch's value is:
132 // log_description:log_key,log_description:log_key,...
134 // log_description is a textual description of the log.
135 // log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
137 // Multiple logs can be specified by repeating description:key pairs,
138 // separated by a comma.
139 const char kCertificateTransparencyLog
[] =
140 "certificate-transparency-log";
142 // How often (in seconds) to check for updates. Should only be used for testing
144 const char kCheckForUpdateIntervalSec
[] = "check-for-update-interval";
146 // Checks the cloud print connector policy, informing the service process if
147 // the policy is set to disallow the connector, then quits.
148 const char kCheckCloudPrintConnectorPolicy
[] =
149 "check-cloud-print-connector-policy";
151 // Comma-separated list of SSL cipher suites to disable.
152 const char kCipherSuiteBlacklist
[] = "cipher-suite-blacklist";
154 // Tells chrome to display the cloud print dialog and upload the specified file
156 const char kCloudPrintFile
[] = "cloud-print-file";
158 // Specifies the mime type to be used when uploading data from the file
159 // referenced by cloud-print-file. Defaults to "application/pdf" if
161 const char kCloudPrintFileType
[] = "cloud-print-file-type";
163 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
164 // print job. Defaults to null if unspecified.
165 const char kCloudPrintPrintTicket
[] = "cloud-print-print-ticket";
167 // Used with kCloudPrintFile to specify a title for the resulting print job.
168 const char kCloudPrintJobTitle
[] = "cloud-print-job-title";
170 // Setup cloud print proxy for provided printers. This does not start
171 // service or register proxy for autostart.
172 const char kCloudPrintSetupProxy
[] = "cloud-print-setup-proxy";
174 // Comma-separated list of BrowserThreads that cause browser process to crash
175 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
176 // list of BrowserThreads that are supported.
179 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
180 // is not responsive for 18 seconds and the number of browser threads that
181 // are responding is less than or equal to 3.
182 const char kCrashOnHangThreads
[] = "crash-on-hang-threads";
184 // Some platforms like ChromeOS default to empty desktop.
185 // Browser tests may need to add this switch so that at least one browser
186 // instance is created on startup.
187 // TODO(nkostylev): Investigate if this switch could be removed.
188 // (http://crbug.com/148675)
189 const char kCreateBrowserOnStartupForTests
[] =
190 "create-browser-on-startup-for-tests";
192 // Enables a frame context menu item that toggles the frame in and out of glass
193 // mode (Windows Vista and up only).
194 const char kDebugEnableFrameToggle
[] = "debug-enable-frame-toggle";
196 // Adds debugging entries such as Inspect Element to context menus of packed
198 const char kDebugPackedApps
[] = "debug-packed-apps";
200 // Triggers a plethora of diagnostic modes.
201 const char kDiagnostics
[] = "diagnostics";
203 // Sets the output format for diagnostic modes enabled by diagnostics flag.
204 const char kDiagnosticsFormat
[] = "diagnostics-format";
206 // Tells the diagnostics mode to do the requested recovery step(s).
207 const char kDiagnosticsRecovery
[] = "diagnostics-recovery";
209 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings
210 // instead of as a separate page, unless this flag is specified.
211 const char kDisableAboutInSettings
[] = "disable-about-in-settings";
213 // Disables the experimental asynchronous DNS client.
214 const char kDisableAsyncDns
[] = "disable-async-dns";
216 // Disables CNAME lookup of the host when generating the Kerberos SPN for a
217 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
219 const char kDisableAuthNegotiateCnameLookup
[] =
220 "disable-auth-negotiate-cname-lookup";
222 // Disable several subsystems which run network requests in the background.
223 // This is for use when doing network performance testing to avoid noise in the
225 const char kDisableBackgroundNetworking
[] = "disable-background-networking";
227 // Disables the bundled PPAPI version of Flash.
228 const char kDisableBundledPpapiFlash
[] = "disable-bundled-ppapi-flash";
230 // Disable hardware encoding support for Cast Streaming.
231 const char kDisableCastStreamingHWEncoding
[] =
232 "disable-cast-streaming-hw-encoding";
234 // Disables the client-side phishing detection feature. Note that even if
235 // client-side phishing detection is enabled, it will only be active if the
236 // user has opted in to UMA stats and SafeBrowsing is enabled in the
238 const char kDisableClientSidePhishingDetection
[] =
239 "disable-client-side-phishing-detection";
241 // Disable default component extensions with background pages - useful for
242 // performance tests where these pages may interfere with perf results.
243 const char kDisableComponentExtensionsWithBackgroundPages
[] =
244 "disable-component-extensions-with-background-pages";
246 const char kDisableComponentUpdate
[] = "disable-component-update";
248 // Disables installation of default apps on first run. This is used during
249 // automated testing.
250 const char kDisableDefaultApps
[] = "disable-default-apps";
252 // Disables device discovery notifications.
253 const char kDisableDeviceDiscoveryNotifications
[] =
254 "disable-device-discovery-notifications";
256 // Disables Domain Reliability Monitoring.
257 const char kDisableDomainReliability
[] = "disable-domain-reliability";
259 // Disable extensions.
260 const char kDisableExtensions
[] = "disable-extensions";
262 // Disable checking for user opt-in for extensions that want to inject script
263 // into file URLs (ie, always allow it). This is used during automated testing.
264 const char kDisableExtensionsFileAccessCheck
[] =
265 "disable-extensions-file-access-check";
267 // Disable the net::URLRequestThrottlerManager functionality for
268 // requests originating from extensions.
269 const char kDisableExtensionsHttpThrottling
[] =
270 "disable-extensions-http-throttling";
272 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
273 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
274 // bugs if something isn't working properly in the presence of IPv6. This flag
275 // can be overidden by the "enable-ipv6" flag.
276 const char kDisableIPv6
[] = "disable-ipv6";
278 // Disable the behavior that the second click on a launcher item (the click when
279 // the item is already active) minimizes the item.
280 const char kDisableMinimizeOnSecondLauncherItemClick
[] =
281 "disable-minimize-on-second-launcher-item-click";
283 // Disables the new bookmark app system.
284 const char kDisableNewBookmarkApps
[] = "disable-new-bookmark-apps";
286 // Disables the menu on the NTP for accessing sessions from other devices.
287 const char kDisableNTPOtherSessionsMenu
[] = "disable-ntp-other-sessions-menu";
289 // Disable auto-reload of error pages if offline.
290 const char kDisableOfflineAutoReload
[] = "disable-offline-auto-reload";
292 // Disable only auto-reloading error pages when the tab is visible.
293 const char kDisableOfflineAutoReloadVisibleOnly
[] =
294 "disable-offline-auto-reload-visible-only";
296 // Disable the origin chip.
297 const char kDisableOriginChip
[] = "disable-origin-chip";
299 // Disable the out of process PDF plugin.
300 const char kDisableOutOfProcessPdf
[] = "disable-out-of-process-pdf";
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 // Disables syncing one or more sync data types that are on by default.
367 // See sync/internal_api/public/base/model_type.h for possible types. Types
368 // should be comma separated, and follow the naming convention for string
369 // representation of model types, e.g.:
370 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles'
371 const char kDisableSyncTypes
[] = "disable-sync-types";
373 // Disables the backend service for web resources.
374 const char kDisableWebResources
[] = "disable-web-resources";
376 // Some tests seem to require the application to close when the last
377 // browser window is closed. Thus, we need a switch to force this behavior
378 // for ChromeOS Aura, disable "zero window mode".
379 // TODO(pkotwicz): Investigate if this bug can be removed.
380 // (http://crbug.com/119175)
381 const char kDisableZeroBrowsersOpenForTests
[] =
382 "disable-zero-browsers-open-for-tests";
384 // Use a specific disk cache location, rather than one derived from the
386 const char kDiskCacheDir
[] = "disk-cache-dir";
388 // Forces the maximum disk space to be used by the disk cache, in bytes.
389 const char kDiskCacheSize
[] = "disk-cache-size";
391 const char kDnsLogDetails
[] = "dns-log-details";
393 // Disables prefetching of DNS information.
394 const char kDnsPrefetchDisable
[] = "dns-prefetch-disable";
396 // Requests that a running browser process dump its collected histograms to a
397 // given file. The file is overwritten if it exists.
398 const char kDumpBrowserHistograms
[] = "dump-browser-histograms";
400 // Overrides the path of Easy Unlock component app.
401 extern const char kEasyUnlockAppPath
[] = "easy-unlock-app-path";
403 // If set, the app list will be enabled as if enabled from CWS.
404 const char kEnableAppList
[] = "enable-app-list";
406 // Enable OS integration for Chrome app file associations.
407 const char kEnableAppsFileAssociations
[] = "enable-apps-file-associations";
409 // Enables the experimental asynchronous DNS client.
410 const char kEnableAsyncDns
[] = "enable-async-dns";
412 // Enables the inclusion of non-standard ports when generating the Kerberos SPN
413 // in response to a Negotiate challenge. See
414 // HttpAuthHandlerNegotiate::CreateSPN for more background.
415 const char kEnableAuthNegotiatePort
[] = "enable-auth-negotiate-port";
417 // Enables the benchmarking extensions.
418 const char kEnableBenchmarking
[] = "enable-benchmarking";
420 // Enables client hints, which adds hints about browser state to HTTP requests.
421 const char kEnableClientHints
[] = "enable-client-hints";
423 // Enables the multi-level undo system for bookmarks.
424 const char kEnableBookmarkUndo
[] = "enable-bookmark-undo";
426 // This applies only when the process type is "service". Enables the Cloud
427 // Print Proxy component within the service process.
428 const char kEnableCloudPrintProxy
[] = "enable-cloud-print-proxy";
430 // If true devtools experimental settings are enabled.
431 const char kEnableDevToolsExperiments
[] = "enable-devtools-experiments";
433 // Enable device discovery notifications.
434 const char kEnableDeviceDiscoveryNotifications
[] =
435 "enable-device-discovery-notifications";
437 // Enables the DOM distiller.
438 const char kEnableDomDistiller
[] = "enable-dom-distiller";
440 // Enables Domain Reliability Monitoring.
441 const char kEnableDomainReliability
[] = "enable-domain-reliability";
443 // Enable Enhanced Bookmarks.
444 const char kEnhancedBookmarksExperiment
[] = "enhanced-bookmarks-experiment";
446 // Enables experimentation with ephemeral apps to be launched from the webstore.
447 const char kEnableEphemeralAppsInWebstore
[] =
448 "enable-ephemeral-apps-in-webstore";
450 // Disables v2 hotword detection features. These features include
451 // using a new component extension for performing hotword detection, new UI
452 // flows, and always-on detection.
453 const char kDisableExperimentalHotwording
[] = "disable-experimental-hotwording";
455 // Enables experimental hotword features specific to always-on.
456 const char kEnableExperimentalHotwordHardware
[] = "enable-hotword-hardware";
458 // Enables logging for extension activity.
459 const char kEnableExtensionActivityLogging
[] =
460 "enable-extension-activity-logging";
462 const char kEnableExtensionActivityLogTesting
[] =
463 "enable-extension-activity-log-testing";
465 // Enable the fast unload controller, which speeds up tab/window close by
466 // running a tab's onunload js handler independently of the GUI -
467 // crbug.com/142458 .
468 const char kEnableFastUnload
[] = "enable-fast-unload";
470 // Enables IPv6 support, even if probes suggest that it may not be fully
471 // supported. Some probes may require internet connections, and this flag will
472 // allow support independent of application testing. This flag overrides
473 // "disable-ipv6" which appears elswhere in this file.
474 const char kEnableIPv6
[] = "enable-ipv6";
476 // Enables experimentation with launching ephemeral apps via hyperlinks.
477 const char kEnableLinkableEphemeralApps
[] = "enable-linkable-ephemeral-apps";
479 // Runs the Native Client inside the renderer process and enables GPU plugin
480 // (internally adds lEnableGpuPlugin to the command line).
481 const char kEnableNaCl
[] = "enable-nacl";
483 // Enables the network-related benchmarking extensions.
484 const char kEnableNetBenchmarking
[] = "enable-net-benchmarking";
486 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
487 // HTTP is still used for all requests.
488 const char kEnableNpnHttpOnly
[] = "enable-npn-http";
490 // Enable auto-reload of error pages if offline.
491 const char kEnableOfflineAutoReload
[] = "enable-offline-auto-reload";
493 // Only auto-reload error pages when the tab is visible.
494 const char kEnableOfflineAutoReloadVisibleOnly
[] =
495 "enable-offline-auto-reload-visible-only";
497 // Enable/Disable offering a "Load stale copy" option to the user if offline.
498 const char kEnableOfflineLoadStaleCache
[] = "enable-offline-load-stale-cache";
499 const char kDisableOfflineLoadStaleCache
[] =
500 "disable-offline-load-stale-cache";
502 // Controls which branch of the origin chip in location bar experiment is
505 // We're using independent flags here (as opposed to a common flag with
506 // different values) to be able to enable/disable the entire experience
507 // associated with this feature server-side from the FieldTrial (the complete
508 // experience includes other flag changes as well). It is not currently possible
509 // to do that with "flag=value" flags.
510 const char kEnableOriginChipAlways
[] = "enable-origin-chip-always";
511 const char kEnableOriginChipOnSrp
[] = "enable-origin-chip-on-srp";
513 // Enable the out of process PDF plugin.
514 const char kEnableOutOfProcessPdf
[] = "enable-out-of-process-pdf";
516 // Enables panels (always on-top docked pop-up windows).
517 const char kEnablePanels
[] = "enable-panels";
519 // Enables presenting plugin placeholder content as shadow DOM.
520 const char kEnablePluginPlaceholderShadowDom
[] =
521 "enable-plugin-placeholder-shadow-dom";
523 // Enables the Power overlay in Settings.
524 const char kEnablePowerOverlay
[] = "enable-power-overlay";
526 // Enables showing unregistered printers in print preview
527 const char kEnablePrintPreviewRegisterPromos
[] =
528 "enable-print-preview-register-promos";
530 // Enable Privet storage.
531 const char kEnablePrivetStorage
[] = "enable-privet-storage";
533 // Enables tracking of tasks in profiler for viewing via about:profiler.
534 // To predominantly disable tracking (profiling), use the command line switch:
535 // --enable-profiling=0
536 // Some tracking will still take place at startup, but it will be turned off
537 // during chrome_browser_main.
538 const char kEnableProfiling
[] = "enable-profiling";
540 // Enables query in the omnibox.
541 const char kEnableQueryExtraction
[] = "enable-query-extraction";
543 // Enables support for the QUIC protocol. This is a temporary testing flag.
544 const char kEnableQuic
[] = "enable-quic";
546 // Disable use of pacing of QUIC packets.
547 // This only has an effect if QUIC protocol is enabled.
548 const char kEnableQuicPacing
[] = "enable-quic-pacing";
550 // Enable use of Chromium's port selection for the ephemeral port via bind().
551 // This only has an effect if QUIC protocol is enabled.
552 const char kEnableQuicPortSelection
[] = "enable-quic-port-selection";
554 // Enables context-sensitive reader mode button in the toolbar.
555 const char kEnableReaderModeToolbarIcon
[] =
556 "enable-reader-mode-toolbar-icon";
558 // Enables save password prompt bubble.
559 const char kEnableSavePasswordBubble
[] = "enable-save-password-bubble";
561 // Enables SDCH for https schemes.
562 const char kEnableSdchOverHttps
[] = "enable-sdch-over-https";
564 // Controls which branch of the "search button in omnibox" experiment is
567 // We're using independent flags here (as opposed to a common flag with
568 // different values) to be able to enable/disable the entire experience
569 // associated with this feature server-side from the FieldTrial (the complete
570 // experience includes other flag changes as well). It is not currently possible
571 // to do that with "flag=value" flags.
572 const char kEnableSearchButtonInOmniboxAlways
[] =
573 "enable-search-button-in-omnibox-always";
574 const char kEnableSearchButtonInOmniboxForStr
[] =
575 "enable-search-button-in-omnibox-for-str";
576 const char kEnableSearchButtonInOmniboxForStrOrIip
[] =
577 "enable-search-button-in-omnibox-for-str-or-iip";
579 // Enables using bubbles for session restore request instead of infobars.
580 const char kEnableSessionCrashedBubble
[] = "enable-session-crashed-bubble";
582 // Enables the deprecated window.showModalDialog API. This is slated for
584 const char kEnableShowModalDialog
[] = "enable-show-modal-dialog";
586 // Enable or disable settings in a separate browser window per profile
587 // (see SettingsWindowEnabled() below).
588 const char kEnableSettingsWindow
[] = "enable-settings-window";
589 const char kDisableSettingsWindow
[] = "disable-settings-window";
591 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag.
592 const char kEnableSpdy4
[] = "enable-spdy4";
594 // Enables a feature that holds back some SSLConnectJobs in order to
595 // minimize the number of full SSL handshakes completed.
596 const char kEnableSSLConnectJobWaiting
[] = "enable-ssl-connect-job-waiting";
598 // Enables implementation of the Cache-Control: stale-while-revalidate directive
599 // which permits servers to allow the use of stale resources while revalidation
600 // proceeds in the background.
601 const char kEnableStaleWhileRevalidate
[] = "enable-stale-while-revalidate";
603 // Enables the suggestions service.
604 const char kEnableSuggestionsService
[] = "enable-suggestions-service";
606 // Enables the supervised user host blacklist.
607 const char kEnableSupervisedUserBlacklist
[] =
608 "enable-supervised-user-blacklist";
610 // Enables SafeSites filtering for supervised users.
611 const char kEnableSupervisedUserSafeSites
[] =
612 "enable-supervised-user-safesites";
614 // Enables synced articles.
615 const char kEnableSyncArticles
[] = "enable-sync-articles";
617 // Enables user control over muting tab audio from the tab strip.
618 const char kEnableTabAudioMuting
[] = "enable-tab-audio-muting";
620 // Enables fanciful thumbnail processing. Used with NTP for
621 // instant-extended-api, where thumbnails are generally smaller.
622 const char kEnableThumbnailRetargeting
[] = "enable-thumbnail-retargeting";
624 // Enables Translate experimental new UX which replaces the infobar.
625 const char kEnableTranslateNewUX
[] = "enable-translate-new-ux";
627 // Enables Alternate-Protocol when the port is user controlled (> 1024).
628 const char kEnableUserAlternateProtocolPorts
[] =
629 "enable-user-controlled-alternate-protocol-ports";
631 // Enables the Website Settings page on the Settings page.
632 const char kEnableWebsiteSettingsManager
[] = "enable-website-settings-manager";
634 // Explicitly allows additional ports using a comma-separated list of port
636 const char kExplicitlyAllowedPorts
[] = "explicitly-allowed-ports";
638 // Values for the kExtensionContentVerification flag.
639 // See ContentVerifierDelegate::Mode for more explanation.
640 const char kExtensionContentVerificationBootstrap
[] = "bootstrap";
641 const char kExtensionContentVerificationEnforceStrict
[] = "enforce_strict";
642 const char kExtensionContentVerificationEnforce
[] = "enforce";
644 // Name of the command line flag to force content verification to be on in one
646 const char kExtensionContentVerification
[] = "extension-content-verification";
648 // Turns on extension install verification if it would not otherwise have been
650 const char kExtensionsInstallVerification
[] = "extensions-install-verification";
652 // Specifies a comma-separated list of extension ids that should be forced to
653 // be treated as not from the webstore when doing install verification.
654 const char kExtensionsNotWebstore
[] = "extensions-not-webstore";
656 // Frequency in seconds for Extensions auto-update.
657 const char kExtensionsUpdateFrequency
[] = "extensions-update-frequency";
659 // Fakes the channel of the browser for purposes of Variations filtering. This
660 // is to be used for testing only. Possible values are "stable", "beta", "dev"
661 // and "canary". Note that this only applies if the browser's reported channel
663 const char kFakeVariationsChannel
[] = "fake-variations-channel";
665 // If this flag is present then this command line is being delegated to an
666 // already running chrome process via the fast path, ie: before chrome.dll is
667 // loaded. It is useful to tell the difference for tracking purposes.
668 const char kFastStart
[] = "fast-start";
670 // These two flags are added around the switches about:flags adds to the
671 // command line. This is useful to see which switches were added by about:flags
672 // on about:version. They don't have any effect.
673 const char kFlagSwitchesBegin
[] = "flag-switches-begin";
674 const char kFlagSwitchesEnd
[] = "flag-switches-end";
676 // Forces application mode. This hides certain system UI elements and forces
677 // the app to be installed if it hasn't been already.
678 const char kForceAppMode
[] = "force-app-mode";
680 // Displays the First Run experience when the browser is started, regardless of
681 // whether or not it's actually the First Run (this overrides kNoFirstRun).
682 const char kForceFirstRun
[] = "force-first-run";
684 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
685 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
686 // prefixed with the character "t" will be treated as Trigger Variation Ids.
687 const char kForceVariationIds
[] = "force-variation-ids";
689 // Specifies a custom name for the GSSAPI library to load.
690 const char kGSSAPILibraryName
[] = "gssapi-library-name";
692 // These flags show the man page on Linux. They are equivalent to each
694 const char kHelp
[] = "help";
695 const char kHelpShort
[] = "h";
697 // Makes Windows happy by allowing it to show "Enable access to this program"
698 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
699 // shows an error box because the only way to hide Chrome is by uninstalling
701 const char kHideIcons
[] = "hide-icons";
703 // Enables grouping websites by domain and filtering them by period.
704 const char kHistoryEnableGroupByDomain
[] = "enable-grouped-history";
706 // Specifies which page will be displayed in newly-opened tabs. We need this
707 // for testing purposes so that the UI tests don't depend on what comes up for
708 // http://google.com.
709 const char kHomePage
[] = "homepage";
711 // Comma-separated list of rules that control how hostnames are mapped.
714 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
715 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
716 // resolved to "proxy".
717 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
718 // Will also force the port of the resulting
719 // socket address to be 77.
720 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
721 // except for "www.google.com".
723 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
724 // connect and host resolver in a direct connection, and the CONNECT in an http
725 // proxy connection, and the endpoint host in a SOCKS proxy connection).
726 const char kHostRules
[] = "host-rules";
728 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow
729 // (not counting backup attempts which would also consume threads).
730 // --host-resolver-retry-attempts must be set to zero for this to be exact.
731 const char kHostResolverParallelism
[] = "host-resolver-parallelism";
733 // The maximum number of retry attempts to resolve the host. Set this to zero
734 // to disable host resolver retry attempts.
735 const char kHostResolverRetryAttempts
[] = "host-resolver-retry-attempts";
737 // Causes net::URLFetchers to ignore requests for SSL client certificates,
738 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
739 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
740 // kSyncServiceURL, etc)
741 const char kIgnoreUrlFetcherCertRequests
[] =
742 "ignore-urlfetcher-cert-requests";
744 // Causes the browser to launch directly in incognito mode.
745 const char kIncognito
[] = "incognito";
747 // Causes Chrome to initiate an installation flow for the given app.
748 const char kInstallChromeApp
[] = "install-chrome-app";
750 // Causes Chrome to attempt to get metadata from the webstore for the
751 // app/extension ID given, and then prompt the user to download and install it.
752 // This is allowed *only* for ephemeral apps. All other ids will be ignored.
753 const char kInstallEphemeralAppFromWebstore
[] =
754 "install-ephemeral-app-from-webstore";
756 // Marks a renderer as an Instant process.
757 const char kInstantProcess
[] = "instant-process";
759 // Invalidation service should use GCM network channel even if experiment is not
761 const char kInvalidationUseGCMChannel
[] = "invalidation-use-gcm-channel";
763 // Disable latest shipping ECMAScript 6 features.
764 const char kDisableJavaScriptHarmonyShipping
[] =
765 "disable-javascript-harmony-shipping";
767 // Enables experimental Harmony (ECMAScript 6) features.
768 const char kJavaScriptHarmony
[] = "javascript-harmony";
770 // Specifies the testcase used by the IPC fuzzer.
771 const char kIpcFuzzerTestcase
[] = "ipc-fuzzer-testcase";
773 // Used for testing - keeps browser alive after last browser window closes.
774 const char kKeepAliveForTest
[] = "keep-alive-for-test";
776 // Enable Kiosk mode.
777 const char kKioskMode
[] = "kiosk";
779 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
780 // See http://crbug.com/31395.
781 const char kKioskModePrinting
[] = "kiosk-printing";
783 // Comma-separated list of directories with component extensions to load.
784 const char kLoadComponentExtension
[] = "load-component-extension";
786 // Loads an extension from the specified directory.
787 const char kLoadExtension
[] = "load-extension";
789 // Makes Chrome default browser
790 const char kMakeDefaultBrowser
[] = "make-default-browser";
792 // Use to opt-in user into Finch experiment groups.
793 const char kManualEnhancedBookmarks
[] = "manual-enhanced-bookmarks";
794 const char kManualEnhancedBookmarksOptout
[] =
795 "manual-enhanced-bookmarks-optout";
797 // Forces the maximum disk space to be used by the media cache, in bytes.
798 const char kMediaCacheSize
[] = "media-cache-size";
800 // Enables histograming of tasks served by MessageLoop. See
801 // about:histograms/Loop for results, which show frequency of messages on each
802 // thread, including APC count, object signalling count, etc.
803 const char kMessageLoopHistogrammer
[] = "message-loop-histogrammer";
805 // Enables the recording of metrics reports but disables reporting. In contrast
806 // to kDisableMetrics, this executes all the code that a normal client would
807 // use for reporting, except the report is dropped rather than sent to the
808 // server. This is useful for finding issues in the metrics code during UI and
809 // performance tests.
810 const char kMetricsRecordingOnly
[] = "metrics-recording-only";
812 // Sets the base logging level for the net log. Log 0 logs the most data.
813 // Intended primarily for use with --log-net-log.
814 const char kNetLogLevel
[] = "net-log-level";
816 // Disables the default browser check. Useful for UI/browser tests where we
817 // want to avoid having the default browser info-bar displayed.
818 const char kNoDefaultBrowserCheck
[] = "no-default-browser-check";
820 // By default, an https page can load images, fonts or frames from an http
821 // page. This switch overrides this to block this lesser mixed-content problem.
822 const char kNoDisplayingInsecureContent
[] = "no-displaying-insecure-content";
824 // Don't record/playback events when using record & playback.
825 const char kNoEvents
[] = "no-events";
827 // Disables all experiments set on about:flags. Does not disable about:flags
828 // itself. Useful if an experiment makes chrome crash at startup: One can start
829 // chrome with --no-experiments, disable the problematic lab at about:flags and
830 // then restart chrome without this switch again.
831 const char kNoExperiments
[] = "no-experiments";
833 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
834 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
835 // prevent first run from occuring the next time chrome is launched without this
837 const char kNoFirstRun
[] = "no-first-run";
839 // Whether or not the browser should warn if the profile is on a network share.
840 // This flag is only relevant for Windows currently.
841 const char kNoNetworkProfileWarning
[] = "no-network-profile-warning";
843 // Don't send hyperlink auditing pings
844 const char kNoPings
[] = "no-pings";
846 // Don't use a proxy server, always make direct connections. Overrides any
847 // other proxy server flags that are passed.
848 const char kNoProxyServer
[] = "no-proxy-server";
850 // Disables the service process from adding itself as an autorun process. This
851 // does not delete existing autorun registrations, it just prevents the service
852 // from registering a new one.
853 const char kNoServiceAutorun
[] = "no-service-autorun";
855 // Does not automatically open a browser window on startup (used when
856 // launching Chrome for the purpose of hosting background apps).
857 const char kNoStartupWindow
[] = "no-startup-window";
859 // Disables checking whether we received an acknowledgment when registering
860 // a supervised user. Also disables the timeout during registration that waits
861 // for the ack. Useful when debugging against a server that does not
862 // support notifications.
863 const char kNoSupervisedUserAcknowledgmentCheck
[] =
864 "no-managed-user-acknowledgment-check";
866 // Specifies the maximum number of threads to use for running the Proxy
867 // Autoconfig (PAC) script.
868 const char kNumPacThreads
[] = "num-pac-threads";
870 // Launches URL in new browser window.
871 const char kOpenInNewWindow
[] = "new-window";
873 // Force use of QUIC for requests to the specified origin.
874 const char kOriginToForceQuicOn
[] = "origin-to-force-quic-on";
876 // The time that a new chrome process which is delegating to an already running
877 // chrome process started. (See ProcessSingleton for more details.)
878 const char kOriginalProcessStartTime
[] = "original-process-start-time";
880 // Packages an extension to a .crx installable file from a given directory.
881 const char kPackExtension
[] = "pack-extension";
883 // Optional PEM private key to use in signing packaged .crx.
884 const char kPackExtensionKey
[] = "pack-extension-key";
886 // Specifies the path to the user data folder for the parent profile.
887 const char kParentProfile
[] = "parent-profile";
889 // Development flag for permission request API. This flag is needed until
890 // the API is finalized.
891 // TODO(bauerb): Remove when this flag is not needed anymore.
892 const char kPermissionRequestApiScope
[] = "permission-request-api-scope";
894 // Development flag for permission request API. This flag is needed until
895 // the API is finalized.
896 // TODO(bauerb): Remove when this flag is not needed anymore.
897 const char kPermissionRequestApiUrl
[] = "permission-request-api-url";
899 // Read previously recorded data from the cache. Only cached data is read.
901 const char kPlaybackMode
[] = "playback-mode";
903 // Use the PPAPI (Pepper) Flash found at the given path.
904 const char kPpapiFlashPath
[] = "ppapi-flash-path";
906 // Report the given version for the PPAPI (Pepper) Flash. The version should be
907 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
908 // defaults to "10.2.999.999".
909 const char kPpapiFlashVersion
[] = "ppapi-flash-version";
911 // Triggers prerendering of search base page to prefetch results for the typed
912 // omnibox query. Only has an effect when prerender is enabled.
913 const char kPrefetchSearchResults
[] = "prefetch-search-results";
915 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
916 // effect when Instant is either disabled or restricted to search, and when
917 // prerender is enabled.
918 const char kPrerenderFromOmnibox
[] = "prerender-from-omnibox";
919 // These are the values the kPrerenderFromOmnibox switch may have, as in
920 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
921 const char kPrerenderFromOmniboxSwitchValueAuto
[] = "auto";
922 // disabled: No prerendering.
923 const char kPrerenderFromOmniboxSwitchValueDisabled
[] = "disabled";
924 // enabled: Guaranteed prerendering.
925 const char kPrerenderFromOmniboxSwitchValueEnabled
[] = "enabled";
926 // Controls speculative prerendering of pages, and content prefetching. Both
927 // are dispatched from <link rel=prefetch href=...> elements.
928 const char kPrerenderMode
[] = "prerender";
929 // These are the values the kPrerenderMode switch may have, as in
930 // "--prerender=auto".
931 // auto: Allow field trial selection for prerender.
932 const char kPrerenderModeSwitchValueAuto
[] = "auto";
933 // disabled: No prerendering.
934 const char kPrerenderModeSwitchValueDisabled
[] = "disabled";
935 // enabled: Prerendering.
936 const char kPrerenderModeSwitchValueEnabled
[] = "enabled";
938 // Use IPv6 only for privet HTTP.
939 const char kPrivetIPv6Only
[] = "privet-ipv6-only";
941 // Outputs the product version information and quit. Used as an internal api to
942 // detect the installed version of Chrome on Linux.
943 const char kProductVersion
[] = "product-version";
945 // Selects directory of profile to associate with the first browser launched.
946 const char kProfileDirectory
[] = "profile-directory";
948 // Starts the sampling based profiler for the browser process at startup. This
949 // will only work if chrome has been built with the gyp variable profiling=1.
950 // The output will go to the value of kProfilingFile.
951 const char kProfilingAtStart
[] = "profiling-at-start";
953 // Specifies a location for profiling output. This will only work if chrome has
954 // been built with the gyp variable profiling=1.
956 // {pid} if present will be replaced by the pid of the process.
957 // {count} if present will be incremented each time a profile is generated
959 // The default is chrome-profile-{pid}.
960 const char kProfilingFile
[] = "profiling-file";
962 // Specifies a path for the output of task-level profiling which can be loaded
963 // and viewed in about:profiler.
964 const char kProfilingOutputFile
[] = "profiling-output-file";
966 // Controls whether profile data is periodically flushed to a file. Normally
967 // the data gets written on exit but cases exist where chrome doesn't exit
968 // cleanly (especially when using single-process). A time in seconds can be
970 const char kProfilingFlush
[] = "profiling-flush";
972 // Specifies a custom URL for fetching NTP promo data.
973 const char kPromoServerURL
[] = "promo-server-url";
975 // Forces proxy auto-detection.
976 const char kProxyAutoDetect
[] = "proxy-auto-detect";
978 // Specifies a list of hosts for whom we bypass proxy settings and use direct
979 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
980 // specified. This is a comma-separated list of bypass rules. See:
981 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
982 const char kProxyBypassList
[] = "proxy-bypass-list";
984 // Uses the pac script at the given URL
985 const char kProxyPacUrl
[] = "proxy-pac-url";
987 // Uses a specified proxy server, overrides system settings. This switch only
988 // affects HTTP and HTTPS requests.
989 const char kProxyServer
[] = "proxy-server";
991 // Specifies a comma separated list of QUIC connection options to send to
993 const char kQuicConnectionOptions
[] = "quic-connection-options";
995 // Specifies the maximum length for a QUIC packet.
996 const char kQuicMaxPacketLength
[] = "quic-max-packet-length";
998 // Specifies the version of QUIC to use.
999 const char kQuicVersion
[] = "quic-version";
1001 // Chrome supports a playback and record mode. Record mode saves *everything*
1002 // to the cache. Playback mode reads data exclusively from the cache. This
1003 // allows us to record a session into the cache and then replay it at will.
1004 // See also kPlaybackMode.
1005 const char kRecordMode
[] = "record-mode";
1007 // Remember user proceeds through SSL interstitials for a specified amount of
1008 // time. In particular, remember these decisions through session restart. The
1009 // time delta to remember certificates should be specified in seconds.
1010 const char kRememberCertErrorDecisions
[] = "remember-cert-error-decisions";
1012 // Requires presence of Certificate Transparency for Extended Validation
1013 // certificates. Enforce the policy detailed at:
1014 // http://dev.chromium.org/Home/chromium-security/certificate-transparency
1015 const char kRequireCTForEV
[] = "require-ct-for-ev";
1017 // If set, the app list will forget it has been installed on startup. Note this
1018 // doesn't prevent the app list from running, it just makes Chrome think the app
1019 // list hasn't been enabled (as in kEnableAppList) yet.
1020 const char kResetAppListInstallState
[] = "reset-app-list-install-state";
1022 // Indicates the last session should be restored on startup. This overrides the
1023 // preferences value and is primarily intended for testing. The value of this
1024 // switch is the number of tabs to wait until loaded before 'load completed' is
1025 // sent to the ui_test.
1026 const char kRestoreLastSession
[] = "restore-last-session";
1028 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1029 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1030 // See http://crbug.com/120416 for how to remove this switch.
1031 const char kSavePageAsMHTML
[] = "save-page-as-mhtml";
1033 // If present, safebrowsing only performs update when
1034 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1035 // This is used for testing only.
1036 const char kSbDisableAutoUpdate
[] = "safebrowsing-disable-auto-update";
1038 // TODO(lzheng): Remove this flag once the feature works fine
1039 // (http://crbug.com/74848).
1041 // Disables safebrowsing feature that checks download url and downloads
1042 // content's hash to make sure the content are not malicious.
1043 const char kSbDisableDownloadProtection
[] =
1044 "safebrowsing-disable-download-protection";
1046 // Disables safebrowsing feature that checks for blacklisted extensions.
1047 const char kSbDisableExtensionBlacklist
[] =
1048 "safebrowsing-disable-extension-blacklist";
1050 // Disables safebrowsing feature that provides a side-effect free whitelist.
1051 const char kSbDisableSideEffectFreeWhitelist
[] =
1052 "safebrowsing-disable-side-effect-free-whitelist";
1054 // Causes the process to run as a service process.
1055 const char kServiceProcess
[] = "service";
1057 // Sets a token in the token service, for testing.
1058 const char kSetToken
[] = "set-token";
1060 // If true the app list will be shown.
1061 const char kShowAppList
[] = "show-app-list";
1064 const char kShowIcons
[] = "show-icons";
1066 // Marks a renderer as the signin process.
1067 const char kSigninProcess
[] = "signin-process";
1069 // Does not show an infobar when an extension attaches to a page using
1070 // chrome.debugger page. Required to attach to extension background pages.
1071 const char kSilentDebuggerExtensionAPI
[] = "silent-debugger-extension-api";
1073 // Causes Chrome to launch without opening any windows by default. Useful if
1074 // one wishes to use Chrome as an ash server.
1075 const char kSilentLaunch
[] = "silent-launch";
1077 // Simulates that elevation is needed to recover upgrade channel.
1078 const char kSimulateElevatedRecovery
[] = "simulate-elevated-recovery";
1080 // Simulates a critical update being available.
1081 const char kSimulateCriticalUpdate
[] = "simulate-critical-update";
1083 // Simulates that current version is outdated.
1084 const char kSimulateOutdated
[] = "simulate-outdated";
1086 // Simulates that current version is outdated and auto-update is off.
1087 const char kSimulateOutdatedNoAU
[] = "simulate-outdated-no-au";
1089 // Simulates an update being available.
1090 const char kSimulateUpgrade
[] = "simulate-upgrade";
1092 // Speculative resource prefetching.
1093 const char kSpeculativeResourcePrefetching
[] =
1094 "speculative-resource-prefetching";
1096 // Speculative resource prefetching is disabled.
1097 const char kSpeculativeResourcePrefetchingDisabled
[] = "disabled";
1099 // Speculative resource prefetching will only learn about resources that need to
1100 // be prefetched but will not prefetch them.
1101 const char kSpeculativeResourcePrefetchingLearning
[] = "learning";
1103 // Speculative resource prefetching is enabled.
1104 const char kSpeculativeResourcePrefetchingEnabled
[] = "enabled";
1106 #if defined(ENABLE_SPELLCHECK)
1107 // Enables auto correction for misspelled words.
1108 const char kEnableSpellingAutoCorrect
[] = "enable-spelling-auto-correct";
1110 // Enables participation in the field trial for user feedback to spelling
1112 const char kEnableSpellingFeedbackFieldTrial
[] =
1113 "enable-spelling-feedback-field-trial";
1115 // Specifies the URL where spelling service feedback data will be sent instead
1116 // of the default URL. This switch is for temporary testing only.
1117 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1119 const char kSpellingServiceFeedbackUrl
[] = "spelling-service-feedback-url";
1121 // Specifies the number of seconds between sending batches of feedback to
1122 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This
1123 // switch is for temporary testing only.
1124 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1126 const char kSpellingServiceFeedbackIntervalSeconds
[] =
1127 "spelling-service-feedback-interval-seconds";
1130 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1132 const char kSSLVersionMax
[] = "ssl-version-max";
1134 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1136 const char kSSLVersionMin
[] = "ssl-version-min";
1138 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1139 // "tls1.2") that TLS fallback will accept.
1140 const char kSSLVersionFallbackMin
[] = "ssl-version-fallback-min";
1142 // These values aren't switches, but rather the values that kSSLVersionMax,
1143 // kSSLVersionMin and kSSLVersionFallbackMin can have.
1144 const char kSSLVersionSSLv3
[] = "ssl3";
1145 const char kSSLVersionTLSv1
[] = "tls1";
1146 const char kSSLVersionTLSv11
[] = "tls1.1";
1147 const char kSSLVersionTLSv12
[] = "tls1.2";
1149 // Starts the browser maximized, regardless of any previous settings.
1150 const char kStartMaximized
[] = "start-maximized";
1152 // Sets the supervised user ID for any loaded or newly created profile to the
1153 // given value. Pass an empty string to mark the profile as non-supervised.
1154 // Used for testing.
1155 const char kSupervisedUserId
[] = "managed-user-id";
1157 // Used to authenticate requests to the Sync service for supervised users.
1158 // Setting this switch also causes Sync to be set up for a supervised user.
1159 const char kSupervisedUserSyncToken
[] = "managed-user-sync-token";
1161 // This flag causes sync to retry very quickly (see polling_constants.h) the
1162 // when it encounters an error, as the first step towards exponential backoff.
1163 const char kSyncShortInitialRetryOverride
[] =
1164 "sync-short-initial-retry-override";
1166 // Overrides the default server used for profile sync.
1167 const char kSyncServiceURL
[] = "sync-url";
1169 // Enables deferring sync backend initialization until user initiated changes
1171 const char kSyncDisableDeferredStartup
[] = "sync-disable-deferred-startup";
1173 // Allows overriding the deferred init fallback timeout.
1174 const char kSyncDeferredStartupTimeoutSeconds
[] =
1175 "sync-deferred-startup-timeout-seconds";
1177 // Enables feature to avoid unnecessary GetUpdate requests.
1178 const char kSyncEnableGetUpdateAvoidance
[] =
1179 "sync-enable-get-update-avoidance";
1181 // Disable data backup when user's not signed in.
1182 const char kSyncDisableBackup
[] = "disable-sync-backup";
1184 // Disable sync rollback.
1185 const char kSyncDisableRollback
[] = "disable-sync-rollback";
1187 // Passes the name of the current running automated test to Chrome.
1188 const char kTestName
[] = "test-name";
1190 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1191 // The value is the host:port of the trusted proxy.
1192 const char kTrustedSpdyProxy
[] = "trusted-spdy-proxy";
1194 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1195 // be used only by the upgrade process.
1196 const char kTryChromeAgain
[] = "try-chrome-again";
1198 // Runs un-installation steps that were done by chrome first-run.
1199 const char kUninstall
[] = "uninstall";
1201 // Overrides per-origin quota settings to unlimited storage for any
1202 // apps/origins. This should be used only for testing purpose.
1203 const char kUnlimitedStorage
[] = "unlimited-storage";
1205 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1207 const char kUseSpdy
[] = "use-spdy";
1209 // A string used to override the default user agent with a custom one.
1210 const char kUserAgent
[] = "user-agent";
1212 // Specifies the user data directory, which is where the browser will look for
1213 // all of its state.
1214 const char kUserDataDir
[] = "user-data-dir";
1216 // Examines a .crx for validity and prints the result.
1217 const char kValidateCrx
[] = "validate-crx";
1219 // Uses experimental simple cache backend if possible.
1220 const char kUseSimpleCacheBackend
[] = "use-simple-cache-backend";
1222 // Specifies a custom URL for the server which reports variation data to the
1223 // client. Specifying this switch enables the Variations service on
1224 // unofficial builds. See variations_service.cc.
1225 const char kVariationsServerURL
[] = "variations-server-url";
1227 // Prints version information and quits.
1228 const char kVersion
[] = "version";
1230 // Specify the initial window position: --window-position=x,y
1231 const char kWindowPosition
[] = "window-position";
1233 // Specify the initial window size: --window-size=w,h
1234 const char kWindowSize
[] = "window-size";
1236 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1237 // use Chromium's network stack to fetch, and V8 to evaluate.
1238 const char kWinHttpProxyResolver
[] = "winhttp-proxy-resolver";
1240 // Specifies which category option was clicked in the Windows Jumplist that
1241 // resulted in a browser startup.
1242 const char kWinJumplistAction
[] = "win-jumplist-action";
1244 #if defined(ENABLE_PLUGIN_INSTALLATION)
1245 // Specifies a custom URL for fetching plug-ins metadata. Used for testing.
1246 const char kPluginsMetadataServerURL
[] = "plugins-metadata-server-url";
1249 #if defined(OS_ANDROID)
1250 // Disables support for playing videos on Chromecast devices.
1251 const char kDisableCast
[] = "disable-cast";
1253 // Disables Contextual Search.
1254 const char kDisableContextualSearch
[] = "disable-contextual-search";
1256 // Disables zero suggest experiment on Dev channel.
1257 const char kDisableZeroSuggest
[] = "disable-zero-suggest";
1259 // Enable the accessibility tab switcher.
1260 const char kEnableAccessibilityTabSwitcher
[] =
1261 "enable-accessibility-tab-switcher";
1263 // Enables app install alerts.
1264 const char kEnableAppInstallAlerts
[] = "enable-app-install-alerts";
1266 // Enables Contextual Search.
1267 const char kEnableContextualSearch
[] = "enable-contextual-search";
1269 // Enables zero suggest functionality on Dev channel, showing most visited
1270 // sites as default suggestions.
1271 const char kEnableZeroSuggestMostVisited
[] =
1272 "enable-zero-suggest-most-visited";
1274 // Enable zero suggest functionality on Dev channel, showing most visited
1275 // sites on non-search-result pages as default suggestions.
1276 const char kEnableZeroSuggestMostVisitedWithoutSerp
[] =
1277 "enable-zero-suggest-most-visited-without-serp";
1279 // Enables instant search clicks feature.
1280 const char kEnableInstantSearchClicks
[] = "enable-instant-search-clicks";
1284 #if defined(USE_ASH)
1285 const char kOpenAsh
[] = "open-ash";
1288 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1289 // Specifies which password store to use (detect, default, gnome, kwallet).
1290 const char kPasswordStore
[] = "password-store";
1293 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1294 // Triggers migration of user data directory to another directory
1295 // specified as a parameter. The migration is done under singleton lock,
1296 // and sanity checks are made to avoid corrupting the profile.
1297 // The browser exits after migration is complete.
1298 const char kMigrateDataDirForSxS
[] = "migrate-data-dir-for-sxs";
1299 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1301 #if defined(OS_MACOSX)
1302 // Prevents Chrome from quitting when Chrome Apps are open.
1303 const char kAppsKeepChromeAliveInTests
[] = "apps-keep-chrome-alive-in-tests";
1305 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1306 // older, SnowLeopard-style fullscreen.
1307 const char kDisableSystemFullscreenForTesting
[] =
1308 "disable-system-fullscreen-for-testing";
1310 // A process type (switches::kProcessType) that relaunches the browser. See
1311 // chrome/browser/mac/relauncher.h.
1312 const char kRelauncherProcess
[] = "relauncher";
1316 // Use bubbles for content permissions requests instead of infobars.
1317 const char kEnablePermissionsBubbles
[] = "enable-permissions-bubbles";
1320 // Fallback to XPS. By default connector uses CDD.
1321 const char kEnableCloudPrintXps
[] = "enable-cloud-print-xps";
1323 // Force-enables the profile shortcut manager. This is needed for tests since
1324 // they use a custom-user-data-dir which disables this.
1325 const char kEnableProfileShortcutManager
[] = "enable-profile-shortcut-manager";
1327 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1328 // Windows 8 and higher. Used when relaunching metro Chrome.
1329 const char kForceImmersive
[] = "force-immersive";
1331 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1332 // Windows 8 and higher. Used when relaunching metro Chrome.
1333 const char kForceDesktop
[] = "force-desktop";
1335 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1336 const char kRelaunchShortcut
[] = "relaunch-shortcut";
1338 // Requests that Chrome launch the Metro viewer process via the given appid
1339 // (which is assumed to be registered as default browser) and synchronously
1341 const char kViewerLaunchViaAppId
[] = "viewer-launch-via-appid";
1343 // Waits for the given handle to be signaled before relaunching metro Chrome on
1344 // Windows 8 and higher.
1345 const char kWaitForMutex
[] = "wait-for-mutex";
1347 // Indicates that chrome was launched to service a search request in Windows 8.
1348 const char kWindows8Search
[] = "windows8-search";
1351 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1352 // Enables support to debug printing subsystem.
1353 const char kDebugPrint
[] = "debug-print";
1357 // Enables overriding the path of file manager extension.
1358 const char kFileManagerExtensionPath
[] = "filemgr-ext-path";
1361 bool AboutInSettingsEnabled() {
1362 return SettingsWindowEnabled() &&
1363 !CommandLine::ForCurrentProcess()->HasSwitch(
1364 ::switches::kDisableAboutInSettings
);
1367 bool OutOfProcessPdfEnabled() {
1368 if (CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf
))
1371 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisableOutOfProcessPdf
))
1378 bool SettingsWindowEnabled() {
1379 #if defined(OS_CHROMEOS)
1380 return !CommandLine::ForCurrentProcess()->HasSwitch(
1381 ::switches::kDisableSettingsWindow
);
1383 return CommandLine::ForCurrentProcess()->HasSwitch(
1384 ::switches::kEnableSettingsWindow
);
1388 #if defined(OS_CHROMEOS)
1389 bool PowerOverlayEnabled() {
1390 return CommandLine::ForCurrentProcess()->HasSwitch(
1391 ::switches::kEnablePowerOverlay
);
1395 // -----------------------------------------------------------------------------
1396 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1398 // You were going to just dump your switches here, weren't you? Instead, please
1399 // put them in alphabetical order above, or in order inside the appropriate
1400 // ifdef at the bottom. The order should match the header.
1401 // -----------------------------------------------------------------------------
1403 } // namespace switches