Remove the old signature of NotificationManager::closePersistent().
[chromium-blink-merge.git] / chrome / common / chrome_switches.cc
blob2084954a84dccffc4af00715f2293f0fe3df19b3
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 // Enables TLS/SSL errors on localhost to be ignored (no interstitial,
37 // no blocking of requests).
38 const char kAllowInsecureLocalhost[] = "allow-insecure-localhost";
40 #if defined(ENABLE_PLUGINS)
41 // Specifies comma-separated list of extension ids or hosts to grant
42 // access to CRX file system APIs.
43 const char kAllowNaClCrxFsAPI[] = "allow-nacl-crxfs-api";
45 // Specifies comma-separated list of extension ids or hosts to grant
46 // access to file handle APIs.
47 const char kAllowNaClFileHandleAPI[] = "allow-nacl-file-handle-api";
49 // Specifies comma-separated list of extension ids or hosts to grant
50 // access to TCP/UDP socket APIs.
51 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api";
52 #endif
54 // Don't block outdated plugins.
55 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
57 // By default, an https page cannot run JavaScript, CSS or plugins from http
58 // URLs. This provides an override to get the old insecure behavior.
59 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
61 // Specifies the threshold to be used when determining of an Alternate-Protocol
62 // advertisement will be honored. If the advertised probability is larger
63 // than the threshold, then it will be honored.
64 const char kAlternateProtocolProbabilityThreshold[] =
65 "alternate-protocol-probability-threshold";
67 // Prevents Chrome from requiring authorization to run certain widely installed
68 // but less commonly used plugins.
69 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
71 // Specifies that the extension-app with the specified id should be launched
72 // according to its configuration.
73 const char kAppId[] = "app-id";
75 // Specifies that the associated value should be launched in "application"
76 // mode.
77 const char kApp[] = "app";
79 // Overrides the apps checkout URL, which is used to determine when to expose
80 // some private APIs.
81 const char kAppsCheckoutURL[] = "apps-checkout-url";
83 // The URL that the webstore APIs download extensions from.
84 // Note: the URL must contain one '%s' for the extension ID.
85 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url";
87 // The URL to use for the gallery link in the app launcher.
88 const char kAppsGalleryURL[] = "apps-gallery-url";
90 // The update url used by gallery/webstore extensions.
91 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url";
93 // Value of GAIA auth code for --force-app-mode.
94 const char kAppModeAuthCode[] = "app-mode-auth-code";
96 // Value of OAuth2 refresh token for --force-app-mode.
97 const char kAppModeOAuth2Token[] = "app-mode-oauth-token";
99 // Enables overriding the path for the default authentication extension.
100 const char kAuthExtensionPath[] = "auth-ext-path";
102 // A flag that is used to tell Chrome that it was launched automatically at
103 // computer startup and not by some user action.
104 const char kAutoLaunchAtStartup[] = "auto-launch-at-startup";
106 // This flag makes Chrome auto-select the provided choice when an extension asks
107 // permission to start desktop capture. Should only be used for tests. For
108 // instance, --auto-select-desktop-capture-source="Entire screen" will
109 // automatically select to share the entire screen in English locales.
110 const char kAutoSelectDesktopCaptureSource[] =
111 "auto-select-desktop-capture-source";
113 // This flag causes the user engagement checks for showing app banners to be
114 // bypasses. It is intended to be used by developers who wish to test that their
115 // sites otherwise meet the criteria needed to show app banners.
116 const char kBypassAppBannerEngagementChecks[] =
117 "bypass-app-banner-engagement-checks";
119 // Certificate Transparency: Uses the provided log(s) for checking Signed
120 // Certificate Timestamps provided with certificates.
121 // The switch's value is:
122 // log_description:log_key,log_description:log_key,...
123 // where
124 // log_description is a textual description of the log.
125 // log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
126 // public key.
127 // Multiple logs can be specified by repeating description:key pairs,
128 // separated by a comma.
129 const char kCertificateTransparencyLog[] =
130 "certificate-transparency-log";
132 // How often (in seconds) to check for updates. Should only be used for testing
133 // purposes.
134 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval";
136 // Checks the cloud print connector policy, informing the service process if
137 // the policy is set to disallow the connector, then quits.
138 const char kCheckCloudPrintConnectorPolicy[] =
139 "check-cloud-print-connector-policy";
141 // Comma-separated list of SSL cipher suites to disable.
142 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
144 // Tells chrome to display the cloud print dialog and upload the specified file
145 // for printing.
146 const char kCloudPrintFile[] = "cloud-print-file";
148 // Specifies the mime type to be used when uploading data from the file
149 // referenced by cloud-print-file. Defaults to "application/pdf" if
150 // unspecified.
151 const char kCloudPrintFileType[] = "cloud-print-file-type";
153 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
154 // print job. Defaults to null if unspecified.
155 const char kCloudPrintPrintTicket[] = "cloud-print-print-ticket";
157 // Used with kCloudPrintFile to specify a title for the resulting print job.
158 const char kCloudPrintJobTitle[] = "cloud-print-job-title";
160 // Setup cloud print proxy for provided printers. This does not start
161 // service or register proxy for autostart.
162 const char kCloudPrintSetupProxy[] = "cloud-print-setup-proxy";
164 // Comma-separated list of BrowserThreads that cause browser process to crash
165 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
166 // list of BrowserThreads that are supported.
168 // For example:
169 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
170 // is not responsive for 18 seconds and the number of browser threads that
171 // are responding is less than or equal to 3.
172 const char kCrashOnHangThreads[] = "crash-on-hang-threads";
174 // Some platforms like ChromeOS default to empty desktop.
175 // Browser tests may need to add this switch so that at least one browser
176 // instance is created on startup.
177 // TODO(nkostylev): Investigate if this switch could be removed.
178 // (http://crbug.com/148675)
179 const char kCreateBrowserOnStartupForTests[] =
180 "create-browser-on-startup-for-tests";
182 // Enables a frame context menu item that toggles the frame in and out of glass
183 // mode (Windows Vista and up only).
184 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
186 // Adds debugging entries such as Inspect Element to context menus of packed
187 // apps.
188 const char kDebugPackedApps[] = "debug-packed-apps";
190 // Triggers a plethora of diagnostic modes.
191 const char kDiagnostics[] = "diagnostics";
193 // Sets the output format for diagnostic modes enabled by diagnostics flag.
194 const char kDiagnosticsFormat[] = "diagnostics-format";
196 // Tells the diagnostics mode to do the requested recovery step(s).
197 const char kDiagnosticsRecovery[] = "diagnostics-recovery";
199 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings
200 // instead of as a separate page, unless this flag is specified.
201 const char kDisableAboutInSettings[] = "disable-about-in-settings";
203 // Disables the experimental asynchronous DNS client.
204 const char kDisableAsyncDns[] = "disable-async-dns";
206 // Disable several subsystems which run network requests in the background.
207 // This is for use when doing network performance testing to avoid noise in the
208 // measurements.
209 const char kDisableBackgroundNetworking[] = "disable-background-networking";
211 // Disables the bundled PPAPI version of Flash.
212 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash";
214 // Disable hardware encoding support for Cast Streaming.
215 const char kDisableCastStreamingHWEncoding[] =
216 "disable-cast-streaming-hw-encoding";
218 // Disable the requirement of Certificate Transparency presence for EV
219 // certificate. This flag only affects the EV indicator.
220 const char kDisableCertificateTransparencyRequirementForEV[] =
221 "disable-ct-for-ev";
223 // Disables detection of child accounts.
224 const char kDisableChildAccountDetection[] =
225 "disable-child-account-detection";
227 // Disables the client-side phishing detection feature. Note that even if
228 // client-side phishing detection is enabled, it will only be active if the
229 // user has opted in to UMA stats and SafeBrowsing is enabled in the
230 // preferences.
231 const char kDisableClientSidePhishingDetection[] =
232 "disable-client-side-phishing-detection";
234 // Disable default component extensions with background pages - useful for
235 // performance tests where these pages may interfere with perf results.
236 const char kDisableComponentExtensionsWithBackgroundPages[] =
237 "disable-component-extensions-with-background-pages";
239 const char kDisableComponentUpdate[] = "disable-component-update";
241 // Disables installation of default apps on first run. This is used during
242 // automated testing.
243 const char kDisableDefaultApps[] = "disable-default-apps";
245 // Disables device discovery notifications.
246 const char kDisableDeviceDiscoveryNotifications[] =
247 "disable-device-discovery-notifications";
249 // Disables Domain Reliability Monitoring.
250 const char kDisableDomainReliability[] = "disable-domain-reliability";
252 // Disable extensions.
253 const char kDisableExtensions[] = "disable-extensions";
255 // Disable checking for user opt-in for extensions that want to inject script
256 // into file URLs (ie, always allow it). This is used during automated testing.
257 const char kDisableExtensionsFileAccessCheck[] =
258 "disable-extensions-file-access-check";
260 // Disable the net::URLRequestThrottlerManager functionality for
261 // requests originating from extensions.
262 const char kDisableExtensionsHttpThrottling[] =
263 "disable-extensions-http-throttling";
265 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
266 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
267 // bugs if something isn't working properly in the presence of IPv6. This flag
268 // can be overidden by the "enable-ipv6" flag.
269 const char kDisableIPv6[] = "disable-ipv6";
271 // Disable the behavior that the second click on a launcher item (the click when
272 // the item is already active) minimizes the item.
273 const char kDisableMinimizeOnSecondLauncherItemClick[] =
274 "disable-minimize-on-second-launcher-item-click";
276 // Disables the new bookmark app system.
277 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps";
279 // Disables the new offline error page generated by NetErrorHelper for ChromeOS
280 // and instead uses the old error page generated by OfflineResourceThrottle.
281 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page";
283 // Disables the menu on the NTP for accessing sessions from other devices.
284 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
286 // Disable auto-reload of error pages if offline.
287 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
289 // Disable only auto-reloading error pages when the tab is visible.
290 const char kDisableOfflineAutoReloadVisibleOnly[] =
291 "disable-offline-auto-reload-visible-only";
293 // Disable the out of process PDF plugin.
294 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf";
296 // Disable the setting to prompt the user for their OS account password before
297 // revealing plaintext passwords in the password manager.
298 const char kDisablePasswordManagerReauthentication[] =
299 "disable-password-manager-reauthentication";
301 // Disable the new material UI - requires out of process PDF plugin.
302 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui";
304 // Don't use bubbles for content permissions requests instead of infobars.
305 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles";
307 // Disable pop-up blocking.
308 const char kDisablePopupBlocking[] = "disable-popup-blocking";
310 // Disable speculative TCP/IP preconnection.
311 const char kDisablePreconnect[] = "disable-preconnect";
313 // Disable prerendering based on local browsing history.
314 const char kDisablePrerenderLocalPredictor[] =
315 "disable-prerender-local-predictor";
317 // Disables print preview (For testing, and for users who don't like us. :[ )
318 const char kDisablePrintPreview[] = "disable-print-preview";
320 // Normally when the user attempts to navigate to a page that was the result of
321 // a post we prompt to make sure they want to. This switch may be used to
322 // disable that check. This switch is used during automated testing.
323 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
325 // Disables support for the QUIC protocol.
326 const char kDisableQuic[] = "disable-quic";
328 // Disable use of pacing of QUIC packets.
329 // This only has an effect if QUIC protocol is enabled.
330 const char kDisableQuicPacing[] = "disable-quic-pacing";
332 // Disable use of Chromium's port selection for the ephemeral port via bind().
333 // This only has an effect if QUIC protocol is enabled.
334 const char kDisableQuicPortSelection[] = "disable-quic-port-selection";
336 // Prevents the save password bubble from being enabled.
337 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble";
339 // Prevents SDCH persistence from being used.
340 const char kDisableSdchPersistence[] = "disable-sdch-persistence";
342 // Disables using bubbles for session restore request.
343 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble";
345 // Disables the suggestions service.
346 const char kDisableSuggestionsService[] = "disable-suggestions-service";
348 // Disables the supervised user host blacklist.
349 const char kDisableSupervisedUserBlacklist[] =
350 "disable-supervised-user-blacklist";
352 // Disables SafeSites filtering for supervised users.
353 const char kDisableSupervisedUserSafeSites[] =
354 "disable-supervised-user-safesites";
356 // Disables syncing browser data to a Google Account.
357 const char kDisableSync[] = "disable-sync";
359 // Disables syncing one or more sync data types that are on by default.
360 // See sync/internal_api/public/base/model_type.h for possible types. Types
361 // should be comma separated, and follow the naming convention for string
362 // representation of model types, e.g.:
363 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles'
364 const char kDisableSyncTypes[] = "disable-sync-types";
366 // Disables the backend service for web resources.
367 const char kDisableWebResources[] = "disable-web-resources";
369 // Some tests seem to require the application to close when the last
370 // browser window is closed. Thus, we need a switch to force this behavior
371 // for ChromeOS Aura, disable "zero window mode".
372 // TODO(pkotwicz): Investigate if this bug can be removed.
373 // (http://crbug.com/119175)
374 const char kDisableZeroBrowsersOpenForTests[] =
375 "disable-zero-browsers-open-for-tests";
377 // Use a specific disk cache location, rather than one derived from the
378 // UserDatadir.
379 const char kDiskCacheDir[] = "disk-cache-dir";
381 // Forces the maximum disk space to be used by the disk cache, in bytes.
382 const char kDiskCacheSize[] = "disk-cache-size";
384 const char kDnsLogDetails[] = "dns-log-details";
386 // Disables prefetching of DNS information.
387 const char kDnsPrefetchDisable[] = "dns-prefetch-disable";
389 // Requests that a running browser process dump its collected histograms to a
390 // given file. The file is overwritten if it exists.
391 const char kDumpBrowserHistograms[] = "dump-browser-histograms";
393 // Overrides the path of Easy Unlock component app.
394 const char kEasyUnlockAppPath[] = "easy-unlock-app-path";
396 // If set, the app list will be enabled as if enabled from CWS.
397 const char kEnableAppList[] = "enable-app-list";
399 // Enable OS integration for Chrome app file associations.
400 const char kEnableAppsFileAssociations[] = "enable-apps-file-associations";
402 // Enables the experimental asynchronous DNS client.
403 const char kEnableAsyncDns[] = "enable-async-dns";
405 // Enables the benchmarking extensions.
406 const char kEnableBenchmarking[] = "enable-benchmarking";
408 // Enables the multi-level undo system for bookmarks.
409 const char kEnableBookmarkUndo[] = "enable-bookmark-undo";
411 // Enables detection of child accounts.
412 const char kEnableChildAccountDetection[] =
413 "enable-child-account-detection";
415 // This applies only when the process type is "service". Enables the Cloud
416 // Print Proxy component within the service process.
417 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
419 // If true devtools experimental settings are enabled.
420 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments";
422 // Enable device discovery notifications.
423 const char kEnableDeviceDiscoveryNotifications[] =
424 "enable-device-discovery-notifications";
426 // Enables the DOM distiller.
427 const char kEnableDomDistiller[] = "enable-dom-distiller";
429 // Enables Domain Reliability Monitoring.
430 const char kEnableDomainReliability[] = "enable-domain-reliability";
432 // Enables Download Notification.
433 const char kEnableDownloadNotification[] = "enable-download-notification";
435 // Enable Enhanced Bookmarks.
436 const char kEnhancedBookmarksExperiment[] = "enhanced-bookmarks-experiment";
438 // Enables experimentation with ephemeral apps to be launched from the webstore.
439 const char kEnableEphemeralAppsInWebstore[] =
440 "enable-ephemeral-apps-in-webstore";
442 // Enables experimental hotword features specific to always-on.
443 const char kEnableExperimentalHotwordHardware[] = "enable-hotword-hardware";
445 // Enables logging for extension activity.
446 const char kEnableExtensionActivityLogging[] =
447 "enable-extension-activity-logging";
449 const char kEnableExtensionActivityLogTesting[] =
450 "enable-extension-activity-log-testing";
452 // Enable the fast unload controller, which speeds up tab/window close by
453 // running a tab's onunload js handler independently of the GUI -
454 // crbug.com/142458 .
455 const char kEnableFastUnload[] = "enable-fast-unload";
457 // Enables IPv6 support, even if probes suggest that it may not be fully
458 // supported. Some probes may require internet connections, and this flag will
459 // allow support independent of application testing. This flag overrides
460 // "disable-ipv6" which appears elswhere in this file.
461 const char kEnableIPv6[] = "enable-ipv6";
463 // Enables experimentation with launching ephemeral apps via hyperlinks.
464 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps";
466 // Enables the material design Settings feature.
467 const char kEnableMaterialDesignSettings[] = "enable-md-settings";
469 // Runs the Native Client inside the renderer process and enables GPU plugin
470 // (internally adds lEnableGpuPlugin to the command line).
471 const char kEnableNaCl[] = "enable-nacl";
473 // Enables the network-related benchmarking extensions.
474 const char kEnableNetBenchmarking[] = "enable-net-benchmarking";
476 // Enables the new bookmark app system.
477 const char kEnableNewBookmarkApps[] = "enable-new-bookmark-apps";
479 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
480 // HTTP is still used for all requests.
481 const char kEnableNpnHttpOnly[] = "enable-npn-http";
483 // Enable auto-reload of error pages if offline.
484 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
486 // Only auto-reload error pages when the tab is visible.
487 const char kEnableOfflineAutoReloadVisibleOnly[] =
488 "enable-offline-auto-reload-visible-only";
490 // Enable the out of process PDF plugin.
491 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf";
493 // Enables panels (always on-top docked pop-up windows).
494 const char kEnablePanels[] = "enable-panels";
496 // Enable the new material UI - requires out of process PDF plugin.
497 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui";
499 // Enables presenting plugin placeholder content as shadow DOM.
500 const char kEnablePluginPlaceholderShadowDom[] =
501 "enable-plugin-placeholder-shadow-dom";
503 // Enables a number of potentially annoying security features (strict mixed
504 // content mode, powerful feature restrictions, etc.)
505 const char kEnablePotentiallyAnnoyingSecurityFeatures[] =
506 "enable-potentially-annoying-security-features";
508 // Enables the Power overlay in Settings.
509 const char kEnablePowerOverlay[] = "enable-power-overlay";
511 // Enables showing unregistered printers in print preview
512 const char kEnablePrintPreviewRegisterPromos[] =
513 "enable-print-preview-register-promos";
515 // Enable Privet storage.
516 const char kEnablePrivetStorage[] = "enable-privet-storage";
518 // Enables tracking of tasks in profiler for viewing via about:profiler.
519 // To predominantly disable tracking (profiling), use the command line switch:
520 // --enable-profiling=0
521 // Some tracking will still take place at startup, but it will be turned off
522 // during chrome_browser_main.
523 const char kEnableProfiling[] = "enable-profiling";
525 // Enables query in the omnibox.
526 const char kEnableQueryExtraction[] = "enable-query-extraction";
528 // Enables support for the QUIC protocol. This is a temporary testing flag.
529 const char kEnableQuic[] = "enable-quic";
531 // Disable use of pacing of QUIC packets.
532 // This only has an effect if QUIC protocol is enabled.
533 const char kEnableQuicPacing[] = "enable-quic-pacing";
535 // Enable use of Chromium's port selection for the ephemeral port via bind().
536 // This only has an effect if QUIC protocol is enabled.
537 const char kEnableQuicPortSelection[] = "enable-quic-port-selection";
539 // Enables context-sensitive reader mode button in the toolbar.
540 const char kEnableReaderModeToolbarIcon[] =
541 "enable-reader-mode-toolbar-icon";
543 // Enables save password prompt bubble.
544 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble";
546 // Enables SDCH for https schemes.
547 const char kEnableSdchOverHttps[] = "enable-sdch-over-https";
549 // Enables SDCH persistence.
550 const char kEnableSdchPersistence[] = "enable-sdch-persistence";
552 // Enables using bubbles for session restore request instead of infobars.
553 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble";
555 // Enable or disable settings in a separate browser window per profile
556 // (see SettingsWindowEnabled() below).
557 const char kEnableSettingsWindow[] = "enable-settings-window";
558 const char kDisableSettingsWindow[] = "disable-settings-window";
560 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag.
561 const char kEnableSpdy4[] = "enable-spdy4";
563 // Enables implementation of the Cache-Control: stale-while-revalidate directive
564 // which permits servers to allow the use of stale resources while revalidation
565 // proceeds in the background.
566 const char kEnableStaleWhileRevalidate[] = "enable-stale-while-revalidate";
568 // Enables the suggestions service.
569 const char kEnableSuggestionsService[] = "enable-suggestions-service";
571 // Enables the supervised user host blacklist.
572 const char kEnableSupervisedUserBlacklist[] =
573 "enable-supervised-user-blacklist";
575 // Enables the supervised user managed bookmarks folder.
576 const char kEnableSupervisedUserManagedBookmarksFolder[] =
577 "enable-supervised-user-managed-bookmarks-folder";
579 // Enables SafeSites filtering for supervised users.
580 const char kEnableSupervisedUserSafeSites[] =
581 "enable-supervised-user-safesites";
583 // Enables synced articles.
584 const char kEnableSyncArticles[] = "enable-sync-articles";
586 // Enables user control over muting tab audio from the tab strip.
587 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting";
589 // Enables fanciful thumbnail processing. Used with NTP for
590 // instant-extended-api, where thumbnails are generally smaller.
591 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting";
593 // Enables Translate experimental new UX which replaces the infobar.
594 const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
596 // Enables Alternate-Protocol when the port is user controlled (> 1024).
597 const char kEnableUserAlternateProtocolPorts[] =
598 "enable-user-controlled-alternate-protocol-ports";
600 // Enables a new "web app" style frame for hosted apps (including bookmark
601 // apps).
602 extern const char kEnableWebAppFrame[] = "enable-web-app-frame";
604 // Enables the Website Settings page on the Settings page.
605 const char kEnableWebsiteSettingsManager[] = "enable-website-settings-manager";
607 // Enables synchronizing WiFi credentials across devices, using Chrome Sync.
608 const char kEnableWifiCredentialSync[] = "enable-wifi-credential-sync";
610 // Explicitly allows additional ports using a comma-separated list of port
611 // numbers.
612 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports";
614 // Values for the kExtensionContentVerification flag.
615 // See ContentVerifierDelegate::Mode for more explanation.
616 const char kExtensionContentVerificationBootstrap[] = "bootstrap";
617 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict";
618 const char kExtensionContentVerificationEnforce[] = "enforce";
620 // Name of the command line flag to force content verification to be on in one
621 // of various modes.
622 const char kExtensionContentVerification[] = "extension-content-verification";
624 // Turns on extension install verification if it would not otherwise have been
625 // turned on.
626 const char kExtensionsInstallVerification[] = "extensions-install-verification";
628 // Specifies a comma-separated list of extension ids that should be forced to
629 // be treated as not from the webstore when doing install verification.
630 const char kExtensionsNotWebstore[] = "extensions-not-webstore";
632 // Frequency in seconds for Extensions auto-update.
633 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency";
635 // Fakes the channel of the browser for purposes of Variations filtering. This
636 // is to be used for testing only. Possible values are "stable", "beta", "dev"
637 // and "canary". Note that this only applies if the browser's reported channel
638 // is UNKNOWN.
639 const char kFakeVariationsChannel[] = "fake-variations-channel";
641 // If this flag is present then this command line is being delegated to an
642 // already running chrome process via the fast path, ie: before chrome.dll is
643 // loaded. It is useful to tell the difference for tracking purposes.
644 const char kFastStart[] = "fast-start";
646 // These two flags are added around the switches about:flags adds to the
647 // command line. This is useful to see which switches were added by about:flags
648 // on about:version. They don't have any effect.
649 const char kFlagSwitchesBegin[] = "flag-switches-begin";
650 const char kFlagSwitchesEnd[] = "flag-switches-end";
652 // Forces application mode. This hides certain system UI elements and forces
653 // the app to be installed if it hasn't been already.
654 const char kForceAppMode[] = "force-app-mode";
656 // Displays the First Run experience when the browser is started, regardless of
657 // whether or not it's actually the First Run (this overrides kNoFirstRun).
658 const char kForceFirstRun[] = "force-first-run";
660 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
661 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
662 // prefixed with the character "t" will be treated as Trigger Variation Ids.
663 const char kForceVariationIds[] = "force-variation-ids";
665 // These flags show the man page on Linux. They are equivalent to each
666 // other.
667 const char kHelp[] = "help";
668 const char kHelpShort[] = "h";
670 // Makes Windows happy by allowing it to show "Enable access to this program"
671 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
672 // shows an error box because the only way to hide Chrome is by uninstalling
673 // it.
674 const char kHideIcons[] = "hide-icons";
676 // Enables grouping websites by domain and filtering them by period.
677 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
679 // Specifies which page will be displayed in newly-opened tabs. We need this
680 // for testing purposes so that the UI tests don't depend on what comes up for
681 // http://google.com.
682 const char kHomePage[] = "homepage";
684 // Comma-separated list of rules that control how hostnames are mapped.
686 // For example:
687 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
688 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
689 // resolved to "proxy".
690 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
691 // Will also force the port of the resulting
692 // socket address to be 77.
693 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
694 // except for "www.google.com".
696 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
697 // connect and host resolver in a direct connection, and the CONNECT in an http
698 // proxy connection, and the endpoint host in a SOCKS proxy connection).
699 const char kHostRules[] = "host-rules";
701 // The maximum number of retry attempts to resolve the host. Set this to zero
702 // to disable host resolver retry attempts.
703 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts";
705 // Causes net::URLFetchers to ignore requests for SSL client certificates,
706 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
707 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
708 // kSyncServiceURL, etc)
709 const char kIgnoreUrlFetcherCertRequests[] =
710 "ignore-urlfetcher-cert-requests";
712 // Causes the browser to launch directly in incognito mode.
713 const char kIncognito[] = "incognito";
715 // Causes Chrome to initiate an installation flow for the given app.
716 const char kInstallChromeApp[] = "install-chrome-app";
718 // Causes Chrome to attempt to get metadata from the webstore for the
719 // app/extension ID given, and then prompt the user to download and install it.
720 // This is allowed *only* for ephemeral apps. All other ids will be ignored.
721 const char kInstallEphemeralAppFromWebstore[] =
722 "install-ephemeral-app-from-webstore";
724 // A list of whitelists to install for a supervised user, for testing.
725 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...]
726 const char kInstallSupervisedUserWhitelists[] =
727 "install-supervised-user-whitelists";
729 // Marks a renderer as an Instant process.
730 const char kInstantProcess[] = "instant-process";
732 // Invalidation service should use GCM network channel even if experiment is not
733 // enabled.
734 const char kInvalidationUseGCMChannel[] = "invalidation-use-gcm-channel";
736 // Disable latest shipping ECMAScript 6 features.
737 const char kDisableJavaScriptHarmonyShipping[] =
738 "disable-javascript-harmony-shipping";
740 // Enables experimental Harmony (ECMAScript 6) features.
741 const char kJavaScriptHarmony[] = "javascript-harmony";
743 // Dumps IPC messages sent from renderer processes to the browser process to
744 // the given directory. Used primarily to gather samples for IPC fuzzing.
745 const char kIpcDumpDirectory[] = "ipc-dump-directory";
747 // Specifies the testcase used by the IPC fuzzer.
748 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
750 // Used for testing - keeps browser alive after last browser window closes.
751 const char kKeepAliveForTest[] = "keep-alive-for-test";
753 // Enable Kiosk mode.
754 const char kKioskMode[] = "kiosk";
756 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
757 // See http://crbug.com/31395.
758 const char kKioskModePrinting[] = "kiosk-printing";
760 // Comma-separated list of directories with component extensions to load.
761 const char kLoadComponentExtension[] = "load-component-extension";
763 // Loads an extension from the specified directory.
764 const char kLoadExtension[] = "load-extension";
766 // Makes Chrome default browser
767 const char kMakeDefaultBrowser[] = "make-default-browser";
769 // Use to opt-in user into Finch experiment groups.
770 const char kManualEnhancedBookmarks[] = "manual-enhanced-bookmarks";
771 const char kManualEnhancedBookmarksOptout[] =
772 "manual-enhanced-bookmarks-optout";
774 // Use to opt-in to marking HTTP as non-secure.
775 const char kMarkNonSecureAs[] = "mark-non-secure-as";
776 const char kMarkNonSecureAsNeutral[] = "neutral";
777 const char kMarkNonSecureAsDubious[] = "dubious";
778 const char kMarkNonSecureAsNonSecure[] = "non-secure";
780 // Forces the maximum disk space to be used by the media cache, in bytes.
781 const char kMediaCacheSize[] = "media-cache-size";
783 // Enables histograming of tasks served by MessageLoop. See
784 // about:histograms/Loop for results, which show frequency of messages on each
785 // thread, including APC count, object signalling count, etc.
786 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer";
788 // Enables the recording of metrics reports but disables reporting. In contrast
789 // to kDisableMetrics, this executes all the code that a normal client would
790 // use for reporting, except the report is dropped rather than sent to the
791 // server. This is useful for finding issues in the metrics code during UI and
792 // performance tests.
793 const char kMetricsRecordingOnly[] = "metrics-recording-only";
795 // Allows setting a different destination ID for connection-monitoring GCM
796 // messages. Useful when running against a non-prod management server.
797 const char kMonitoringDestinationID[] = "monitoring-destination-id";
799 // Sets the base logging level for the net log. Log 0 logs the most data.
800 // Intended primarily for use with --log-net-log.
801 const char kNetLogLevel[] = "net-log-level";
803 // Disables the default browser check. Useful for UI/browser tests where we
804 // want to avoid having the default browser info-bar displayed.
805 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
807 // By default, an https page can load images, fonts or frames from an http
808 // page. This switch overrides this to block this lesser mixed-content problem.
809 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
811 // Don't record/playback events when using record & playback.
812 const char kNoEvents[] = "no-events";
814 // Disables all experiments set on about:flags. Does not disable about:flags
815 // itself. Useful if an experiment makes chrome crash at startup: One can start
816 // chrome with --no-experiments, disable the problematic lab at about:flags and
817 // then restart chrome without this switch again.
818 const char kNoExperiments[] = "no-experiments";
820 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
821 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
822 // prevent first run from occuring the next time chrome is launched without this
823 // flag.
824 const char kNoFirstRun[] = "no-first-run";
826 // Whether or not the browser should warn if the profile is on a network share.
827 // This flag is only relevant for Windows currently.
828 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
830 // Don't send hyperlink auditing pings
831 const char kNoPings[] = "no-pings";
833 // Don't use a proxy server, always make direct connections. Overrides any
834 // other proxy server flags that are passed.
835 const char kNoProxyServer[] = "no-proxy-server";
837 // Disables the service process from adding itself as an autorun process. This
838 // does not delete existing autorun registrations, it just prevents the service
839 // from registering a new one.
840 const char kNoServiceAutorun[] = "no-service-autorun";
842 // Does not automatically open a browser window on startup (used when
843 // launching Chrome for the purpose of hosting background apps).
844 const char kNoStartupWindow[] = "no-startup-window";
846 // Disables checking whether we received an acknowledgment when registering
847 // a supervised user. Also disables the timeout during registration that waits
848 // for the ack. Useful when debugging against a server that does not
849 // support notifications.
850 const char kNoSupervisedUserAcknowledgmentCheck[] =
851 "no-managed-user-acknowledgment-check";
853 // Specifies the maximum number of threads to use for running the Proxy
854 // Autoconfig (PAC) script.
855 const char kNumPacThreads[] = "num-pac-threads";
857 // Launches URL in new browser window.
858 const char kOpenInNewWindow[] = "new-window";
860 // Force use of QUIC for requests to the specified origin.
861 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on";
863 // The time that a new chrome process which is delegating to an already running
864 // chrome process started. (See ProcessSingleton for more details.)
865 const char kOriginalProcessStartTime[] = "original-process-start-time";
867 // Packages an extension to a .crx installable file from a given directory.
868 const char kPackExtension[] = "pack-extension";
870 // Optional PEM private key to use in signing packaged .crx.
871 const char kPackExtensionKey[] = "pack-extension-key";
873 // Specifies the path to the user data folder for the parent profile.
874 const char kParentProfile[] = "parent-profile";
876 // Development flag for permission request API. This flag is needed until
877 // the API is finalized.
878 // TODO(bauerb): Remove when this flag is not needed anymore.
879 const char kPermissionRequestApiScope[] = "permission-request-api-scope";
881 // Development flag for permission request API. This flag is needed until
882 // the API is finalized.
883 // TODO(bauerb): Remove when this flag is not needed anymore.
884 const char kPermissionRequestApiUrl[] = "permission-request-api-url";
886 // Read previously recorded data from the cache. Only cached data is read.
887 // See kRecordMode.
888 const char kPlaybackMode[] = "playback-mode";
890 // Use the PPAPI (Pepper) Flash found at the given path.
891 const char kPpapiFlashPath[] = "ppapi-flash-path";
893 // Report the given version for the PPAPI (Pepper) Flash. The version should be
894 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
895 // defaults to "10.2.999.999".
896 const char kPpapiFlashVersion[] = "ppapi-flash-version";
898 // Triggers prerendering of search base page to prefetch results for the typed
899 // omnibox query. Only has an effect when prerender is enabled.
900 const char kPrefetchSearchResults[] = "prefetch-search-results";
902 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
903 // effect when Instant is either disabled or restricted to search, and when
904 // prerender is enabled.
905 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
906 // These are the values the kPrerenderFromOmnibox switch may have, as in
907 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
908 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
909 // disabled: No prerendering.
910 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
911 // enabled: Guaranteed prerendering.
912 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
913 // Controls speculative prerendering of pages, and content prefetching. Both
914 // are dispatched from <link rel=prefetch href=...> elements.
915 const char kPrerenderMode[] = "prerender";
916 // These are the values the kPrerenderMode switch may have, as in
917 // "--prerender=auto".
918 // auto: Allow field trial selection for prerender.
919 const char kPrerenderModeSwitchValueAuto[] = "auto";
920 // disabled: No prerendering.
921 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
922 // enabled: Prerendering.
923 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
925 // Use IPv6 only for privet HTTP.
926 const char kPrivetIPv6Only[] = "privet-ipv6-only";
928 // Outputs the product version information and quit. Used as an internal api to
929 // detect the installed version of Chrome on Linux.
930 const char kProductVersion[] = "product-version";
932 // Selects directory of profile to associate with the first browser launched.
933 const char kProfileDirectory[] = "profile-directory";
935 // Starts the sampling based profiler for the browser process at startup. This
936 // will only work if chrome has been built with the gyp variable profiling=1.
937 // The output will go to the value of kProfilingFile.
938 const char kProfilingAtStart[] = "profiling-at-start";
940 // Specifies a location for profiling output. This will only work if chrome has
941 // been built with the gyp variable profiling=1.
943 // {pid} if present will be replaced by the pid of the process.
944 // {count} if present will be incremented each time a profile is generated
945 // for this process.
946 // The default is chrome-profile-{pid}.
947 const char kProfilingFile[] = "profiling-file";
949 // Controls whether profile data is periodically flushed to a file. Normally
950 // the data gets written on exit but cases exist where chrome doesn't exit
951 // cleanly (especially when using single-process). A time in seconds can be
952 // specified.
953 const char kProfilingFlush[] = "profiling-flush";
955 // Forces proxy auto-detection.
956 const char kProxyAutoDetect[] = "proxy-auto-detect";
958 // Specifies a list of hosts for whom we bypass proxy settings and use direct
959 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
960 // specified. This is a comma-separated list of bypass rules. See:
961 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
962 const char kProxyBypassList[] = "proxy-bypass-list";
964 // Uses the pac script at the given URL
965 const char kProxyPacUrl[] = "proxy-pac-url";
967 // Uses a specified proxy server, overrides system settings. This switch only
968 // affects HTTP and HTTPS requests.
969 const char kProxyServer[] = "proxy-server";
971 // Specifies a comma separated list of QUIC connection options to send to
972 // the server.
973 const char kQuicConnectionOptions[] = "quic-connection-options";
975 // Specifies the maximum length for a QUIC packet.
976 const char kQuicMaxPacketLength[] = "quic-max-packet-length";
978 // Specifies the version of QUIC to use.
979 const char kQuicVersion[] = "quic-version";
981 // Chrome supports a playback and record mode. Record mode saves *everything*
982 // to the cache. Playback mode reads data exclusively from the cache. This
983 // allows us to record a session into the cache and then replay it at will.
984 // See also kPlaybackMode.
985 const char kRecordMode[] = "record-mode";
987 // Remember user proceeds through SSL interstitials for a specified amount of
988 // time. In particular, remember these decisions through session restart. The
989 // time delta to remember certificates should be specified in seconds.
990 const char kRememberCertErrorDecisions[] = "remember-cert-error-decisions";
992 // If set, the app list will forget it has been installed on startup. Note this
993 // doesn't prevent the app list from running, it just makes Chrome think the app
994 // list hasn't been enabled (as in kEnableAppList) yet.
995 const char kResetAppListInstallState[] = "reset-app-list-install-state";
997 // Indicates the last session should be restored on startup. This overrides the
998 // preferences value and is primarily intended for testing. The value of this
999 // switch is the number of tabs to wait until loaded before 'load completed' is
1000 // sent to the ui_test.
1001 const char kRestoreLastSession[] = "restore-last-session";
1003 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1004 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1005 // See http://crbug.com/120416 for how to remove this switch.
1006 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
1008 // If present, safebrowsing only performs update when
1009 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1010 // This is used for testing only.
1011 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
1013 // TODO(lzheng): Remove this flag once the feature works fine
1014 // (http://crbug.com/74848).
1016 // Disables safebrowsing feature that checks download url and downloads
1017 // content's hash to make sure the content are not malicious.
1018 const char kSbDisableDownloadProtection[] =
1019 "safebrowsing-disable-download-protection";
1021 // Disables safebrowsing feature that checks for blacklisted extensions.
1022 const char kSbDisableExtensionBlacklist[] =
1023 "safebrowsing-disable-extension-blacklist";
1025 // Disables safebrowsing feature that provides a side-effect free whitelist.
1026 const char kSbDisableSideEffectFreeWhitelist[] =
1027 "safebrowsing-disable-side-effect-free-whitelist";
1029 // Causes the process to run as a service process.
1030 const char kServiceProcess[] = "service";
1032 // Sets a token in the token service, for testing.
1033 const char kSetToken[] = "set-token";
1035 // If true the app list will be shown.
1036 const char kShowAppList[] = "show-app-list";
1038 // See kHideIcons.
1039 const char kShowIcons[] = "show-icons";
1041 // Command line flag offering a "Show saved copy" option to the user if offline.
1042 // The various modes are disabled, primary, or secondary. Primary/secondary
1043 // refers to button placement (for experiment).
1044 const char kShowSavedCopy[] = "show-saved-copy";
1046 // Values for the kShowSavedCopy flag.
1047 const char kEnableShowSavedCopyPrimary[] = "primary";
1048 const char kEnableShowSavedCopySecondary[] = "secondary";
1049 const char kDisableShowSavedCopy[] = "disable";
1051 // Marks a renderer as the signin process.
1052 const char kSigninProcess[] = "signin-process";
1054 // Does not show an infobar when an extension attaches to a page using
1055 // chrome.debugger page. Required to attach to extension background pages.
1056 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api";
1058 // Causes Chrome to launch without opening any windows by default. Useful if
1059 // one wishes to use Chrome as an ash server.
1060 const char kSilentLaunch[] = "silent-launch";
1062 // Simulates that elevation is needed to recover upgrade channel.
1063 const char kSimulateElevatedRecovery[] = "simulate-elevated-recovery";
1065 // Simulates a critical update being available.
1066 const char kSimulateCriticalUpdate[] = "simulate-critical-update";
1068 // Simulates that current version is outdated.
1069 const char kSimulateOutdated[] = "simulate-outdated";
1071 // Simulates that current version is outdated and auto-update is off.
1072 const char kSimulateOutdatedNoAU[] = "simulate-outdated-no-au";
1074 // Simulates an update being available.
1075 const char kSimulateUpgrade[] = "simulate-upgrade";
1077 // Speculative resource prefetching.
1078 const char kSpeculativeResourcePrefetching[] =
1079 "speculative-resource-prefetching";
1081 // Speculative resource prefetching is disabled.
1082 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
1084 // Speculative resource prefetching will only learn about resources that need to
1085 // be prefetched but will not prefetch them.
1086 const char kSpeculativeResourcePrefetchingLearning[] = "learning";
1088 // Speculative resource prefetching is enabled.
1089 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
1091 #if defined(ENABLE_SPELLCHECK)
1092 // Enables auto correction for misspelled words.
1093 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct";
1094 #endif
1096 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1097 // "tls1.2").
1098 const char kSSLVersionMax[] = "ssl-version-max";
1100 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1101 // "tls1.2").
1102 const char kSSLVersionMin[] = "ssl-version-min";
1104 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1105 // "tls1.2") that TLS fallback will accept.
1106 const char kSSLVersionFallbackMin[] = "ssl-version-fallback-min";
1108 // These values aren't switches, but rather the values that kSSLVersionMax,
1109 // kSSLVersionMin and kSSLVersionFallbackMin can have.
1110 const char kSSLVersionSSLv3[] = "ssl3";
1111 const char kSSLVersionTLSv1[] = "tls1";
1112 const char kSSLVersionTLSv11[] = "tls1.1";
1113 const char kSSLVersionTLSv12[] = "tls1.2";
1115 // Starts the browser maximized, regardless of any previous settings.
1116 const char kStartMaximized[] = "start-maximized";
1118 // Sets the supervised user ID for any loaded or newly created profile to the
1119 // given value. Pass an empty string to mark the profile as non-supervised.
1120 // Used for testing.
1121 const char kSupervisedUserId[] = "managed-user-id";
1123 // Used to authenticate requests to the Sync service for supervised users.
1124 // Setting this switch also causes Sync to be set up for a supervised user.
1125 const char kSupervisedUserSyncToken[] = "managed-user-sync-token";
1127 // This flag causes sync to retry very quickly (see polling_constants.h) the
1128 // when it encounters an error, as the first step towards exponential backoff.
1129 const char kSyncShortInitialRetryOverride[] =
1130 "sync-short-initial-retry-override";
1132 // Overrides the default server used for profile sync.
1133 const char kSyncServiceURL[] = "sync-url";
1135 // Enables deferring sync backend initialization until user initiated changes
1136 // occur.
1137 const char kSyncDisableDeferredStartup[] = "sync-disable-deferred-startup";
1139 // Allows overriding the deferred init fallback timeout.
1140 const char kSyncDeferredStartupTimeoutSeconds[] =
1141 "sync-deferred-startup-timeout-seconds";
1143 // Enables feature to avoid unnecessary GetUpdate requests.
1144 const char kSyncEnableGetUpdateAvoidance[] =
1145 "sync-enable-get-update-avoidance";
1147 // Disable data backup when user's not signed in.
1148 const char kSyncDisableBackup[] = "disable-sync-backup";
1150 // Disable sync rollback.
1151 const char kSyncDisableRollback[] = "disable-sync-rollback";
1153 // Passes the name of the current running automated test to Chrome.
1154 const char kTestName[] = "test-name";
1156 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1157 // The value is the host:port of the trusted proxy.
1158 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy";
1160 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1161 // be used only by the upgrade process.
1162 const char kTryChromeAgain[] = "try-chrome-again";
1164 // Runs un-installation steps that were done by chrome first-run.
1165 const char kUninstall[] = "uninstall";
1167 // Overrides per-origin quota settings to unlimited storage for any
1168 // apps/origins. This should be used only for testing purpose.
1169 const char kUnlimitedStorage[] = "unlimited-storage";
1171 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1172 // testing flag.
1173 const char kUseSpdy[] = "use-spdy";
1175 // A string used to override the default user agent with a custom one.
1176 const char kUserAgent[] = "user-agent";
1178 // Specifies the user data directory, which is where the browser will look for
1179 // all of its state.
1180 const char kUserDataDir[] = "user-data-dir";
1182 // Examines a .crx for validity and prints the result.
1183 const char kValidateCrx[] = "validate-crx";
1185 // Uses experimental simple cache backend if possible.
1186 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend";
1188 // Enables using an in-process Mojo service for the v8 proxy resolver.
1189 const char kV8PacMojoInProcess[] = "v8-pac-mojo-in-process";
1191 // Enables using an out-of-process Mojo service for the v8 proxy resolver.
1192 const char kV8PacMojoOutOfProcess[] = "v8-pac-mojo-out-of-process";
1194 // Specifies a custom URL for the server which reports variation data to the
1195 // client. Specifying this switch enables the Variations service on
1196 // unofficial builds. See variations_service.cc.
1197 const char kVariationsServerURL[] = "variations-server-url";
1199 // Prints version information and quits.
1200 const char kVersion[] = "version";
1202 // Specify the initial window position: --window-position=x,y
1203 const char kWindowPosition[] = "window-position";
1205 // Specify the initial window size: --window-size=w,h
1206 const char kWindowSize[] = "window-size";
1208 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1209 // use Chromium's network stack to fetch, and V8 to evaluate.
1210 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
1212 // Specifies which category option was clicked in the Windows Jumplist that
1213 // resulted in a browser startup.
1214 const char kWinJumplistAction[] = "win-jumplist-action";
1216 #if defined(OS_ANDROID)
1217 // Disables support for playing videos on Chromecast devices.
1218 const char kDisableCast[] = "disable-cast";
1220 // Disables Contextual Search.
1221 const char kDisableContextualSearch[] = "disable-contextual-search";
1223 // Disables zero suggest experiment on Dev channel.
1224 const char kDisableZeroSuggest[] = "disable-zero-suggest";
1226 // Enable the accessibility tab switcher.
1227 const char kEnableAccessibilityTabSwitcher[] =
1228 "enable-accessibility-tab-switcher";
1230 // Enables app install alerts.
1231 const char kEnableAppInstallAlerts[] = "enable-app-install-alerts";
1233 // Enables Contextual Search.
1234 const char kEnableContextualSearch[] = "enable-contextual-search";
1236 // Enables zero suggest functionality on Dev channel, showing most visited
1237 // sites as default suggestions.
1238 const char kEnableZeroSuggestMostVisited[] =
1239 "enable-zero-suggest-most-visited";
1241 // Enable zero suggest functionality on Dev channel, showing most visited
1242 // sites on non-search-result pages as default suggestions.
1243 const char kEnableZeroSuggestMostVisitedWithoutSerp[] =
1244 "enable-zero-suggest-most-visited-without-serp";
1246 // Enables instant search clicks feature.
1247 const char kEnableInstantSearchClicks[] = "enable-instant-search-clicks";
1249 #endif
1251 #if defined(USE_ASH)
1252 const char kOpenAsh[] = "open-ash";
1253 #endif
1255 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1256 // Specifies which password store to use (detect, default, gnome, kwallet).
1257 const char kPasswordStore[] = "password-store";
1258 #endif
1260 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1261 // Triggers migration of user data directory to another directory
1262 // specified as a parameter. The migration is done under singleton lock,
1263 // and sanity checks are made to avoid corrupting the profile.
1264 // The browser exits after migration is complete.
1265 const char kMigrateDataDirForSxS[] = "migrate-data-dir-for-sxs";
1266 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1268 #if defined(OS_MACOSX)
1269 // Prevents Chrome from quitting when Chrome Apps are open.
1270 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests";
1272 // Shows a notification when quitting Chrome with hosted apps running. Default
1273 // behavior is to also quit all hosted apps.
1274 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification";
1276 // Disables app shim creation for hosted apps on Mac.
1277 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation";
1279 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1280 // older, SnowLeopard-style fullscreen.
1281 const char kDisableSystemFullscreenForTesting[] =
1282 "disable-system-fullscreen-for-testing";
1284 // A process type (switches::kProcessType) that relaunches the browser. See
1285 // chrome/browser/mac/relauncher.h.
1286 const char kRelauncherProcess[] = "relauncher";
1288 #endif
1290 // Use bubbles for content permissions requests instead of infobars.
1291 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles";
1293 #if defined(OS_WIN)
1294 // Fallback to XPS. By default connector uses CDD.
1295 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps";
1297 // Force-enables the profile shortcut manager. This is needed for tests since
1298 // they use a custom-user-data-dir which disables this.
1299 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager";
1301 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1302 // Windows 8 and higher. Used when relaunching metro Chrome.
1303 const char kForceImmersive[] = "force-immersive";
1305 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1306 // Windows 8 and higher. Used when relaunching metro Chrome.
1307 const char kForceDesktop[] = "force-desktop";
1309 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1310 const char kRelaunchShortcut[] = "relaunch-shortcut";
1312 // Requests that Chrome launch the Metro viewer process via the given appid
1313 // (which is assumed to be registered as default browser) and synchronously
1314 // connect to it.
1315 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid";
1317 // Waits for the given handle to be signaled before relaunching metro Chrome on
1318 // Windows 8 and higher.
1319 const char kWaitForMutex[] = "wait-for-mutex";
1321 // Indicates that chrome was launched to service a search request in Windows 8.
1322 const char kWindows8Search[] = "windows8-search";
1323 #endif
1325 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1326 // Enables support to debug printing subsystem.
1327 const char kDebugPrint[] = "debug-print";
1328 #endif
1330 #ifndef NDEBUG
1331 // Enables overriding the path of file manager extension.
1332 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
1333 #endif
1335 bool AboutInSettingsEnabled() {
1336 return SettingsWindowEnabled() &&
1337 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1338 ::switches::kDisableAboutInSettings);
1341 // Will return true as a default value if the "disable-new-offline-error-page"
1342 // command-line switch is not available.
1343 bool NewOfflineErrorPageEnabled() {
1344 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1345 ::switches::kDisableNewOfflineErrorPage);
1348 bool OutOfProcessPdfEnabled() {
1349 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
1350 return true;
1352 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1353 kDisableOutOfProcessPdf))
1354 return false;
1356 // Default.
1357 return true;
1360 bool PdfMaterialUIEnabled() {
1361 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1362 return true;
1364 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1365 return false;
1367 // Default.
1368 return false;
1372 bool MdSettingsEnabled() {
1373 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1374 ::switches::kEnableMaterialDesignSettings);
1377 bool SettingsWindowEnabled() {
1378 #if defined(OS_CHROMEOS)
1379 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1380 ::switches::kDisableSettingsWindow);
1381 #else
1382 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1383 ::switches::kEnableSettingsWindow);
1384 #endif
1387 #if defined(OS_CHROMEOS)
1388 bool PowerOverlayEnabled() {
1389 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1390 ::switches::kEnablePowerOverlay);
1392 #endif
1394 // -----------------------------------------------------------------------------
1395 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1397 // You were going to just dump your switches here, weren't you? Instead, please
1398 // put them in alphabetical order above, or in order inside the appropriate
1399 // ifdef at the bottom. The order should match the header.
1400 // -----------------------------------------------------------------------------
1402 } // namespace switches