Roll WebRTC 9532:9541, Libjingle 9531:9537
[chromium-blink-merge.git] / chrome / common / chrome_switches.cc
blob5cafe47281b23e5db0991b8f868c364bc2ef47d9
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";
53 // Disables forcing on the experimental Plugin Power Saver feature.
54 const char kDisablePluginPowerSaver[] = "disable-plugin-power-saver";
56 // Enables forcing on the experimental Plugin Power Saver feature.
57 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
58 #endif
60 // Don't block outdated plugins.
61 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
63 // By default, an https page cannot run JavaScript, CSS or plugins from http
64 // URLs. This provides an override to get the old insecure behavior.
65 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
67 // Specifies the probability threshold for alternative services: an advertised
68 // alternative service will only be honored if the advertised probability is
69 // greater than or equal to this threshold.
70 const char kAlternativeServiceProbabilityThreshold[] =
71 "alternative-service-probability-threshold";
73 // Prevents Chrome from requiring authorization to run certain widely installed
74 // but less commonly used plugins.
75 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
77 // Specifies that the extension-app with the specified id should be launched
78 // according to its configuration.
79 const char kAppId[] = "app-id";
81 // Specifies that the associated value should be launched in "application"
82 // mode.
83 const char kApp[] = "app";
85 // Overrides the apps checkout URL, which is used to determine when to expose
86 // some private APIs.
87 const char kAppsCheckoutURL[] = "apps-checkout-url";
89 // The URL that the webstore APIs download extensions from.
90 // Note: the URL must contain one '%s' for the extension ID.
91 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url";
93 // The URL to use for the gallery link in the app launcher.
94 const char kAppsGalleryURL[] = "apps-gallery-url";
96 // The update url used by gallery/webstore extensions.
97 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url";
99 // Value of GAIA auth code for --force-app-mode.
100 const char kAppModeAuthCode[] = "app-mode-auth-code";
102 // Value of OAuth2 refresh token for --force-app-mode.
103 const char kAppModeOAuth2Token[] = "app-mode-oauth-token";
105 // Enables overriding the path for the default authentication extension.
106 const char kAuthExtensionPath[] = "auth-ext-path";
108 // A flag that is used to tell Chrome that it was launched automatically at
109 // computer startup and not by some user action.
110 const char kAutoLaunchAtStartup[] = "auto-launch-at-startup";
112 // This flag makes Chrome auto-select the provided choice when an extension asks
113 // permission to start desktop capture. Should only be used for tests. For
114 // instance, --auto-select-desktop-capture-source="Entire screen" will
115 // automatically select to share the entire screen in English locales.
116 const char kAutoSelectDesktopCaptureSource[] =
117 "auto-select-desktop-capture-source";
119 // This flag causes the user engagement checks for showing app banners to be
120 // bypassed. It is intended to be used by developers who wish to test that their
121 // sites otherwise meet the criteria needed to show app banners.
122 const char kBypassAppBannerEngagementChecks[] =
123 "bypass-app-banner-engagement-checks";
125 // Certificate Transparency: Uses the provided log(s) for checking Signed
126 // Certificate Timestamps provided with certificates.
127 // The switch's value is:
128 // log_description:log_key:log_url,log_description:log_key:log_url,...
129 // where
130 // log_description is a textual description of the log.
131 // log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
132 // public key.
133 // log_url is a URL for the log, excluding the schema (which is always
134 // assumed to be HTTPS as required by RFC6962).
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 // Comma-separated list of SSL cipher suites to disable.
145 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
147 // Tells chrome to display the cloud print dialog and upload the specified file
148 // for printing.
149 const char kCloudPrintFile[] = "cloud-print-file";
151 // Specifies the mime type to be used when uploading data from the file
152 // referenced by cloud-print-file. Defaults to "application/pdf" if
153 // unspecified.
154 const char kCloudPrintFileType[] = "cloud-print-file-type";
156 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
157 // print job. Defaults to null if unspecified.
158 const char kCloudPrintPrintTicket[] = "cloud-print-print-ticket";
160 // Used with kCloudPrintFile to specify a title for the resulting print job.
161 const char kCloudPrintJobTitle[] = "cloud-print-job-title";
163 // Setup cloud print proxy for provided printers. This does not start
164 // service or register proxy for autostart.
165 const char kCloudPrintSetupProxy[] = "cloud-print-setup-proxy";
167 // Comma-separated list of BrowserThreads that cause browser process to crash
168 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
169 // list of BrowserThreads that are supported.
171 // For example:
172 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
173 // is not responsive for 18 seconds and the number of browser threads that
174 // are responding is less than or equal to 3.
175 const char kCrashOnHangThreads[] = "crash-on-hang-threads";
177 // Some platforms like ChromeOS default to empty desktop.
178 // Browser tests may need to add this switch so that at least one browser
179 // instance is created on startup.
180 // TODO(nkostylev): Investigate if this switch could be removed.
181 // (http://crbug.com/148675)
182 const char kCreateBrowserOnStartupForTests[] =
183 "create-browser-on-startup-for-tests";
185 // Enables a frame context menu item that toggles the frame in and out of glass
186 // mode (Windows Vista and up only).
187 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
189 // Adds debugging entries such as Inspect Element to context menus of packed
190 // apps.
191 const char kDebugPackedApps[] = "debug-packed-apps";
193 // Triggers a plethora of diagnostic modes.
194 const char kDiagnostics[] = "diagnostics";
196 // Sets the output format for diagnostic modes enabled by diagnostics flag.
197 const char kDiagnosticsFormat[] = "diagnostics-format";
199 // Tells the diagnostics mode to do the requested recovery step(s).
200 const char kDiagnosticsRecovery[] = "diagnostics-recovery";
202 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings
203 // instead of as a separate page, unless this flag is specified.
204 const char kDisableAboutInSettings[] = "disable-about-in-settings";
206 // Disables the display of a banner allowing the user to add a web
207 // app to their shelf (or platform-specific equivalent)
208 const char kDisableAddToShelf[] = "disable-add-to-shelf";
210 // Disables the experimental asynchronous DNS client.
211 const char kDisableAsyncDns[] = "disable-async-dns";
213 // Disable several subsystems which run network requests in the background.
214 // This is for use when doing network performance testing to avoid noise in the
215 // measurements.
216 const char kDisableBackgroundNetworking[] = "disable-background-networking";
218 // Disables the bundled PPAPI version of Flash.
219 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash";
221 // Disable hardware encoding support for Cast Streaming.
222 const char kDisableCastStreamingHWEncoding[] =
223 "disable-cast-streaming-hw-encoding";
225 // Disables detection of child accounts.
226 const char kDisableChildAccountDetection[] =
227 "disable-child-account-detection";
229 // Disables the client-side phishing detection feature. Note that even if
230 // client-side phishing detection is enabled, it will only be active if the
231 // user has opted in to UMA stats and SafeBrowsing is enabled in the
232 // preferences.
233 const char kDisableClientSidePhishingDetection[] =
234 "disable-client-side-phishing-detection";
236 // Disable default component extensions with background pages - useful for
237 // performance tests where these pages may interfere with perf results.
238 const char kDisableComponentExtensionsWithBackgroundPages[] =
239 "disable-component-extensions-with-background-pages";
241 const char kDisableComponentUpdate[] = "disable-component-update";
243 // Disables installation of default apps on first run. This is used during
244 // automated testing.
245 const char kDisableDefaultApps[] = "disable-default-apps";
247 // Disables device discovery notifications.
248 const char kDisableDeviceDiscoveryNotifications[] =
249 "disable-device-discovery-notifications";
251 // Disables the dinosaur easter egg on the offline interstitial.
252 const char kDisableDinosaurEasterEgg[] = "disable-dinosaur-easter-egg";
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 // Disable the behavior that the second click on a launcher item (the click when
271 // the item is already active) minimizes the item.
272 const char kDisableMinimizeOnSecondLauncherItemClick[] =
273 "disable-minimize-on-second-launcher-item-click";
275 // Disables the new bookmark app system.
276 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps";
278 // Disables the new offline error page generated by NetErrorHelper for ChromeOS
279 // and instead uses the old error page generated by OfflineResourceThrottle.
280 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page";
282 // Disable auto-reload of error pages if offline.
283 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
285 // Disable only auto-reloading error pages when the tab is visible.
286 const char kDisableOfflineAutoReloadVisibleOnly[] =
287 "disable-offline-auto-reload-visible-only";
289 // Disable out-of-process V8 proxy resolver.
290 const char kDisableOutOfProcessPac[] = "disable-out-of-process-pac";
292 // Disable the setting to prompt the user for their OS account password before
293 // revealing plaintext passwords in the password manager.
294 const char kDisablePasswordManagerReauthentication[] =
295 "disable-password-manager-reauthentication";
297 // Disable the new material UI - requires out of process PDF plugin.
298 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui";
300 // Don't use bubbles for content permissions requests instead of infobars.
301 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles";
303 // Disable pop-up blocking.
304 const char kDisablePopupBlocking[] = "disable-popup-blocking";
306 // Disable speculative TCP/IP preconnection.
307 const char kDisablePreconnect[] = "disable-preconnect";
309 // Disables print preview (For testing, and for users who don't like us. :[ )
310 const char kDisablePrintPreview[] = "disable-print-preview";
312 // Normally when the user attempts to navigate to a page that was the result of
313 // a post we prompt to make sure they want to. This switch may be used to
314 // disable that check. This switch is used during automated testing.
315 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
317 // Disables support for the QUIC protocol.
318 const char kDisableQuic[] = "disable-quic";
320 // Disable use of Chromium's port selection for the ephemeral port via bind().
321 // This only has an effect if QUIC protocol is enabled.
322 const char kDisableQuicPortSelection[] = "disable-quic-port-selection";
324 // Prevents the save password bubble from being enabled.
325 const char kDisableSavePasswordBubble[] = "disable-save-password-bubble";
327 // Prevents SDCH persistence from being used.
328 const char kDisableSdchPersistence[] = "disable-sdch-persistence";
330 // Disables using bubbles for session restore request.
331 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble";
333 // Disables the Site Engagement service, which records interaction with sites
334 // and allocates certain resources accordingly.
335 const char kDisableSiteEngagementService[] = "disable-site-engagement-service";
337 // Disables the suggestions service.
338 const char kDisableSuggestionsService[] = "disable-suggestions-service";
340 // Disables syncing browser data to a Google Account.
341 const char kDisableSync[] = "disable-sync";
343 // Disables syncing one or more sync data types that are on by default.
344 // See sync/internal_api/public/base/model_type.h for possible types. Types
345 // should be comma separated, and follow the naming convention for string
346 // representation of model types, e.g.:
347 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles'
348 const char kDisableSyncTypes[] = "disable-sync-types";
350 // Disables the backend service for web resources.
351 const char kDisableWebResources[] = "disable-web-resources";
353 // Some tests seem to require the application to close when the last
354 // browser window is closed. Thus, we need a switch to force this behavior
355 // for ChromeOS Aura, disable "zero window mode".
356 // TODO(pkotwicz): Investigate if this bug can be removed.
357 // (http://crbug.com/119175)
358 const char kDisableZeroBrowsersOpenForTests[] =
359 "disable-zero-browsers-open-for-tests";
361 // Use a specific disk cache location, rather than one derived from the
362 // UserDatadir.
363 const char kDiskCacheDir[] = "disk-cache-dir";
365 // Forces the maximum disk space to be used by the disk cache, in bytes.
366 const char kDiskCacheSize[] = "disk-cache-size";
368 const char kDnsLogDetails[] = "dns-log-details";
370 // Disables prefetching of DNS information.
371 const char kDnsPrefetchDisable[] = "dns-prefetch-disable";
373 // Requests that a running browser process dump its collected histograms to a
374 // given file. The file is overwritten if it exists.
375 const char kDumpBrowserHistograms[] = "dump-browser-histograms";
377 // Overrides the path of Easy Unlock component app.
378 const char kEasyUnlockAppPath[] = "easy-unlock-app-path";
380 // Enables the display of a banner allowing the user to add a web
381 // app to their shelf (or platform-specific equivalent)
382 const char kEnableAddToShelf[] = "enable-add-to-shelf";
384 // Enable OS integration for Chrome app file associations.
385 const char kEnableAppsFileAssociations[] = "enable-apps-file-associations";
387 // Enables the benchmarking extensions.
388 const char kEnableBenchmarking[] = "enable-benchmarking";
390 // Enables the multi-level undo system for bookmarks.
391 const char kEnableBookmarkUndo[] = "enable-bookmark-undo";
393 // Enables detection of child accounts.
394 const char kEnableChildAccountDetection[] =
395 "enable-child-account-detection";
397 // This applies only when the process type is "service". Enables the Cloud
398 // Print Proxy component within the service process.
399 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
401 // If true devtools experimental settings are enabled.
402 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments";
404 // Enable device discovery notifications.
405 const char kEnableDeviceDiscoveryNotifications[] =
406 "enable-device-discovery-notifications";
408 // Enables the DOM distiller.
409 const char kEnableDomDistiller[] = "enable-dom-distiller";
411 // Enables Domain Reliability Monitoring.
412 const char kEnableDomainReliability[] = "enable-domain-reliability";
414 // Enables Download Notification.
415 const char kEnableDownloadNotification[] = "enable-download-notification";
417 // Enable Enhanced Bookmarks.
418 const char kEnhancedBookmarksExperiment[] = "enhanced-bookmarks-experiment";
420 // Enables experimentation with ephemeral apps to be launched from the webstore.
421 const char kEnableEphemeralAppsInWebstore[] =
422 "enable-ephemeral-apps-in-webstore";
424 // Enables experimental hotword features specific to always-on.
425 const char kEnableExperimentalHotwordHardware[] = "enable-hotword-hardware";
427 // Enables logging for extension activity.
428 const char kEnableExtensionActivityLogging[] =
429 "enable-extension-activity-logging";
431 const char kEnableExtensionActivityLogTesting[] =
432 "enable-extension-activity-log-testing";
434 // Enable the fast unload controller, which speeds up tab/window close by
435 // running a tab's onunload js handler independently of the GUI -
436 // crbug.com/142458 .
437 const char kEnableFastUnload[] = "enable-fast-unload";
439 // Enables experimentation with launching ephemeral apps via hyperlinks.
440 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps";
442 // Enables an experimental Material Design version of chrome://downloads.
443 const char kEnableMaterialDesignDownloads[] = "enable-md-downloads";
445 // Enables the material design Settings feature.
446 const char kEnableMaterialDesignSettings[] = "enable-md-settings";
448 #if defined(ENABLE_MEDIA_ROUTER)
449 // Enables Media Router.
450 const char kEnableMediaRouter[] = "enable-media-router";
451 #endif
453 // Runs the Native Client inside the renderer process and enables GPU plugin
454 // (internally adds lEnableGpuPlugin to the command line).
455 const char kEnableNaCl[] = "enable-nacl";
457 // Enables tracing for each navigation. It will attempt to trace each navigation
458 // for 10s, until the buffer is full, or until the next navigation.
459 // It only works if a URL was provided by --trace-upload-url.
460 const char kEnableNavigationTracing[] = "enable-navigation-tracing";
462 // Enables the network-related benchmarking extensions.
463 const char kEnableNetBenchmarking[] = "enable-net-benchmarking";
465 // Enables the new bookmark app system.
466 const char kEnableNewBookmarkApps[] = "enable-new-bookmark-apps";
468 // Enable auto-reload of error pages if offline.
469 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
471 // Only auto-reload error pages when the tab is visible.
472 const char kEnableOfflineAutoReloadVisibleOnly[] =
473 "enable-offline-auto-reload-visible-only";
475 // Enables panels (always on-top docked pop-up windows).
476 const char kEnablePanels[] = "enable-panels";
478 // Enable the new material UI - requires out of process PDF plugin.
479 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui";
481 // Enables presenting plugin placeholder content as shadow DOM.
482 const char kEnablePluginPlaceholderShadowDom[] =
483 "enable-plugin-placeholder-shadow-dom";
485 // Enables a number of potentially annoying security features (strict mixed
486 // content mode, powerful feature restrictions, etc.)
487 const char kEnablePotentiallyAnnoyingSecurityFeatures[] =
488 "enable-potentially-annoying-security-features";
490 // Enables the Power overlay in Settings.
491 const char kEnablePowerOverlay[] = "enable-power-overlay";
493 // Enables showing unregistered printers in print preview
494 const char kEnablePrintPreviewRegisterPromos[] =
495 "enable-print-preview-register-promos";
497 // Enables tracking of tasks in profiler for viewing via about:profiler.
498 // To predominantly disable tracking (profiling), use the command line switch:
499 // --enable-profiling=0
500 // Some tracking will still take place at startup, but it will be turned off
501 // during chrome_browser_main.
502 const char kEnableProfiling[] = "enable-profiling";
504 // Enables query in the omnibox.
505 const char kEnableQueryExtraction[] = "enable-query-extraction";
507 // Enables support for the QUIC protocol. This is a temporary testing flag.
508 const char kEnableQuic[] = "enable-quic";
510 // Enable use of Chromium's port selection for the ephemeral port via bind().
511 // This only has an effect if QUIC protocol is enabled.
512 const char kEnableQuicPortSelection[] = "enable-quic-port-selection";
514 // Enables save password prompt bubble.
515 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble";
517 // Enables SDCH persistence.
518 const char kEnableSdchPersistence[] = "enable-sdch-persistence";
520 // Enables using bubbles for session restore request instead of infobars.
521 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble";
523 // Enable or disable settings in a separate browser window per profile
524 // (see SettingsWindowEnabled() below).
525 const char kEnableSettingsWindow[] = "enable-settings-window";
526 const char kDisableSettingsWindow[] = "disable-settings-window";
528 // Enable the Site Engagement service, which records interaction with sites and
529 // allocates certain resources accordingly.
530 const char kEnableSiteEngagementService[] = "enable-site-engagement-service";
532 // Enables the suggestions service.
533 const char kEnableSuggestionsService[] = "enable-suggestions-service";
535 // Enables the supervised user managed bookmarks folder.
536 const char kEnableSupervisedUserManagedBookmarksFolder[] =
537 "enable-supervised-user-managed-bookmarks-folder";
539 // Enables synced articles.
540 const char kEnableSyncArticles[] = "enable-sync-articles";
542 // Enables user control over muting tab audio from the tab strip.
543 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting";
545 // Enables fanciful thumbnail processing. Used with NTP for
546 // instant-extended-api, where thumbnails are generally smaller.
547 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting";
549 // Enables Alternate-Protocol when the port is user controlled (> 1024).
550 const char kEnableUserAlternateProtocolPorts[] =
551 "enable-user-controlled-alternate-protocol-ports";
553 // Enables a new "web app" style frame for hosted apps (including bookmark
554 // apps).
555 extern const char kEnableWebAppFrame[] = "enable-web-app-frame";
557 // Enables synchronizing WiFi credentials across devices, using Chrome Sync.
558 const char kEnableWifiCredentialSync[] = "enable-wifi-credential-sync";
560 // Values for the kExtensionContentVerification flag.
561 // See ContentVerifierDelegate::Mode for more explanation.
562 const char kExtensionContentVerificationBootstrap[] = "bootstrap";
563 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict";
564 const char kExtensionContentVerificationEnforce[] = "enforce";
566 // Name of the command line flag to force content verification to be on in one
567 // of various modes.
568 const char kExtensionContentVerification[] = "extension-content-verification";
570 // Turns on extension install verification if it would not otherwise have been
571 // turned on.
572 const char kExtensionsInstallVerification[] = "extensions-install-verification";
574 // Specifies a comma-separated list of extension ids that should be forced to
575 // be treated as not from the webstore when doing install verification.
576 const char kExtensionsNotWebstore[] = "extensions-not-webstore";
578 // Frequency in seconds for Extensions auto-update.
579 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency";
581 // Fakes the channel of the browser for purposes of Variations filtering. This
582 // is to be used for testing only. Possible values are "stable", "beta", "dev"
583 // and "canary". Note that this only applies if the browser's reported channel
584 // is UNKNOWN.
585 const char kFakeVariationsChannel[] = "fake-variations-channel";
587 // If this flag is present then this command line is being delegated to an
588 // already running chrome process via the fast path, ie: before chrome.dll is
589 // loaded. It is useful to tell the difference for tracking purposes.
590 const char kFastStart[] = "fast-start";
592 // These two flags are added around the switches about:flags adds to the
593 // command line. This is useful to see which switches were added by about:flags
594 // on about:version. They don't have any effect.
595 const char kFlagSwitchesBegin[] = "flag-switches-begin";
596 const char kFlagSwitchesEnd[] = "flag-switches-end";
598 // Forces application mode. This hides certain system UI elements and forces
599 // the app to be installed if it hasn't been already.
600 const char kForceAppMode[] = "force-app-mode";
602 // This option can be used to force parameters of field trials when testing
603 // changes locally. The argument is a list of key/value pairs prefixed by
604 // Trial/Group pair. The following shows setting parameters to 2 experiments
605 // where in the first, it forces "id" to be "foo" for the "Enabled" group of
606 // the "EnhancedBookmarks" trial:
607 // "EnhancedBookmarks.Enabled:id/foo,Experiment2.Group1:key1/value1"
608 // Trial names, groups names, parameter names, and value should all be URL
609 // escaped for all non-alphanumeric characters.
610 const char kForceFieldTrialParams[] = "force-fieldtrial-params";
612 // Displays the First Run experience when the browser is started, regardless of
613 // whether or not it's actually the First Run (this overrides kNoFirstRun).
614 const char kForceFirstRun[] = "force-first-run";
616 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
617 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
618 // prefixed with the character "t" will be treated as Trigger Variation Ids.
619 const char kForceVariationIds[] = "force-variation-ids";
621 // Enables grouping websites by domain and filtering them by period.
622 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
624 // Specifies which page will be displayed in newly-opened tabs. We need this
625 // for testing purposes so that the UI tests don't depend on what comes up for
626 // http://google.com.
627 const char kHomePage[] = "homepage";
629 // Comma-separated list of rules that control how hostnames are mapped.
631 // For example:
632 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
633 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
634 // resolved to "proxy".
635 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
636 // Will also force the port of the resulting
637 // socket address to be 77.
638 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
639 // except for "www.google.com".
641 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
642 // connect and host resolver in a direct connection, and the CONNECT in an http
643 // proxy connection, and the endpoint host in a SOCKS proxy connection).
644 const char kHostRules[] = "host-rules";
646 // The maximum number of retry attempts to resolve the host. Set this to zero
647 // to disable host resolver retry attempts.
648 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts";
650 // Causes net::URLFetchers to ignore requests for SSL client certificates,
651 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
652 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
653 // kSyncServiceURL, etc)
654 const char kIgnoreUrlFetcherCertRequests[] =
655 "ignore-urlfetcher-cert-requests";
657 // Causes the browser to launch directly in incognito mode.
658 const char kIncognito[] = "incognito";
660 // Causes Chrome to initiate an installation flow for the given app.
661 const char kInstallChromeApp[] = "install-chrome-app";
663 // Causes Chrome to attempt to get metadata from the webstore for the
664 // app/extension ID given, and then prompt the user to download and install it.
665 // This is allowed *only* for ephemeral apps. All other ids will be ignored.
666 const char kInstallEphemeralAppFromWebstore[] =
667 "install-ephemeral-app-from-webstore";
669 // A list of whitelists to install for a supervised user, for testing.
670 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...]
671 const char kInstallSupervisedUserWhitelists[] =
672 "install-supervised-user-whitelists";
674 // Marks a renderer as an Instant process.
675 const char kInstantProcess[] = "instant-process";
677 // Invalidation service should use GCM network channel even if experiment is not
678 // enabled.
679 const char kInvalidationUseGCMChannel[] = "invalidation-use-gcm-channel";
681 // Disable latest shipping ECMAScript 6 features.
682 const char kDisableJavaScriptHarmonyShipping[] =
683 "disable-javascript-harmony-shipping";
685 // Enables experimental Harmony (ECMAScript 6) features.
686 const char kJavaScriptHarmony[] = "javascript-harmony";
688 // Dumps IPC messages sent from renderer processes to the browser process to
689 // the given directory. Used primarily to gather samples for IPC fuzzing.
690 const char kIpcDumpDirectory[] = "ipc-dump-directory";
692 // Used for testing - keeps browser alive after last browser window closes.
693 const char kKeepAliveForTest[] = "keep-alive-for-test";
695 // Enable Kiosk mode.
696 const char kKioskMode[] = "kiosk";
698 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
699 // See http://crbug.com/31395.
700 const char kKioskModePrinting[] = "kiosk-printing";
702 // Comma-separated list of directories with component extensions to load.
703 const char kLoadComponentExtension[] = "load-component-extension";
705 // Loads an extension from the specified directory.
706 const char kLoadExtension[] = "load-extension";
708 // Makes Chrome default browser
709 const char kMakeDefaultBrowser[] = "make-default-browser";
711 // Use to opt-in to marking HTTP as non-secure.
712 const char kMarkNonSecureAs[] = "mark-non-secure-as";
713 const char kMarkNonSecureAsNeutral[] = "neutral";
714 const char kMarkNonSecureAsDubious[] = "dubious";
715 const char kMarkNonSecureAsNonSecure[] = "non-secure";
717 // Forces the maximum disk space to be used by the media cache, in bytes.
718 const char kMediaCacheSize[] = "media-cache-size";
720 // Enables histograming of tasks served by MessageLoop. See
721 // about:histograms/Loop for results, which show frequency of messages on each
722 // thread, including APC count, object signalling count, etc.
723 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer";
725 // Enables the recording of metrics reports but disables reporting. In contrast
726 // to kDisableMetrics, this executes all the code that a normal client would
727 // use for reporting, except the report is dropped rather than sent to the
728 // server. This is useful for finding issues in the metrics code during UI and
729 // performance tests.
730 const char kMetricsRecordingOnly[] = "metrics-recording-only";
732 // Allows setting a different destination ID for connection-monitoring GCM
733 // messages. Useful when running against a non-prod management server.
734 const char kMonitoringDestinationID[] = "monitoring-destination-id";
736 // Sets the granularity of events to capture in the network log. The mode can be
737 // set to one of the following values:
738 // "Default"
739 // "IncludeCookiesAndCredentials"
740 // "IncludeSocketBytes"
742 // See the functions of the corresponding name in net_log_capture_mode.h for a
743 // description of their meaning.
744 const char kNetLogCaptureMode[] = "net-log-capture-mode";
746 // Disables the default browser check. Useful for UI/browser tests where we
747 // want to avoid having the default browser info-bar displayed.
748 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
750 // By default, an https page can load images, fonts or frames from an http
751 // page. This switch overrides this to block this lesser mixed-content problem.
752 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
754 // Disables all experiments set on about:flags. Does not disable about:flags
755 // itself. Useful if an experiment makes chrome crash at startup: One can start
756 // chrome with --no-experiments, disable the problematic lab at about:flags and
757 // then restart chrome without this switch again.
758 const char kNoExperiments[] = "no-experiments";
760 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
761 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
762 // prevent first run from occuring the next time chrome is launched without this
763 // flag.
764 const char kNoFirstRun[] = "no-first-run";
766 // Don't send hyperlink auditing pings
767 const char kNoPings[] = "no-pings";
769 // Don't use a proxy server, always make direct connections. Overrides any
770 // other proxy server flags that are passed.
771 const char kNoProxyServer[] = "no-proxy-server";
773 // Disables the service process from adding itself as an autorun process. This
774 // does not delete existing autorun registrations, it just prevents the service
775 // from registering a new one.
776 const char kNoServiceAutorun[] = "no-service-autorun";
778 // Does not automatically open a browser window on startup (used when
779 // launching Chrome for the purpose of hosting background apps).
780 const char kNoStartupWindow[] = "no-startup-window";
782 // Disables checking whether we received an acknowledgment when registering
783 // a supervised user. Also disables the timeout during registration that waits
784 // for the ack. Useful when debugging against a server that does not
785 // support notifications.
786 const char kNoSupervisedUserAcknowledgmentCheck[] =
787 "no-managed-user-acknowledgment-check";
789 // Specifies the maximum number of threads to use for running the Proxy
790 // Autoconfig (PAC) script.
791 const char kNumPacThreads[] = "num-pac-threads";
793 // Launches URL in new browser window.
794 const char kOpenInNewWindow[] = "new-window";
796 // Force use of QUIC for requests to the specified origin.
797 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on";
799 // The time that a new chrome process which is delegating to an already running
800 // chrome process started. (See ProcessSingleton for more details.)
801 const char kOriginalProcessStartTime[] = "original-process-start-time";
803 // Packages an extension to a .crx installable file from a given directory.
804 const char kPackExtension[] = "pack-extension";
806 // Optional PEM private key to use in signing packaged .crx.
807 const char kPackExtensionKey[] = "pack-extension-key";
809 // Specifies the path to the user data folder for the parent profile.
810 const char kParentProfile[] = "parent-profile";
812 // Development flag for permission request API. This flag is needed until
813 // the API is finalized.
814 // TODO(bauerb): Remove when this flag is not needed anymore.
815 const char kPermissionRequestApiScope[] = "permission-request-api-scope";
817 // Development flag for permission request API. This flag is needed until
818 // the API is finalized.
819 // TODO(bauerb): Remove when this flag is not needed anymore.
820 const char kPermissionRequestApiUrl[] = "permission-request-api-url";
822 // Use the PPAPI (Pepper) Flash found at the given path.
823 const char kPpapiFlashPath[] = "ppapi-flash-path";
825 // Report the given version for the PPAPI (Pepper) Flash. The version should be
826 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
827 // defaults to "10.2.999.999".
828 const char kPpapiFlashVersion[] = "ppapi-flash-version";
830 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
831 // effect when Instant is either disabled or restricted to search, and when
832 // prerender is enabled.
833 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
834 // These are the values the kPrerenderFromOmnibox switch may have, as in
835 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
836 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
837 // disabled: No prerendering.
838 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
839 // enabled: Guaranteed prerendering.
840 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
841 // Controls speculative prerendering of pages, and content prefetching. Both
842 // are dispatched from <link rel=prefetch href=...> elements.
843 const char kPrerenderMode[] = "prerender";
844 // These are the values the kPrerenderMode switch may have, as in
845 // "--prerender=disabled".
846 // disabled: No prerendering.
847 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
848 // enabled: Prerendering.
849 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
851 // Use IPv6 only for privet HTTP.
852 const char kPrivetIPv6Only[] = "privet-ipv6-only";
854 // Outputs the product version information and quit. Used as an internal api to
855 // detect the installed version of Chrome on Linux.
856 const char kProductVersion[] = "product-version";
858 // Selects directory of profile to associate with the first browser launched.
859 const char kProfileDirectory[] = "profile-directory";
861 // Starts the sampling based profiler for the browser process at startup. This
862 // will only work if chrome has been built with the gyp variable profiling=1.
863 // The output will go to the value of kProfilingFile.
864 const char kProfilingAtStart[] = "profiling-at-start";
866 // Specifies a location for profiling output. This will only work if chrome has
867 // been built with the gyp variable profiling=1.
869 // {pid} if present will be replaced by the pid of the process.
870 // {count} if present will be incremented each time a profile is generated
871 // for this process.
872 // The default is chrome-profile-{pid}.
873 const char kProfilingFile[] = "profiling-file";
875 // Controls whether profile data is periodically flushed to a file. Normally
876 // the data gets written on exit but cases exist where chrome doesn't exit
877 // cleanly (especially when using single-process). A time in seconds can be
878 // specified.
879 const char kProfilingFlush[] = "profiling-flush";
881 // Forces proxy auto-detection.
882 const char kProxyAutoDetect[] = "proxy-auto-detect";
884 // Specifies a list of hosts for whom we bypass proxy settings and use direct
885 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
886 // specified. This is a comma-separated list of bypass rules. See:
887 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
888 const char kProxyBypassList[] = "proxy-bypass-list";
890 // Uses the pac script at the given URL
891 const char kProxyPacUrl[] = "proxy-pac-url";
893 // Uses a specified proxy server, overrides system settings. This switch only
894 // affects HTTP and HTTPS requests.
895 const char kProxyServer[] = "proxy-server";
897 // Specifies a comma separated list of QUIC connection options to send to
898 // the server.
899 const char kQuicConnectionOptions[] = "quic-connection-options";
901 // Specifies the maximum length for a QUIC packet.
902 const char kQuicMaxPacketLength[] = "quic-max-packet-length";
904 // Specifies the version of QUIC to use.
905 const char kQuicVersion[] = "quic-version";
907 // Indicates the last session should be restored on startup. This overrides the
908 // preferences value and is primarily intended for testing. The value of this
909 // switch is the number of tabs to wait until loaded before 'load completed' is
910 // sent to the ui_test.
911 const char kRestoreLastSession[] = "restore-last-session";
913 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
914 // (with a directory of sub-resources). Enable only saving pages as MHTML.
915 // See http://crbug.com/120416 for how to remove this switch.
916 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
918 // If present, safebrowsing only performs update when
919 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
920 // This is used for testing only.
921 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
923 // TODO(lzheng): Remove this flag once the feature works fine
924 // (http://crbug.com/74848).
926 // Disables safebrowsing feature that checks download url and downloads
927 // content's hash to make sure the content are not malicious.
928 const char kSbDisableDownloadProtection[] =
929 "safebrowsing-disable-download-protection";
931 // Disables safebrowsing feature that checks for blacklisted extensions.
932 const char kSbDisableExtensionBlacklist[] =
933 "safebrowsing-disable-extension-blacklist";
935 // Causes the process to run as a service process.
936 const char kServiceProcess[] = "service";
938 // If true the app list will be shown.
939 const char kShowAppList[] = "show-app-list";
941 // Command line flag offering a "Show saved copy" option to the user if offline.
942 // The various modes are disabled, primary, or secondary. Primary/secondary
943 // refers to button placement (for experiment).
944 const char kShowSavedCopy[] = "show-saved-copy";
946 // Values for the kShowSavedCopy flag.
947 const char kEnableShowSavedCopyPrimary[] = "primary";
948 const char kEnableShowSavedCopySecondary[] = "secondary";
949 const char kDisableShowSavedCopy[] = "disable";
951 // Does not show an infobar when an extension attaches to a page using
952 // chrome.debugger page. Required to attach to extension background pages.
953 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api";
955 // Causes Chrome to launch without opening any windows by default. Useful if
956 // one wishes to use Chrome as an ash server.
957 const char kSilentLaunch[] = "silent-launch";
959 // Simulates that elevation is needed to recover upgrade channel.
960 const char kSimulateElevatedRecovery[] = "simulate-elevated-recovery";
962 // Simulates a critical update being available.
963 const char kSimulateCriticalUpdate[] = "simulate-critical-update";
965 // Simulates that current version is outdated.
966 const char kSimulateOutdated[] = "simulate-outdated";
968 // Simulates that current version is outdated and auto-update is off.
969 const char kSimulateOutdatedNoAU[] = "simulate-outdated-no-au";
971 // Simulates an update being available.
972 const char kSimulateUpgrade[] = "simulate-upgrade";
974 // Speculative resource prefetching.
975 const char kSpeculativeResourcePrefetching[] =
976 "speculative-resource-prefetching";
978 // Speculative resource prefetching is disabled.
979 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
981 // Speculative resource prefetching will only learn about resources that need to
982 // be prefetched but will not prefetch them.
983 const char kSpeculativeResourcePrefetchingLearning[] = "learning";
985 // Speculative resource prefetching is enabled.
986 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
988 #if defined(ENABLE_SPELLCHECK)
989 // Enables the multilingual spellchecker.
990 const char kEnableMultilingualSpellChecker[] =
991 "enable-multilingual-spellchecker";
993 // Enables auto correction for misspelled words.
994 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct";
996 // Enables participation in the field trial for user feedback to spelling
997 // service.
998 const char kEnableSpellingFeedbackFieldTrial[] =
999 "enable-spelling-feedback-field-trial";
1001 // Specifies the URL where spelling service feedback data will be sent instead
1002 // of the default URL. This switch is for temporary testing only.
1003 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1004 // August 2013.
1005 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url";
1007 // Specifies the number of seconds between sending batches of feedback to
1008 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This
1009 // switch is for temporary testing only.
1010 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1011 // August 2013.
1012 const char kSpellingServiceFeedbackIntervalSeconds[] =
1013 "spelling-service-feedback-interval-seconds";
1014 #endif
1016 // Specifies the maximum SSL/TLS version ("tls1", "tls1.1", or "tls1.2").
1017 const char kSSLVersionMax[] = "ssl-version-max";
1019 // Specifies the minimum SSL/TLS version ("tls1", "tls1.1", or "tls1.2").
1020 const char kSSLVersionMin[] = "ssl-version-min";
1022 // Specifies the minimum SSL/TLS version ("tls1", "tls1.1", or "tls1.2") that
1023 // TLS fallback will accept.
1024 const char kSSLVersionFallbackMin[] = "ssl-version-fallback-min";
1026 // These values aren't switches, but rather the values that kSSLVersionMax,
1027 // kSSLVersionMin and kSSLVersionFallbackMin can have.
1028 const char kSSLVersionTLSv1[] = "tls1";
1029 const char kSSLVersionTLSv11[] = "tls1.1";
1030 const char kSSLVersionTLSv12[] = "tls1.2";
1032 // Starts the browser maximized, regardless of any previous settings.
1033 const char kStartMaximized[] = "start-maximized";
1035 // Sets the supervised user ID for any loaded or newly created profile to the
1036 // given value. Pass an empty string to mark the profile as non-supervised.
1037 // Used for testing.
1038 const char kSupervisedUserId[] = "managed-user-id";
1040 // Enables/disables SafeSites filtering for supervised users. Possible values
1041 // are "enabled", "disabled", "blacklist-only", and "online-check-only".
1042 const char kSupervisedUserSafeSites[] = "supervised-user-safesites";
1044 // Used to authenticate requests to the Sync service for supervised users.
1045 // Setting this switch also causes Sync to be set up for a supervised user.
1046 const char kSupervisedUserSyncToken[] = "managed-user-sync-token";
1048 // This flag causes sync to retry very quickly (see polling_constants.h) the
1049 // when it encounters an error, as the first step towards exponential backoff.
1050 const char kSyncShortInitialRetryOverride[] =
1051 "sync-short-initial-retry-override";
1053 // Overrides the default server used for profile sync.
1054 const char kSyncServiceURL[] = "sync-url";
1056 // Enables deferring sync backend initialization until user initiated changes
1057 // occur.
1058 const char kSyncDisableDeferredStartup[] = "sync-disable-deferred-startup";
1060 // Allows overriding the deferred init fallback timeout.
1061 const char kSyncDeferredStartupTimeoutSeconds[] =
1062 "sync-deferred-startup-timeout-seconds";
1064 // Enables feature to avoid unnecessary GetUpdate requests.
1065 const char kSyncEnableGetUpdateAvoidance[] =
1066 "sync-enable-get-update-avoidance";
1068 // Enables clearing of sync data when a user enables passphrase encryption.
1069 const char kSyncEnableClearDataOnPassphraseEncryption[] =
1070 "enable-clear-sync-data-on-passphrase-encryption";
1072 // Disable data backup when user's not signed in.
1073 const char kSyncDisableBackup[] = "disable-sync-backup";
1075 // Disable sync rollback.
1076 const char kSyncDisableRollback[] = "disable-sync-rollback";
1078 // Passes the name of the current running automated test to Chrome.
1079 const char kTestName[] = "test-name";
1081 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1082 // The value is the host:port of the trusted proxy.
1083 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy";
1085 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1086 // be used only by the upgrade process.
1087 const char kTryChromeAgain[] = "try-chrome-again";
1089 // Overrides per-origin quota settings to unlimited storage for any
1090 // apps/origins. This should be used only for testing purpose.
1091 const char kUnlimitedStorage[] = "unlimited-storage";
1093 // Treat given (insecure) origins as secure origins. Multiple origins can be
1094 // supplied. Has no effect unless --user-data-dir is also supplied.
1095 // Example:
1096 // --unsafely-treat-insecure-origin-as-secure=http://a.test,http://b.test
1097 // --user-data-dir=/test/only/profile/dir
1098 const char kUnsafelyTreatInsecureOriginAsSecure[] =
1099 "unsafely-treat-insecure-origin-as-secure";
1101 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1102 // testing flag.
1103 const char kUseSpdy[] = "use-spdy";
1105 // A string used to override the default user agent with a custom one.
1106 const char kUserAgent[] = "user-agent";
1108 // Specifies the user data directory, which is where the browser will look for
1109 // all of its state.
1110 const char kUserDataDir[] = "user-data-dir";
1112 // Examines a .crx for validity and prints the result.
1113 const char kValidateCrx[] = "validate-crx";
1115 // Uses experimental simple cache backend if possible.
1116 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend";
1118 // Enables using an in-process Mojo service for the v8 proxy resolver.
1119 const char kV8PacMojoInProcess[] = "v8-pac-mojo-in-process";
1121 // Enables using an out-of-process Mojo service for the v8 proxy resolver.
1122 const char kV8PacMojoOutOfProcess[] = "v8-pac-mojo-out-of-process";
1124 // Specifies a custom URL for the server which reports variation data to the
1125 // client. Specifying this switch enables the Variations service on
1126 // unofficial builds. See variations_service.cc.
1127 const char kVariationsServerURL[] = "variations-server-url";
1129 // Prints version information and quits.
1130 const char kVersion[] = "version";
1132 // Specify the initial window position: --window-position=x,y
1133 const char kWindowPosition[] = "window-position";
1135 // Specify the initial window size: --window-size=w,h
1136 const char kWindowSize[] = "window-size";
1138 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1139 // use Chromium's network stack to fetch, and V8 to evaluate.
1140 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
1142 // Specifies which category option was clicked in the Windows Jumplist that
1143 // resulted in a browser startup.
1144 const char kWinJumplistAction[] = "win-jumplist-action";
1146 #if defined(OS_ANDROID)
1147 // Disables support for playing videos on Chromecast devices.
1148 const char kDisableCast[] = "disable-cast";
1150 // Disables Contextual Search.
1151 const char kDisableContextualSearch[] = "disable-contextual-search";
1153 // Disables zero suggest experiment on Dev channel.
1154 const char kDisableZeroSuggest[] = "disable-zero-suggest";
1156 // Enable the accessibility tab switcher.
1157 const char kEnableAccessibilityTabSwitcher[] =
1158 "enable-accessibility-tab-switcher";
1160 // Enables Contextual Search.
1161 const char kEnableContextualSearch[] = "enable-contextual-search";
1163 // Enables the DOM distiller animated button UI for Android.
1164 const char kEnableDomDistillerButtonAnimation[] =
1165 "enable-dom-distiller-button-animation";
1167 // Enables chrome hosted mode for Android.
1168 const char kEnableHostedMode[] = "enable-hosted-mode";
1170 // Enables instant search clicks feature.
1171 const char kEnableInstantSearchClicks[] = "enable-instant-search-clicks";
1173 // Enables context-sensitive reader mode button in the toolbar.
1174 const char kEnableReaderModeToolbarIcon[] =
1175 "enable-reader-mode-toolbar-icon";
1177 // Enables zero suggest functionality on Dev channel, showing most visited
1178 // sites as default suggestions.
1179 const char kEnableZeroSuggestMostVisited[] =
1180 "enable-zero-suggest-most-visited";
1182 // Enable zero suggest functionality on Dev channel, showing most visited
1183 // sites on non-search-result pages as default suggestions.
1184 const char kEnableZeroSuggestMostVisitedWithoutSerp[] =
1185 "enable-zero-suggest-most-visited-without-serp";
1187 // Triggers prerendering of search base page to prefetch results for the typed
1188 // omnibox query. Only has an effect when prerender is enabled.
1189 const char kPrefetchSearchResults[] = "prefetch-search-results";
1190 #endif // defined(OS_ANDROID)
1192 #if defined(USE_ASH)
1193 const char kOpenAsh[] = "open-ash";
1194 #endif
1196 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1197 // These flags show the man page on Linux. They are equivalent to each
1198 // other.
1199 const char kHelp[] = "help";
1200 const char kHelpShort[] = "h";
1202 // Specifies which password store to use (detect, default, gnome, kwallet).
1203 const char kPasswordStore[] = "password-store";
1204 #endif
1206 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1207 // Triggers migration of user data directory to another directory
1208 // specified as a parameter. The migration is done under singleton lock,
1209 // and sanity checks are made to avoid corrupting the profile.
1210 // The browser exits after migration is complete.
1211 const char kMigrateDataDirForSxS[] = "migrate-data-dir-for-sxs";
1212 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1214 #if defined(OS_MACOSX)
1215 // Prevents Chrome from quitting when Chrome Apps are open.
1216 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests";
1218 // Shows a notification when quitting Chrome with hosted apps running. Default
1219 // behavior is to also quit all hosted apps.
1220 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification";
1222 // Disable the toolkit-views App Info dialog for Mac.
1223 const char kDisableAppInfoDialogMac[] = "disable-app-info-dialog-mac";
1225 // Disables custom Cmd+` window cycling for platform apps and hosted apps.
1226 const char kDisableAppWindowCycling[] = "disable-app-window-cycling";
1228 // Disables app shim creation for hosted apps on Mac.
1229 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation";
1231 // Disables use of toolkit-views based native app windows.
1232 const char kDisableMacViewsNativeAppWindows[] =
1233 "disable-mac-views-native-app-windows";
1235 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1236 // older, SnowLeopard-style fullscreen.
1237 const char kDisableSystemFullscreenForTesting[] =
1238 "disable-system-fullscreen-for-testing";
1240 // Enable the toolkit-views App Info dialog for Mac. This is accessible from
1241 // chrome://apps and chrome://extensions and is already enabled on non-mac.
1242 const char kEnableAppInfoDialogMac[] = "enable-app-info-dialog-mac";
1244 // Enables custom Cmd+` window cycling for platform apps and hosted apps.
1245 const char kEnableAppWindowCycling[] = "enable-app-window-cycling";
1247 // Enables use of toolkit-views based native app windows.
1248 const char kEnableMacViewsNativeAppWindows[] =
1249 "enable-mac-views-native-app-windows";
1251 // Enables Translate experimental new UX which replaces the infobar.
1252 const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
1254 // This is how the metrics client ID is passed from the browser process to its
1255 // children. With Crashpad, the metrics client ID is distinct from the crash
1256 // client ID.
1257 const char kMetricsClientID[] = "metrics-client-id";
1259 // A process type (switches::kProcessType) that relaunches the browser. See
1260 // chrome/browser/mac/relauncher.h.
1261 const char kRelauncherProcess[] = "relauncher";
1262 #endif // defined(OS_MACOSX)
1264 // Use bubbles for content permissions requests instead of infobars.
1265 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles";
1267 #if defined(OS_WIN)
1268 // Fallback to XPS. By default connector uses CDD.
1269 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps";
1271 // Force-enables the profile shortcut manager. This is needed for tests since
1272 // they use a custom-user-data-dir which disables this.
1273 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager";
1275 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1276 // Windows 8 and higher. Used when relaunching metro Chrome.
1277 const char kForceImmersive[] = "force-immersive";
1279 // Whether or not the browser should warn if the profile is on a network share.
1280 // This flag is only relevant for Windows currently.
1281 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
1283 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1284 // Windows 8 and higher. Used when relaunching metro Chrome.
1285 const char kForceDesktop[] = "force-desktop";
1287 // Makes Windows happy by allowing it to show "Enable access to this program"
1288 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
1289 // shows an error box because the only way to hide Chrome is by uninstalling
1290 // it.
1291 const char kHideIcons[] = "hide-icons";
1293 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1294 const char kRelaunchShortcut[] = "relaunch-shortcut";
1296 // See kHideIcons.
1297 const char kShowIcons[] = "show-icons";
1299 // Runs un-installation steps that were done by chrome first-run.
1300 const char kUninstall[] = "uninstall";
1302 // Requests that Chrome launch the Metro viewer process via the given appid
1303 // (which is assumed to be registered as default browser) and synchronously
1304 // connect to it.
1305 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid";
1307 // Waits for the given handle to be signaled before relaunching metro Chrome on
1308 // Windows 8 and higher.
1309 const char kWaitForMutex[] = "wait-for-mutex";
1311 // Indicates that chrome was launched to service a search request in Windows 8.
1312 const char kWindows8Search[] = "windows8-search";
1313 #endif // defined(OS_WIN)
1315 #if defined(ENABLE_IPC_FUZZER)
1316 // Specifies the testcase used by the IPC fuzzer.
1317 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
1318 #endif
1320 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1321 // Enables support to debug printing subsystem.
1322 const char kDebugPrint[] = "debug-print";
1323 #endif
1325 bool AboutInSettingsEnabled() {
1326 return SettingsWindowEnabled() &&
1327 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1328 ::switches::kDisableAboutInSettings);
1331 bool MdDownloadsEnabled() {
1332 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1333 ::switches::kEnableMaterialDesignDownloads);
1336 bool MdSettingsEnabled() {
1337 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1338 ::switches::kEnableMaterialDesignSettings);
1341 bool MediaRouterEnabled() {
1342 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1343 ::switches::kEnableMediaRouter);
1346 // Will return true as a default value if the "disable-new-offline-error-page"
1347 // command-line switch is not available.
1348 bool NewOfflineErrorPageEnabled() {
1349 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1350 ::switches::kDisableNewOfflineErrorPage);
1353 bool PdfMaterialUIEnabled() {
1354 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1355 return true;
1357 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1358 return false;
1360 // Default.
1361 return false;
1364 bool SettingsWindowEnabled() {
1365 #if defined(OS_CHROMEOS)
1366 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1367 ::switches::kDisableSettingsWindow);
1368 #else
1369 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1370 ::switches::kEnableSettingsWindow);
1371 #endif
1374 #if defined(OS_CHROMEOS)
1375 bool PowerOverlayEnabled() {
1376 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1377 ::switches::kEnablePowerOverlay);
1379 #endif
1381 // -----------------------------------------------------------------------------
1382 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1384 // You were going to just dump your switches here, weren't you? Instead, please
1385 // put them in alphabetical order above, or in order inside the appropriate
1386 // ifdef at the bottom. The order should match the header.
1387 // -----------------------------------------------------------------------------
1389 } // namespace switches