Revert of Restored disable print preview policy. (patchset #8 id:140001 of https...
[chromium-blink-merge.git] / chrome / common / chrome_switches.cc
bloba04c81a0387450f8d957b7dc64dd0248b694ebe7
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 // Specifies the chrome-extension:// URL for the contents of an additional page
191 // added to the experimental app launcher.
192 const char kCustomLauncherPage[] = "custom-launcher-page";
194 // Enables a frame context menu item that toggles the frame in and out of glass
195 // mode (Windows Vista and up only).
196 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
198 // Adds debugging entries such as Inspect Element to context menus of packed
199 // apps.
200 const char kDebugPackedApps[] = "debug-packed-apps";
202 // Triggers a plethora of diagnostic modes.
203 const char kDiagnostics[] = "diagnostics";
205 // Sets the output format for diagnostic modes enabled by diagnostics flag.
206 const char kDiagnosticsFormat[] = "diagnostics-format";
208 // Tells the diagnostics mode to do the requested recovery step(s).
209 const char kDiagnosticsRecovery[] = "diagnostics-recovery";
211 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings
212 // instead of as a separate page, unless this flag is specified.
213 const char kDisableAboutInSettings[] = "disable-about-in-settings";
215 // Disables the experimental asynchronous DNS client.
216 const char kDisableAsyncDns[] = "disable-async-dns";
218 // Disables CNAME lookup of the host when generating the Kerberos SPN for a
219 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
220 // background.
221 const char kDisableAuthNegotiateCnameLookup[] =
222 "disable-auth-negotiate-cname-lookup";
224 // Disable several subsystems which run network requests in the background.
225 // This is for use when doing network performance testing to avoid noise in the
226 // measurements.
227 const char kDisableBackgroundNetworking[] = "disable-background-networking";
229 // Disables the bundled PPAPI version of Flash.
230 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash";
232 // Disables the client-side phishing detection feature. Note that even if
233 // client-side phishing detection is enabled, it will only be active if the
234 // user has opted in to UMA stats and SafeBrowsing is enabled in the
235 // preferences.
236 const char kDisableClientSidePhishingDetection[] =
237 "disable-client-side-phishing-detection";
239 // Disable default component extensions with background pages - useful for
240 // performance tests where these pages may interfere with perf results.
241 const char kDisableComponentExtensionsWithBackgroundPages[] =
242 "disable-component-extensions-with-background-pages";
244 const char kDisableComponentUpdate[] = "disable-component-update";
246 // Disables installation of default apps on first run. This is used during
247 // automated testing.
248 const char kDisableDefaultApps[] = "disable-default-apps";
250 // Disables device discovery notifications.
251 const char kDisableDeviceDiscoveryNotifications[] =
252 "disable-device-discovery-notifications";
254 // Disables Domain Reliability Monitoring.
255 const char kDisableDomainReliability[] = "disable-domain-reliability";
257 // Disable extensions.
258 const char kDisableExtensions[] = "disable-extensions";
260 // Disable checking for user opt-in for extensions that want to inject script
261 // into file URLs (ie, always allow it). This is used during automated testing.
262 const char kDisableExtensionsFileAccessCheck[] =
263 "disable-extensions-file-access-check";
265 // Disable the net::URLRequestThrottlerManager functionality for
266 // requests originating from extensions.
267 const char kDisableExtensionsHttpThrottling[] =
268 "disable-extensions-http-throttling";
270 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
271 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
272 // bugs if something isn't working properly in the presence of IPv6. This flag
273 // can be overidden by the "enable-ipv6" flag.
274 const char kDisableIPv6[] = "disable-ipv6";
276 // Disable the behavior that the second click on a launcher item (the click when
277 // the item is already active) minimizes the item.
278 const char kDisableMinimizeOnSecondLauncherItemClick[] =
279 "disable-minimize-on-second-launcher-item-click";
281 // Disables the menu on the NTP for accessing sessions from other devices.
282 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
284 // Disables the Material Design NTP.
285 const char kDisableMaterialDesignNTP[] = "disable-material-design-ntp";
287 // Disable auto-reload of error pages if offline.
288 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
290 // Disable only auto-reloading error pages when the tab is visible.
291 const char kDisableOfflineAutoReloadVisibleOnly[] =
292 "disable-offline-auto-reload-visible-only";
294 // Disable the origin chip.
295 const char kDisableOriginChip[] = "disable-origin-chip";
297 // Disable the setting to prompt the user for their OS account password before
298 // revealing plaintext passwords in the password manager.
299 const char kDisablePasswordManagerReauthentication[] =
300 "disable-password-manager-reauthentication";
302 // Enables searching for people from the apps list search box.
303 const char kDisablePeopleSearch[] = "disable-people-search";
305 // Don't use bubbles for content permissions requests instead of infobars.
306 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles";
308 // Disable pop-up blocking.
309 const char kDisablePopupBlocking[] = "disable-popup-blocking";
311 // Disable speculative TCP/IP preconnection.
312 const char kDisablePreconnect[] = "disable-preconnect";
314 // Disable prerendering based on local browsing history.
315 const char kDisablePrerenderLocalPredictor[] =
316 "disable-prerender-local-predictor";
318 // Normally when the user attempts to navigate to a page that was the result of
319 // a post we prompt to make sure they want to. This switch may be used to
320 // disable that check. This switch is used during automated testing.
321 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
323 // Disables support for the QUIC protocol.
324 const char kDisableQuic[] = "disable-quic";
326 // Disable use of pacing of QUIC packets.
327 // This only has an effect if QUIC protocol is enabled.
328 const char kDisableQuicPacing[] = "disable-quic-pacing";
330 // Disable use of Chromium's port selection for the ephemeral port via bind().
331 // This only has an effect if QUIC protocol is enabled.
332 const char kDisableQuicPortSelection[] = "disable-quic-port-selection";
334 // Disable use of time-base loss detection for QUIC connections.
335 // This only has an effect if QUIC protocol is enabled.
336 const char kDisableQuicTimeBasedLossDetection[] =
337 "disable-quic-time-based-loss-detection";
339 // Prevents the save password bubble from being enabled.
340 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble";
342 // Disables the "search button in omnibox" experiment.
343 const char kDisableSearchButtonInOmnibox[] =
344 "disable-search-button-in-omnibox";
346 // Disables using bubbles for session restore request.
347 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble";
349 // Disable SPDY/3.1. This is a temporary testing flag.
350 const char kDisableSpdy31[] = "disable-spdy31";
352 // Disables the suggestions service.
353 const char kDisableSuggestionsService[] = "disable-suggestions-service";
355 // Disables syncing browser data to a Google Account.
356 const char kDisableSync[] = "disable-sync";
358 // Disable synced notifications.
359 const char kDisableSyncSyncedNotifications[] =
360 "disable-sync-synced-notifications";
362 // Disables syncing one or more sync data types that are on by default.
363 // See sync/internal_api/public/base/model_type.h for possible types. Types
364 // should be comma separated, and follow the naming convention for string
365 // representation of model types, e.g.:
366 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles'
367 const char kDisableSyncTypes[] = "disable-sync-types";
369 // Disables the backend service for web resources.
370 const char kDisableWebResources[] = "disable-web-resources";
372 // Some tests seem to require the application to close when the last
373 // browser window is closed. Thus, we need a switch to force this behavior
374 // for ChromeOS Aura, disable "zero window mode".
375 // TODO(pkotwicz): Investigate if this bug can be removed.
376 // (http://crbug.com/119175)
377 const char kDisableZeroBrowsersOpenForTests[] =
378 "disable-zero-browsers-open-for-tests";
380 // Use a specific disk cache location, rather than one derived from the
381 // UserDatadir.
382 const char kDiskCacheDir[] = "disk-cache-dir";
384 // Forces the maximum disk space to be used by the disk cache, in bytes.
385 const char kDiskCacheSize[] = "disk-cache-size";
387 const char kDnsLogDetails[] = "dns-log-details";
389 // Disables prefetching of DNS information.
390 const char kDnsPrefetchDisable[] = "dns-prefetch-disable";
392 // Requests that a running browser process dump its collected histograms to a
393 // given file. The file is overwritten if it exists.
394 const char kDumpBrowserHistograms[] = "dump-browser-histograms";
396 // Overrides the path of Easy Unlock component app.
397 extern const char kEasyUnlockAppPath[] = "easy-unlock-app-path";
399 // If set, the app list will be enabled as if enabled from CWS.
400 const char kEnableAppList[] = "enable-app-list";
402 // Enable OS integration for Chrome app file associations.
403 const char kEnableAppsFileAssociations[] = "enable-apps-file-associations";
405 // Enables the experimental asynchronous DNS client.
406 const char kEnableAsyncDns[] = "enable-async-dns";
408 // Enables the inclusion of non-standard ports when generating the Kerberos SPN
409 // in response to a Negotiate challenge. See
410 // HttpAuthHandlerNegotiate::CreateSPN for more background.
411 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port";
413 // Enables the benchmarking extensions.
414 const char kEnableBenchmarking[] = "enable-benchmarking";
416 // Enables client hints, which adds hints about browser state to HTTP requests.
417 const char kEnableClientHints[] = "enable-client-hints";
419 // Enables the multi-level undo system for bookmarks.
420 const char kEnableBookmarkUndo[] = "enable-bookmark-undo";
422 // This applies only when the process type is "service". Enables the Cloud
423 // Print Proxy component within the service process.
424 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
426 // If true devtools experimental settings are enabled.
427 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments";
429 // Enable device discovery notifications.
430 const char kEnableDeviceDiscoveryNotifications[] =
431 "enable-device-discovery-notifications";
433 // Enables the DOM distiller.
434 const char kEnableDomDistiller[] = "enable-dom-distiller";
436 // Enables Domain Reliability Monitoring.
437 const char kEnableDomainReliability[] = "enable-domain-reliability";
439 // Enable Enhanced Bookmarks.
440 const char kEnhancedBookmarksExperiment[] = "enhanced-bookmarks-experiment";
442 // Enables experimentation with ephemeral apps, which are launched without
443 // installing in Chrome.
444 const char kEnableEphemeralApps[] = "enable-ephemeral-apps";
446 // Enables experimental hotword detection features. These features include
447 // using a new component extension for performing hotword detection, new UI
448 // flows, and always-on detection.
449 const char kEnableExperimentalHotwording[] = "enable-experimental-hotwording";
451 // Enables logging for extension activity.
452 const char kEnableExtensionActivityLogging[] =
453 "enable-extension-activity-logging";
455 const char kEnableExtensionActivityLogTesting[] =
456 "enable-extension-activity-log-testing";
458 // Enable the fast unload controller, which speeds up tab/window close by
459 // running a tab's onunload js handler independently of the GUI -
460 // crbug.com/142458 .
461 const char kEnableFastUnload[] = "enable-fast-unload";
463 // Enables IPv6 support, even if probes suggest that it may not be fully
464 // supported. Some probes may require internet connections, and this flag will
465 // allow support independent of application testing. This flag overrides
466 // "disable-ipv6" which appears elswhere in this file.
467 const char kEnableIPv6[] = "enable-ipv6";
469 // Enables experimentation with launching ephemeral apps via hyperlinks.
470 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps";
472 // Runs the Native Client inside the renderer process and enables GPU plugin
473 // (internally adds lEnableGpuPlugin to the command line).
474 const char kEnableNaCl[] = "enable-nacl";
476 // Enables the network-related benchmarking extensions.
477 const char kEnableNetBenchmarking[] = "enable-net-benchmarking";
479 // Enables the Material Design NTP.
480 const char kEnableMaterialDesignNTP[] = "enable-material-design-ntp";
482 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
483 // HTTP is still used for all requests.
484 const char kEnableNpnHttpOnly[] = "enable-npn-http";
486 // Enable auto-reload of error pages if offline.
487 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
489 // Only auto-reload error pages when the tab is visible.
490 const char kEnableOfflineAutoReloadVisibleOnly[] =
491 "enable-offline-auto-reload-visible-only";
493 // Enable/Disable offering a "Load stale copy" option to the user if offline.
494 const char kEnableOfflineLoadStaleCache[] = "enable-offline-load-stale-cache";
495 const char kDisableOfflineLoadStaleCache[] =
496 "disable-offline-load-stale-cache";
498 // Controls which branch of the origin chip in location bar experiment is
499 // enabled.
501 // We're using independent flags here (as opposed to a common flag with
502 // different values) to be able to enable/disable the entire experience
503 // associated with this feature server-side from the FieldTrial (the complete
504 // experience includes other flag changes as well). It is not currently possible
505 // to do that with "flag=value" flags.
506 const char kEnableOriginChipAlways[] = "enable-origin-chip-always";
507 const char kEnableOriginChipOnSrp[] = "enable-origin-chip-on-srp";
509 // Enables panels (always on-top docked pop-up windows).
510 const char kEnablePanels[] = "enable-panels";
512 // Enables presenting plugin placeholder content as shadow DOM.
513 const char kEnablePluginPlaceholderShadowDom[] =
514 "enable-plugin-placeholder-shadow-dom";
516 // Enables showing unregistered printers in print preview
517 const char kEnablePrintPreviewRegisterPromos[] =
518 "enable-print-preview-register-promos";
520 // Enable Privet storage.
521 const char kEnablePrivetStorage[] = "enable-privet-storage";
523 // Enables tracking of tasks in profiler for viewing via about:profiler.
524 // To predominantly disable tracking (profiling), use the command line switch:
525 // --enable-profiling=0
526 // Some tracking will still take place at startup, but it will be turned off
527 // during chrome_browser_main.
528 const char kEnableProfiling[] = "enable-profiling";
530 // Enables query in the omnibox.
531 const char kEnableQueryExtraction[] = "enable-query-extraction";
533 // Enables support for the QUIC protocol. This is a temporary testing flag.
534 const char kEnableQuic[] = "enable-quic";
536 // Disable use of pacing of QUIC packets.
537 // This only has an effect if QUIC protocol is enabled.
538 const char kEnableQuicPacing[] = "enable-quic-pacing";
540 // Enable use of Chromium's port selection for the ephemeral port via bind().
541 // This only has an effect if QUIC protocol is enabled.
542 const char kEnableQuicPortSelection[] = "enable-quic-port-selection";
544 // Enables use of time-base loss detection for QUIC connections.
545 // This only has an effect if QUIC protocol is enabled.
546 const char kEnableQuicTimeBasedLossDetection[] =
547 "enable-quic-time-based-loss-detection";
549 // Enables context-sensitive reader mode button in the toolbar.
550 const char kEnableReaderModeToolbarIcon[] =
551 "enable-reader-mode-toolbar-icon";
553 // Enables save password prompt bubble.
554 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble";
556 // Enables SDCH for https schemes.
557 const char kEnableSdchOverHttps[] = "enable-sdch-over-https";
559 // Controls which branch of the "search button in omnibox" experiment is
560 // enabled.
562 // We're using independent flags here (as opposed to a common flag with
563 // different values) to be able to enable/disable the entire experience
564 // associated with this feature server-side from the FieldTrial (the complete
565 // experience includes other flag changes as well). It is not currently possible
566 // to do that with "flag=value" flags.
567 const char kEnableSearchButtonInOmniboxAlways[] =
568 "enable-search-button-in-omnibox-always";
569 const char kEnableSearchButtonInOmniboxForStr[] =
570 "enable-search-button-in-omnibox-for-str";
571 const char kEnableSearchButtonInOmniboxForStrOrIip[] =
572 "enable-search-button-in-omnibox-for-str-or-iip";
574 // Enables using bubbles for session restore request instead of infobars.
575 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble";
577 // Enables the deprecated window.showModalDialog API. This is slated for
578 // removal.
579 const char kEnableShowModalDialog[] = "enable-show-modal-dialog";
581 // Enable or disable settings in a separate browser window per profile
582 // (see SettingsWindowEnabled() below).
583 const char kEnableSettingsWindow[] = "enable-settings-window";
584 const char kDisableSettingsWindow[] = "disable-settings-window";
586 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag.
587 const char kEnableSpdy4[] = "enable-spdy4";
589 // Enables auto correction for misspelled words.
590 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct";
592 // Enables participation in the field trial for user feedback to spelling
593 // service.
594 const char kEnableSpellingFeedbackFieldTrial[] =
595 "enable-spelling-feedback-field-trial";
597 // Enables a feature that holds back some SSLConnectJobs in order to
598 // minimize the number of full SSL handshakes completed.
599 const char kEnableSSLConnectJobWaiting[] = "enable-ssl-connect-job-waiting";
601 // Enables an experimental hosted app experience.
602 const char kEnableStreamlinedHostedApps[] = "enable-streamlined-hosted-apps";
604 // Enables the suggestions service.
605 const char kEnableSuggestionsService[] = "enable-suggestions-service";
607 // Enables the supervised user host blacklist.
608 const char kEnableSupervisedUserBlacklist[] =
609 "enable-supervised-user-blacklist";
611 // Enables synced notifications.
612 const char kEnableSyncSyncedNotifications[] =
613 "enable-sync-synced-notifications";
615 // Enables synced articles.
616 const char kEnableSyncArticles[] = "enable-sync-articles";
618 // Enables fanciful thumbnail processing. Used with NTP for
619 // instant-extended-api, where thumbnails are generally smaller.
620 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting";
622 // Enables Translate experimental new UX which replaces the infobar.
623 const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
625 // Enables Alternate-Protocol when the port is user controlled (> 1024).
626 const char kEnableUserAlternateProtocolPorts[] =
627 "enable-user-controlled-alternate-protocol-ports";
629 // Uses WebSocket over SPDY.
630 const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy";
632 // Enables the Website Settings page on the Settings page.
633 const char kEnableWebsiteSettingsManager[] = "enable-website-settings-manager";
635 // Explicitly allows additional ports using a comma-separated list of port
636 // numbers.
637 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports";
639 // Values for the kExtensionContentVerification flag.
640 // See ContentVerifierDelegate::Mode for more explanation.
641 const char kExtensionContentVerificationBootstrap[] = "bootstrap";
642 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict";
643 const char kExtensionContentVerificationEnforce[] = "enforce";
645 // Name of the command line flag to force content verification to be on in one
646 // of various modes.
647 const char kExtensionContentVerification[] = "extension-content-verification";
649 // Turns on extension install verification if it would not otherwise have been
650 // turned on.
651 const char kExtensionsInstallVerification[] = "extensions-install-verification";
653 // Specifies a comma-separated list of extension ids that should be forced to
654 // be treated as not from the webstore when doing install verification.
655 const char kExtensionsNotWebstore[] = "extensions-not-webstore";
657 // Frequency in seconds for Extensions auto-update.
658 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency";
660 // Fakes the channel of the browser for purposes of Variations filtering. This
661 // is to be used for testing only. Possible values are "stable", "beta", "dev"
662 // and "canary". Note that this only applies if the browser's reported channel
663 // is UNKNOWN.
664 const char kFakeVariationsChannel[] = "fake-variations-channel";
666 // If this flag is present then this command line is being delegated to an
667 // already running chrome process via the fast path, ie: before chrome.dll is
668 // loaded. It is useful to tell the difference for tracking purposes.
669 const char kFastStart[] = "fast-start";
671 // These two flags are added around the switches about:flags adds to the
672 // command line. This is useful to see which switches were added by about:flags
673 // on about:version. They don't have any effect.
674 const char kFlagSwitchesBegin[] = "flag-switches-begin";
675 const char kFlagSwitchesEnd[] = "flag-switches-end";
677 // Forces application mode. This hides certain system UI elements and forces
678 // the app to be installed if it hasn't been already.
679 const char kForceAppMode[] = "force-app-mode";
681 // Displays the First Run experience when the browser is started, regardless of
682 // whether or not it's actually the First Run (this overrides kNoFirstRun).
683 const char kForceFirstRun[] = "force-first-run";
685 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
686 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
687 // prefixed with the character "t" will be treated as Trigger Variation Ids.
688 const char kForceVariationIds[] = "force-variation-ids";
690 // Specifies a custom name for the GSSAPI library to load.
691 const char kGSSAPILibraryName[] = "gssapi-library-name";
693 // These flags show the man page on Linux. They are equivalent to each
694 // other.
695 const char kHelp[] = "help";
696 const char kHelpShort[] = "h";
698 // Makes Windows happy by allowing it to show "Enable access to this program"
699 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
700 // shows an error box because the only way to hide Chrome is by uninstalling
701 // it.
702 const char kHideIcons[] = "hide-icons";
704 // Enables grouping websites by domain and filtering them by period.
705 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
707 // Specifies which page will be displayed in newly-opened tabs. We need this
708 // for testing purposes so that the UI tests don't depend on what comes up for
709 // http://google.com.
710 const char kHomePage[] = "homepage";
712 // Comma-separated list of rules that control how hostnames are mapped.
714 // For example:
715 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
716 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
717 // resolved to "proxy".
718 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
719 // Will also force the port of the resulting
720 // socket address to be 77.
721 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
722 // except for "www.google.com".
724 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
725 // connect and host resolver in a direct connection, and the CONNECT in an http
726 // proxy connection, and the endpoint host in a SOCKS proxy connection).
727 const char kHostRules[] = "host-rules";
729 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow
730 // (not counting backup attempts which would also consume threads).
731 // --host-resolver-retry-attempts must be set to zero for this to be exact.
732 const char kHostResolverParallelism[] = "host-resolver-parallelism";
734 // The maximum number of retry attempts to resolve the host. Set this to zero
735 // to disable host resolver retry attempts.
736 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts";
738 // Causes net::URLFetchers to ignore requests for SSL client certificates,
739 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
740 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
741 // kSyncServiceURL, etc)
742 const char kIgnoreUrlFetcherCertRequests[] =
743 "ignore-urlfetcher-cert-requests";
745 // Causes the browser to launch directly in incognito mode.
746 const char kIncognito[] = "incognito";
748 // Causes Chrome to initiate an installation flow for the given app.
749 const char kInstallChromeApp[] = "install-chrome-app";
751 // Causes Chrome to attempt to get metadata from the webstore for the
752 // app/extension ID given, and then prompt the user to download and install it.
753 const char kInstallFromWebstore[] = "install-from-webstore";
755 // Marks a renderer as an Instant process.
756 const char kInstantProcess[] = "instant-process";
758 // Invalidation service should use GCM network channel even if experiment is not
759 // enabled.
760 const char kInvalidationUseGCMChannel[] = "invalidation-use-gcm-channel";
762 // Specifies the testcase used by the IPC fuzzer.
763 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
765 // Used for testing - keeps browser alive after last browser window closes.
766 const char kKeepAliveForTest[] = "keep-alive-for-test";
768 // Enable Kiosk mode.
769 const char kKioskMode[] = "kiosk";
771 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
772 // See http://crbug.com/31395.
773 const char kKioskModePrinting[] = "kiosk-printing";
775 // Causes Chrome to attempt to get metadata from the webstore for the
776 // given item, and then prompt the user to download and install it.
777 const char kLimitedInstallFromWebstore[] = "limited-install-from-webstore";
779 // Comma-separated list of directories with component extensions to load.
780 const char kLoadComponentExtension[] = "load-component-extension";
782 // Loads an extension from the specified directory.
783 const char kLoadExtension[] = "load-extension";
785 // Makes Chrome default browser
786 const char kMakeDefaultBrowser[] = "make-default-browser";
788 // Use to opt-in user into Finch experiment groups.
789 const char kManualEnhancedBookmarks[] = "manual-enhanced-bookmarks";
790 const char kManualEnhancedBookmarksOptout[] =
791 "manual-enhanced-bookmarks-optout";
793 // Forces the maximum disk space to be used by the media cache, in bytes.
794 const char kMediaCacheSize[] = "media-cache-size";
796 // Enables histograming of tasks served by MessageLoop. See
797 // about:histograms/Loop for results, which show frequency of messages on each
798 // thread, including APC count, object signalling count, etc.
799 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer";
801 // Enables the recording of metrics reports but disables reporting. In contrast
802 // to kDisableMetrics, this executes all the code that a normal client would
803 // use for reporting, except the report is dropped rather than sent to the
804 // server. This is useful for finding issues in the metrics code during UI and
805 // performance tests.
806 const char kMetricsRecordingOnly[] = "metrics-recording-only";
808 // Sets the base logging level for the net log. Log 0 logs the most data.
809 // Intended primarily for use with --log-net-log.
810 const char kNetLogLevel[] = "net-log-level";
812 // Disables the default browser check. Useful for UI/browser tests where we
813 // want to avoid having the default browser info-bar displayed.
814 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
816 // By default, an https page can load images, fonts or frames from an http
817 // page. This switch overrides this to block this lesser mixed-content problem.
818 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
820 // Don't record/playback events when using record & playback.
821 const char kNoEvents[] = "no-events";
823 // Disables all experiments set on about:flags. Does not disable about:flags
824 // itself. Useful if an experiment makes chrome crash at startup: One can start
825 // chrome with --no-experiments, disable the problematic lab at about:flags and
826 // then restart chrome without this switch again.
827 const char kNoExperiments[] = "no-experiments";
829 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
830 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
831 // prevent first run from occuring the next time chrome is launched without this
832 // flag.
833 const char kNoFirstRun[] = "no-first-run";
835 // Whether or not the browser should warn if the profile is on a network share.
836 // This flag is only relevant for Windows currently.
837 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
839 // Don't send hyperlink auditing pings
840 const char kNoPings[] = "no-pings";
842 // Don't use a proxy server, always make direct connections. Overrides any
843 // other proxy server flags that are passed.
844 const char kNoProxyServer[] = "no-proxy-server";
846 // Disables the service process from adding itself as an autorun process. This
847 // does not delete existing autorun registrations, it just prevents the service
848 // from registering a new one.
849 const char kNoServiceAutorun[] = "no-service-autorun";
851 // Does not automatically open a browser window on startup (used when
852 // launching Chrome for the purpose of hosting background apps).
853 const char kNoStartupWindow[] = "no-startup-window";
855 // Disables checking whether we received an acknowledgment when registering
856 // a supervised user. Also disables the timeout during registration that waits
857 // for the ack. Useful when debugging against a server that does not
858 // support notifications.
859 const char kNoSupervisedUserAcknowledgmentCheck[] =
860 "no-managed-user-acknowledgment-check";
862 // Specifies the maximum number of threads to use for running the Proxy
863 // Autoconfig (PAC) script.
864 const char kNumPacThreads[] = "num-pac-threads";
866 // Launches URL in new browser window.
867 const char kOpenInNewWindow[] = "new-window";
869 // Force use of QUIC for requests to the specified origin.
870 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on";
872 // The time that a new chrome process which is delegating to an already running
873 // chrome process started. (See ProcessSingleton for more details.)
874 const char kOriginalProcessStartTime[] = "original-process-start-time";
876 // Enable the out of process PDF plugin.
877 const char kOutOfProcessPdf[] = "out-of-process-pdf";
879 // Packages an extension to a .crx installable file from a given directory.
880 const char kPackExtension[] = "pack-extension";
882 // Optional PEM private key to use in signing packaged .crx.
883 const char kPackExtensionKey[] = "pack-extension-key";
885 // Specifies the path to the user data folder for the parent profile.
886 const char kParentProfile[] = "parent-profile";
888 // Development flag for permission request API. This flag is needed until
889 // the API is finalized.
890 // TODO(bauerb): Remove when this flag is not needed anymore.
891 const char kPermissionRequestApiScope[] = "permission-request-api-scope";
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 kPermissionRequestApiUrl[] = "permission-request-api-url";
898 // Read previously recorded data from the cache. Only cached data is read.
899 // See kRecordMode.
900 const char kPlaybackMode[] = "playback-mode";
902 // Use the PPAPI (Pepper) Flash found at the given path.
903 const char kPpapiFlashPath[] = "ppapi-flash-path";
905 // Report the given version for the PPAPI (Pepper) Flash. The version should be
906 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
907 // defaults to "10.2.999.999".
908 const char kPpapiFlashVersion[] = "ppapi-flash-version";
910 // Triggers prerendering of search base page to prefetch results for the typed
911 // omnibox query. Only has an effect when prerender is enabled.
912 const char kPrefetchSearchResults[] = "prefetch-search-results";
914 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
915 // effect when Instant is either disabled or restricted to search, and when
916 // prerender is enabled.
917 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
918 // These are the values the kPrerenderFromOmnibox switch may have, as in
919 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
920 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
921 // disabled: No prerendering.
922 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
923 // enabled: Guaranteed prerendering.
924 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
925 // Controls speculative prerendering of pages, and content prefetching. Both
926 // are dispatched from <link rel=prefetch href=...> elements.
927 const char kPrerenderMode[] = "prerender";
928 // These are the values the kPrerenderMode switch may have, as in
929 // "--prerender=auto".
930 // auto: Allow field trial selection for prerender.
931 const char kPrerenderModeSwitchValueAuto[] = "auto";
932 // disabled: No prerendering.
933 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
934 // enabled: Prerendering.
935 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
937 // Use IPv6 only for privet HTTP.
938 const char kPrivetIPv6Only[] = "privet-ipv6-only";
940 // Outputs the product version information and quit. Used as an internal api to
941 // detect the installed version of Chrome on Linux.
942 const char kProductVersion[] = "product-version";
944 // Selects directory of profile to associate with the first browser launched.
945 const char kProfileDirectory[] = "profile-directory";
947 // Starts the sampling based profiler for the browser process at startup. This
948 // will only work if chrome has been built with the gyp variable profiling=1.
949 // The output will go to the value of kProfilingFile.
950 const char kProfilingAtStart[] = "profiling-at-start";
952 // Specifies a location for profiling output. This will only work if chrome has
953 // been built with the gyp variable profiling=1.
955 // {pid} if present will be replaced by the pid of the process.
956 // {count} if present will be incremented each time a profile is generated
957 // for this process.
958 // The default is chrome-profile-{pid}.
959 const char kProfilingFile[] = "profiling-file";
961 // Specifies a path for the output of task-level profiling which can be loaded
962 // and viewed in about:profiler.
963 const char kProfilingOutputFile[] = "profiling-output-file";
965 // Controls whether profile data is periodically flushed to a file. Normally
966 // the data gets written on exit but cases exist where chrome doesn't exit
967 // cleanly (especially when using single-process). A time in seconds can be
968 // specified.
969 const char kProfilingFlush[] = "profiling-flush";
971 // Specifies a custom URL for fetching NTP promo data.
972 const char kPromoServerURL[] = "promo-server-url";
974 // Forces proxy auto-detection.
975 const char kProxyAutoDetect[] = "proxy-auto-detect";
977 // Specifies a list of hosts for whom we bypass proxy settings and use direct
978 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
979 // specified. This is a comma-separated list of bypass rules. See:
980 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
981 const char kProxyBypassList[] = "proxy-bypass-list";
983 // Uses the pac script at the given URL
984 const char kProxyPacUrl[] = "proxy-pac-url";
986 // Uses a specified proxy server, overrides system settings. This switch only
987 // affects HTTP and HTTPS requests.
988 const char kProxyServer[] = "proxy-server";
990 // Specifies a comma separated list of QUIC connection options to send to
991 // the server.
992 const char kQuicConnectionOptions[] = "quic-connection-options";
994 // Specifies the maximum length for a QUIC packet.
995 const char kQuicMaxPacketLength[] = "quic-max-packet-length";
997 // Specifies the version of QUIC to use.
998 const char kQuicVersion[] = "quic-version";
1000 // Chrome supports a playback and record mode. Record mode saves *everything*
1001 // to the cache. Playback mode reads data exclusively from the cache. This
1002 // allows us to record a session into the cache and then replay it at will.
1003 // See also kPlaybackMode.
1004 const char kRecordMode[] = "record-mode";
1006 // Remember user proceeds through SSL interstitials for a specified amount of
1007 // time. In particular, remember these decisions through session restart. The
1008 // time delta to remember certificates should be specified in seconds.
1009 const char kRememberCertErrorDecisions[] = "remember-cert-error-decisions";
1011 // If set, the app list will forget it has been installed on startup. Note this
1012 // doesn't prevent the app list from running, it just makes Chrome think the app
1013 // list hasn't been enabled (as in kEnableAppList) yet.
1014 const char kResetAppListInstallState[] = "reset-app-list-install-state";
1016 // Indicates the last session should be restored on startup. This overrides the
1017 // preferences value and is primarily intended for testing. The value of this
1018 // switch is the number of tabs to wait until loaded before 'load completed' is
1019 // sent to the ui_test.
1020 const char kRestoreLastSession[] = "restore-last-session";
1022 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1023 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1024 // See http://crbug.com/120416 for how to remove this switch.
1025 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
1027 // If present, safebrowsing only performs update when
1028 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1029 // This is used for testing only.
1030 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
1032 // TODO(lzheng): Remove this flag once the feature works fine
1033 // (http://crbug.com/74848).
1035 // Disables safebrowsing feature that checks download url and downloads
1036 // content's hash to make sure the content are not malicious.
1037 const char kSbDisableDownloadProtection[] =
1038 "safebrowsing-disable-download-protection";
1040 // Disables safebrowsing feature that checks for blacklisted extensions.
1041 const char kSbDisableExtensionBlacklist[] =
1042 "safebrowsing-disable-extension-blacklist";
1044 // Disables safebrowsing feature that provides a side-effect free whitelist.
1045 const char kSbDisableSideEffectFreeWhitelist[] =
1046 "safebrowsing-disable-side-effect-free-whitelist";
1048 // Causes the process to run as a service process.
1049 const char kServiceProcess[] = "service";
1051 // Sets a token in the token service, for testing.
1052 const char kSetToken[] = "set-token";
1054 // If true the app list will be shown.
1055 const char kShowAppList[] = "show-app-list";
1057 // See kHideIcons.
1058 const char kShowIcons[] = "show-icons";
1060 // Marks a renderer as the signin process.
1061 const char kSigninProcess[] = "signin-process";
1063 // Does not show an infobar when an extension attaches to a page using
1064 // chrome.debugger page. Required to attach to extension background pages.
1065 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api";
1067 // Causes Chrome to launch without opening any windows by default. Useful if
1068 // one wishes to use Chrome as an ash server.
1069 const char kSilentLaunch[] = "silent-launch";
1071 // Simulates an update being available.
1072 const char kSimulateUpgrade[] = "simulate-upgrade";
1074 // Simulates a critical update being available.
1075 const char kSimulateCriticalUpdate[] = "simulate-critical-update";
1077 // Simulates that current version is outdated.
1078 const char kSimulateOutdated[] = "simulate-outdated";
1080 // Simulates that current version is outdated and auto-update is off.
1081 const char kSimulateOutdatedNoAU[] = "simulate-outdated-no-au";
1083 // Speculative resource prefetching.
1084 const char kSpeculativeResourcePrefetching[] =
1085 "speculative-resource-prefetching";
1087 // Speculative resource prefetching is disabled.
1088 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
1090 // Speculative resource prefetching will only learn about resources that need to
1091 // be prefetched but will not prefetch them.
1092 const char kSpeculativeResourcePrefetchingLearning[] = "learning";
1094 // Speculative resource prefetching is enabled.
1095 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
1097 // Specifies the URL where spelling service feedback data will be sent instead
1098 // of the default URL. This switch is for temporary testing only.
1099 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1100 // August 2013.
1101 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url";
1103 // Specifies the number of seconds between sending batches of feedback to
1104 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This
1105 // switch is for temporary testing only.
1106 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1107 // August 2013.
1108 const char kSpellingServiceFeedbackIntervalSeconds[] =
1109 "spelling-service-feedback-interval-seconds";
1111 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1112 // "tls1.2").
1113 const char kSSLVersionMax[] = "ssl-version-max";
1115 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1116 // "tls1.2").
1117 const char kSSLVersionMin[] = "ssl-version-min";
1119 // Starts the browser maximized, regardless of any previous settings.
1120 const char kStartMaximized[] = "start-maximized";
1122 // Sets the supervised user ID for any loaded or newly created profile to the
1123 // given value. Pass an empty string to mark the profile as non-supervised.
1124 // Used for testing.
1125 const char kSupervisedUserId[] = "managed-user-id";
1127 // Used to authenticate requests to the Sync service for supervised users.
1128 // Setting this switch also causes Sync to be set up for a supervised user.
1129 const char kSupervisedUserSyncToken[] = "managed-user-sync-token";
1131 // This flag causes sync to retry very quickly (see polling_constants.h) the
1132 // when it encounters an error, as the first step towards exponential backoff.
1133 const char kSyncShortInitialRetryOverride[] =
1134 "sync-short-initial-retry-override";
1136 // Overrides the default server used for profile sync.
1137 const char kSyncServiceURL[] = "sync-url";
1139 // Enables deferring sync backend initialization until user initiated changes
1140 // occur.
1141 const char kSyncDisableDeferredStartup[] = "sync-disable-deferred-startup";
1143 // Allows overriding the deferred init fallback timeout.
1144 const char kSyncDeferredStartupTimeoutSeconds[] =
1145 "sync-deferred-startup-timeout-seconds";
1147 // Enables feature to avoid unnecessary GetUpdate requests.
1148 const char kSyncEnableGetUpdateAvoidance[] =
1149 "sync-enable-get-update-avoidance";
1151 // Disable data backup when user's not signed in.
1152 const char kSyncDisableBackup[] = "disable-sync-backup";
1154 // Disable sync rollback.
1155 const char kSyncDisableRollback[] = "disable-sync-rollback";
1157 // Passes the name of the current running automated test to Chrome.
1158 const char kTestName[] = "test-name";
1160 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1161 // The value is the host:port of the trusted proxy.
1162 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy";
1164 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1165 // be used only by the upgrade process.
1166 const char kTryChromeAgain[] = "try-chrome-again";
1168 // Runs un-installation steps that were done by chrome first-run.
1169 const char kUninstall[] = "uninstall";
1171 // Overrides per-origin quota settings to unlimited storage for any
1172 // apps/origins. This should be used only for testing purpose.
1173 const char kUnlimitedStorage[] = "unlimited-storage";
1175 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1176 // testing flag.
1177 const char kUseSpdy[] = "use-spdy";
1179 // A string used to override the default user agent with a custom one.
1180 const char kUserAgent[] = "user-agent";
1182 // Specifies the user data directory, which is where the browser will look for
1183 // all of its state.
1184 const char kUserDataDir[] = "user-data-dir";
1186 // Examines a .crx for validity and prints the result.
1187 const char kValidateCrx[] = "validate-crx";
1189 // Uses experimental simple cache backend if possible.
1190 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend";
1192 // Specifies a custom URL for the server which reports variation data to the
1193 // client. Specifying this switch enables the Variations service on
1194 // unofficial builds. See variations_service.cc.
1195 const char kVariationsServerURL[] = "variations-server-url";
1197 // Prints version information and quits.
1198 const char kVersion[] = "version";
1200 // Specify the initial window position: --window-position=x,y
1201 const char kWindowPosition[] = "window-position";
1203 // Specify the initial window size: --window-size=w,h
1204 const char kWindowSize[] = "window-size";
1206 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1207 // use Chromium's network stack to fetch, and V8 to evaluate.
1208 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
1210 #if defined(ENABLE_PLUGIN_INSTALLATION)
1211 // Specifies a custom URL for fetching plug-ins metadata. Used for testing.
1212 const char kPluginsMetadataServerURL[] = "plugins-metadata-server-url";
1213 #endif
1215 #if defined(OS_ANDROID)
1216 // Disables support for playing videos on Chromecast devices.
1217 const char kDisableCast[] = "disable-cast";
1219 // Disables Contextual Search.
1220 const char kDisableContextualSearch[] = "disable-contextual-search";
1222 // Disables zero suggest experiment on Dev channel.
1223 const char kDisableZeroSuggest[] = "disable-zero-suggest";
1225 // Enable the accessibility tab switcher.
1226 const char kEnableAccessibilityTabSwitcher[] =
1227 "enable-accessibility-tab-switcher";
1229 // Enables app install alerts.
1230 const char kEnableAppInstallAlerts[] = "enable-app-install-alerts";
1232 // Enables Contextual Search.
1233 const char kEnableContextualSearch[] = "enable-contextual-search";
1235 // Enables zero suggest functionality on Dev channel, showing contextual
1236 // suggestions (EtherSuggest) for http pages and google.com search queries.
1237 const char kEnableZeroSuggestEtherSerp[] =
1238 "enable-zero-suggest-ether-serp";
1240 // Enables zero suggest functionality on Dev channel, showing contextual
1241 // suggestions (EtherSuggest) for http pages.
1242 const char kEnableZeroSuggestEtherNoSerp[] =
1243 "enable-zero-suggest-ether-noserp";
1245 // Enables zero suggest functionality on Dev channel, showing most visited
1246 // sites as default suggestions.
1247 const char kEnableZeroSuggestMostVisited[] =
1248 "enable-zero-suggest-most-visited";
1250 // Enables zero suggest functionality on Dev channel, showing recently typed
1251 // queries as default suggestions.
1252 const char kEnableZeroSuggestPersonalized[] =
1253 "enable-zero-suggest-personalized";
1255 // Enables instant search clicks feature.
1256 const char kEnableInstantSearchClicks[] = "enable-instant-search-clicks";
1258 #endif
1260 #if defined(USE_ASH)
1261 const char kOpenAsh[] = "open-ash";
1262 #endif
1264 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1265 // Specifies which password store to use (detect, default, gnome, kwallet).
1266 const char kPasswordStore[] = "password-store";
1267 #endif
1269 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1270 // Triggers migration of user data directory to another directory
1271 // specified as a parameter. The migration is done under singleton lock,
1272 // and sanity checks are made to avoid corrupting the profile.
1273 // The browser exits after migration is complete.
1274 const char kMigrateDataDirForSxS[] = "migrate-data-dir-for-sxs";
1275 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1277 #if defined(OS_MACOSX)
1278 // Prevents Chrome from quitting when Chrome Apps are open.
1279 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests";
1281 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1282 // older, SnowLeopard-style fullscreen.
1283 const char kDisableSystemFullscreenForTesting[] =
1284 "disable-system-fullscreen-for-testing";
1286 // Makes the browser window's contentView take up the full size of the
1287 // window in OSX Yosemite.
1288 const char kEnableFullSizeContentView[] = "enable-full-size-content-view";
1290 // A process type (switches::kProcessType) that relaunches the browser. See
1291 // chrome/browser/mac/relauncher.h.
1292 const char kRelauncherProcess[] = "relauncher";
1294 #endif
1296 // Use bubbles for content permissions requests instead of infobars.
1297 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles";
1299 #if defined(OS_WIN)
1300 // Fallback to XPS. By default connector uses CDD.
1301 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps";
1303 // Force-enables the profile shortcut manager. This is needed for tests since
1304 // they use a custom-user-data-dir which disables this.
1305 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager";
1307 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1308 // Windows 8 and higher. Used when relaunching metro Chrome.
1309 const char kForceImmersive[] = "force-immersive";
1311 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1312 // Windows 8 and higher. Used when relaunching metro Chrome.
1313 const char kForceDesktop[] = "force-desktop";
1315 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1316 const char kRelaunchShortcut[] = "relaunch-shortcut";
1318 // Requests that Chrome launch the Metro viewer process via the given appid
1319 // (which is assumed to be registered as default browser) and synchronously
1320 // connect to it.
1321 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid";
1323 // Waits for the given handle to be signaled before relaunching metro Chrome on
1324 // Windows 8 and higher.
1325 const char kWaitForMutex[] = "wait-for-mutex";
1327 // Indicates that chrome was launched to service a search request in Windows 8.
1328 const char kWindows8Search[] = "windows8-search";
1329 #endif
1331 #if defined(ENABLE_FULL_PRINTING) && !defined(OFFICIAL_BUILD)
1332 // Enables support to debug printing subsystem.
1333 const char kDebugPrint[] = "debug-print";
1334 #endif
1336 #ifndef NDEBUG
1337 // Enables overriding the path of file manager extension.
1338 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
1339 #endif
1341 bool AboutInSettingsEnabled() {
1342 return SettingsWindowEnabled() &&
1343 !CommandLine::ForCurrentProcess()->HasSwitch(
1344 ::switches::kDisableAboutInSettings);
1347 bool SettingsWindowEnabled() {
1348 #if defined(OS_CHROMEOS)
1349 return !CommandLine::ForCurrentProcess()->HasSwitch(
1350 ::switches::kDisableSettingsWindow);
1351 #else
1352 return CommandLine::ForCurrentProcess()->HasSwitch(
1353 ::switches::kEnableSettingsWindow);
1354 #endif
1357 // -----------------------------------------------------------------------------
1358 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1360 // You were going to just dump your switches here, weren't you? Instead, please
1361 // put them in alphabetical order above, or in order inside the appropriate
1362 // ifdef at the bottom. The order should match the header.
1363 // -----------------------------------------------------------------------------
1365 } // namespace switches