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