Supervised user import: Listen for profile creation/deletion
[chromium-blink-merge.git] / chrome / common / chrome_switches.cc
blob304d457f695972e161c08579c4f8615ce960b492
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 // bypasses. 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_description:log_key,...
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 // Multiple logs can be specified by repeating description:key pairs,
134 // separated by a comma.
135 const char kCertificateTransparencyLog[] =
136 "certificate-transparency-log";
138 // How often (in seconds) to check for updates. Should only be used for testing
139 // purposes.
140 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval";
142 // Comma-separated list of SSL cipher suites to disable.
143 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
145 // Tells chrome to display the cloud print dialog and upload the specified file
146 // for printing.
147 const char kCloudPrintFile[] = "cloud-print-file";
149 // Specifies the mime type to be used when uploading data from the file
150 // referenced by cloud-print-file. Defaults to "application/pdf" if
151 // unspecified.
152 const char kCloudPrintFileType[] = "cloud-print-file-type";
154 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
155 // print job. Defaults to null if unspecified.
156 const char kCloudPrintPrintTicket[] = "cloud-print-print-ticket";
158 // Used with kCloudPrintFile to specify a title for the resulting print job.
159 const char kCloudPrintJobTitle[] = "cloud-print-job-title";
161 // Setup cloud print proxy for provided printers. This does not start
162 // service or register proxy for autostart.
163 const char kCloudPrintSetupProxy[] = "cloud-print-setup-proxy";
165 // Comma-separated list of BrowserThreads that cause browser process to crash
166 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
167 // list of BrowserThreads that are supported.
169 // For example:
170 // --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
171 // is not responsive for 18 seconds and the number of browser threads that
172 // are responding is less than or equal to 3.
173 const char kCrashOnHangThreads[] = "crash-on-hang-threads";
175 // Some platforms like ChromeOS default to empty desktop.
176 // Browser tests may need to add this switch so that at least one browser
177 // instance is created on startup.
178 // TODO(nkostylev): Investigate if this switch could be removed.
179 // (http://crbug.com/148675)
180 const char kCreateBrowserOnStartupForTests[] =
181 "create-browser-on-startup-for-tests";
183 // Enables a frame context menu item that toggles the frame in and out of glass
184 // mode (Windows Vista and up only).
185 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
187 // Adds debugging entries such as Inspect Element to context menus of packed
188 // apps.
189 const char kDebugPackedApps[] = "debug-packed-apps";
191 // Triggers a plethora of diagnostic modes.
192 const char kDiagnostics[] = "diagnostics";
194 // Sets the output format for diagnostic modes enabled by diagnostics flag.
195 const char kDiagnosticsFormat[] = "diagnostics-format";
197 // Tells the diagnostics mode to do the requested recovery step(s).
198 const char kDiagnosticsRecovery[] = "diagnostics-recovery";
200 // When kEnableSettingsWindow is used, About is shown as an overlay in Settings
201 // instead of as a separate page, unless this flag is specified.
202 const char kDisableAboutInSettings[] = "disable-about-in-settings";
204 // Disables the experimental asynchronous DNS client.
205 const char kDisableAsyncDns[] = "disable-async-dns";
207 // Disable several subsystems which run network requests in the background.
208 // This is for use when doing network performance testing to avoid noise in the
209 // measurements.
210 const char kDisableBackgroundNetworking[] = "disable-background-networking";
212 // Disables the bundled PPAPI version of Flash.
213 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash";
215 // Disable hardware encoding support for Cast Streaming.
216 const char kDisableCastStreamingHWEncoding[] =
217 "disable-cast-streaming-hw-encoding";
219 // Disable the requirement of Certificate Transparency presence for EV
220 // certificate. This flag only affects the EV indicator.
221 const char kDisableCertificateTransparencyRequirementForEV[] =
222 "disable-ct-for-ev";
224 // Disables detection of child accounts.
225 const char kDisableChildAccountDetection[] =
226 "disable-child-account-detection";
228 // Disables the client-side phishing detection feature. Note that even if
229 // client-side phishing detection is enabled, it will only be active if the
230 // user has opted in to UMA stats and SafeBrowsing is enabled in the
231 // preferences.
232 const char kDisableClientSidePhishingDetection[] =
233 "disable-client-side-phishing-detection";
235 // Disable default component extensions with background pages - useful for
236 // performance tests where these pages may interfere with perf results.
237 const char kDisableComponentExtensionsWithBackgroundPages[] =
238 "disable-component-extensions-with-background-pages";
240 const char kDisableComponentUpdate[] = "disable-component-update";
242 // Disables installation of default apps on first run. This is used during
243 // automated testing.
244 const char kDisableDefaultApps[] = "disable-default-apps";
246 // Disables device discovery notifications.
247 const char kDisableDeviceDiscoveryNotifications[] =
248 "disable-device-discovery-notifications";
250 // Disables the dinosaur easter egg on the offline interstitial.
251 const char kDisableDinosaurEasterEgg[] = "disable-dinosaur-easter-egg";
253 // Disables Domain Reliability Monitoring.
254 const char kDisableDomainReliability[] = "disable-domain-reliability";
256 // Disable extensions.
257 const char kDisableExtensions[] = "disable-extensions";
259 // Disable checking for user opt-in for extensions that want to inject script
260 // into file URLs (ie, always allow it). This is used during automated testing.
261 const char kDisableExtensionsFileAccessCheck[] =
262 "disable-extensions-file-access-check";
264 // Disable the net::URLRequestThrottlerManager functionality for
265 // requests originating from extensions.
266 const char kDisableExtensionsHttpThrottling[] =
267 "disable-extensions-http-throttling";
269 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
270 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
271 // bugs if something isn't working properly in the presence of IPv6. This flag
272 // can be overidden by the "enable-ipv6" flag.
273 const char kDisableIPv6[] = "disable-ipv6";
275 // Disable the behavior that the second click on a launcher item (the click when
276 // the item is already active) minimizes the item.
277 const char kDisableMinimizeOnSecondLauncherItemClick[] =
278 "disable-minimize-on-second-launcher-item-click";
280 // Disables the new bookmark app system.
281 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps";
283 // Disables the new offline error page generated by NetErrorHelper for ChromeOS
284 // and instead uses the old error page generated by OfflineResourceThrottle.
285 const char kDisableNewOfflineErrorPage[] = "disable-new-offline-error-page";
287 // Disables the menu on the NTP for accessing sessions from other devices.
288 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
290 // Disable auto-reload of error pages if offline.
291 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload";
293 // Disable only auto-reloading error pages when the tab is visible.
294 const char kDisableOfflineAutoReloadVisibleOnly[] =
295 "disable-offline-auto-reload-visible-only";
297 // Disable the out of process PDF plugin.
298 const char kDisableOutOfProcessPdf[] = "disable-out-of-process-pdf";
300 // Disable the setting to prompt the user for their OS account password before
301 // revealing plaintext passwords in the password manager.
302 const char kDisablePasswordManagerReauthentication[] =
303 "disable-password-manager-reauthentication";
305 // Disable the new material UI - requires out of process PDF plugin.
306 const char kDisablePdfMaterialUI[] = "disable-pdf-material-ui";
308 // Don't use bubbles for content permissions requests instead of infobars.
309 const char kDisablePermissionsBubbles[] = "disable-permissions-bubbles";
311 // Disable pop-up blocking.
312 const char kDisablePopupBlocking[] = "disable-popup-blocking";
314 // Disable speculative TCP/IP preconnection.
315 const char kDisablePreconnect[] = "disable-preconnect";
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 Site Engagement service, which records interaction with sites
346 // and allocates certain resources accordingly.
347 const char kDisableSiteEngagementService[] = "disable-site-engagement-service";
349 // Disables the suggestions service.
350 const char kDisableSuggestionsService[] = "disable-suggestions-service";
352 // Disables syncing browser data to a Google Account.
353 const char kDisableSync[] = "disable-sync";
355 // Disables syncing one or more sync data types that are on by default.
356 // See sync/internal_api/public/base/model_type.h for possible types. Types
357 // should be comma separated, and follow the naming convention for string
358 // representation of model types, e.g.:
359 // --disable-synctypes='Typed URLs, Bookmarks, Autofill Profiles'
360 const char kDisableSyncTypes[] = "disable-sync-types";
362 // Disables the backend service for web resources.
363 const char kDisableWebResources[] = "disable-web-resources";
365 // Some tests seem to require the application to close when the last
366 // browser window is closed. Thus, we need a switch to force this behavior
367 // for ChromeOS Aura, disable "zero window mode".
368 // TODO(pkotwicz): Investigate if this bug can be removed.
369 // (http://crbug.com/119175)
370 const char kDisableZeroBrowsersOpenForTests[] =
371 "disable-zero-browsers-open-for-tests";
373 // Use a specific disk cache location, rather than one derived from the
374 // UserDatadir.
375 const char kDiskCacheDir[] = "disk-cache-dir";
377 // Forces the maximum disk space to be used by the disk cache, in bytes.
378 const char kDiskCacheSize[] = "disk-cache-size";
380 const char kDnsLogDetails[] = "dns-log-details";
382 // Disables prefetching of DNS information.
383 const char kDnsPrefetchDisable[] = "dns-prefetch-disable";
385 // Requests that a running browser process dump its collected histograms to a
386 // given file. The file is overwritten if it exists.
387 const char kDumpBrowserHistograms[] = "dump-browser-histograms";
389 // Overrides the path of Easy Unlock component app.
390 const char kEasyUnlockAppPath[] = "easy-unlock-app-path";
392 // If set, the app list will be enabled as if enabled from CWS.
393 const char kEnableAppList[] = "enable-app-list";
395 // Enable OS integration for Chrome app file associations.
396 const char kEnableAppsFileAssociations[] = "enable-apps-file-associations";
398 // Enables the experimental asynchronous DNS client.
399 const char kEnableAsyncDns[] = "enable-async-dns";
401 // Enables the benchmarking extensions.
402 const char kEnableBenchmarking[] = "enable-benchmarking";
404 // Enables the multi-level undo system for bookmarks.
405 const char kEnableBookmarkUndo[] = "enable-bookmark-undo";
407 // Enables detection of child accounts.
408 const char kEnableChildAccountDetection[] =
409 "enable-child-account-detection";
411 // This applies only when the process type is "service". Enables the Cloud
412 // Print Proxy component within the service process.
413 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
415 // If true devtools experimental settings are enabled.
416 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments";
418 // Enable device discovery notifications.
419 const char kEnableDeviceDiscoveryNotifications[] =
420 "enable-device-discovery-notifications";
422 // Enables the DOM distiller.
423 const char kEnableDomDistiller[] = "enable-dom-distiller";
425 // Enables Domain Reliability Monitoring.
426 const char kEnableDomainReliability[] = "enable-domain-reliability";
428 // Enables Download Notification.
429 const char kEnableDownloadNotification[] = "enable-download-notification";
431 // Enable Enhanced Bookmarks.
432 const char kEnhancedBookmarksExperiment[] = "enhanced-bookmarks-experiment";
434 // Enables experimentation with ephemeral apps to be launched from the webstore.
435 const char kEnableEphemeralAppsInWebstore[] =
436 "enable-ephemeral-apps-in-webstore";
438 // Enables experimental hotword features specific to always-on.
439 const char kEnableExperimentalHotwordHardware[] = "enable-hotword-hardware";
441 // Enables logging for extension activity.
442 const char kEnableExtensionActivityLogging[] =
443 "enable-extension-activity-logging";
445 const char kEnableExtensionActivityLogTesting[] =
446 "enable-extension-activity-log-testing";
448 // Enable the fast unload controller, which speeds up tab/window close by
449 // running a tab's onunload js handler independently of the GUI -
450 // crbug.com/142458 .
451 const char kEnableFastUnload[] = "enable-fast-unload";
453 // Enables IPv6 support, even if probes suggest that it may not be fully
454 // supported. Some probes may require internet connections, and this flag will
455 // allow support independent of application testing. This flag overrides
456 // "disable-ipv6" which appears elswhere in this file.
457 const char kEnableIPv6[] = "enable-ipv6";
459 // Enables experimentation with launching ephemeral apps via hyperlinks.
460 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps";
462 // Enables the material design Settings feature.
463 const char kEnableMaterialDesignSettings[] = "enable-md-settings";
465 // Enables Media Router.
466 const char kEnableMediaRouter[] = "enable-media-router";
468 // Runs the Native Client inside the renderer process and enables GPU plugin
469 // (internally adds lEnableGpuPlugin to the command line).
470 const char kEnableNaCl[] = "enable-nacl";
472 // Enables the network-related benchmarking extensions.
473 const char kEnableNetBenchmarking[] = "enable-net-benchmarking";
475 // Enables the new bookmark app system.
476 const char kEnableNewBookmarkApps[] = "enable-new-bookmark-apps";
478 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
479 // HTTP is still used for all requests.
480 const char kEnableNpnHttpOnly[] = "enable-npn-http";
482 // Enable auto-reload of error pages if offline.
483 const char kEnableOfflineAutoReload[] = "enable-offline-auto-reload";
485 // Only auto-reload error pages when the tab is visible.
486 const char kEnableOfflineAutoReloadVisibleOnly[] =
487 "enable-offline-auto-reload-visible-only";
489 // Enable the out of process PDF plugin.
490 const char kEnableOutOfProcessPdf[] = "enable-out-of-process-pdf";
492 // Enables panels (always on-top docked pop-up windows).
493 const char kEnablePanels[] = "enable-panels";
495 // Enable the new material UI - requires out of process PDF plugin.
496 const char kEnablePdfMaterialUI[] = "enable-pdf-material-ui";
498 // Enables presenting plugin placeholder content as shadow DOM.
499 const char kEnablePluginPlaceholderShadowDom[] =
500 "enable-plugin-placeholder-shadow-dom";
502 // Enables a number of potentially annoying security features (strict mixed
503 // content mode, powerful feature restrictions, etc.)
504 const char kEnablePotentiallyAnnoyingSecurityFeatures[] =
505 "enable-potentially-annoying-security-features";
507 // Enables the Power overlay in Settings.
508 const char kEnablePowerOverlay[] = "enable-power-overlay";
510 // Enables showing unregistered printers in print preview
511 const char kEnablePrintPreviewRegisterPromos[] =
512 "enable-print-preview-register-promos";
514 // Enable Privet storage.
515 const char kEnablePrivetStorage[] = "enable-privet-storage";
517 // Enables tracking of tasks in profiler for viewing via about:profiler.
518 // To predominantly disable tracking (profiling), use the command line switch:
519 // --enable-profiling=0
520 // Some tracking will still take place at startup, but it will be turned off
521 // during chrome_browser_main.
522 const char kEnableProfiling[] = "enable-profiling";
524 // Enables query in the omnibox.
525 const char kEnableQueryExtraction[] = "enable-query-extraction";
527 // Enables support for the QUIC protocol. This is a temporary testing flag.
528 const char kEnableQuic[] = "enable-quic";
530 // Disable use of pacing of QUIC packets.
531 // This only has an effect if QUIC protocol is enabled.
532 const char kEnableQuicPacing[] = "enable-quic-pacing";
534 // Enable use of Chromium's port selection for the ephemeral port via bind().
535 // This only has an effect if QUIC protocol is enabled.
536 const char kEnableQuicPortSelection[] = "enable-quic-port-selection";
538 // Enables context-sensitive reader mode button in the toolbar.
539 const char kEnableReaderModeToolbarIcon[] =
540 "enable-reader-mode-toolbar-icon";
542 // Enables save password prompt bubble.
543 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble";
545 // Enables SDCH for https schemes.
546 const char kEnableSdchOverHttps[] = "enable-sdch-over-https";
548 // Enables SDCH persistence.
549 const char kEnableSdchPersistence[] = "enable-sdch-persistence";
551 // Enables using bubbles for session restore request instead of infobars.
552 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble";
554 // Enable or disable settings in a separate browser window per profile
555 // (see SettingsWindowEnabled() below).
556 const char kEnableSettingsWindow[] = "enable-settings-window";
557 const char kDisableSettingsWindow[] = "disable-settings-window";
559 // Enable the Site Engagement service, which records interaction with sites and
560 // allocates certain resources accordingly.
561 const char kEnableSiteEngagementService[] = "enable-site-engagement-service";
563 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag.
564 const char kEnableSpdy4[] = "enable-spdy4";
566 // Enables the suggestions service.
567 const char kEnableSuggestionsService[] = "enable-suggestions-service";
569 // Enables the supervised user managed bookmarks folder.
570 const char kEnableSupervisedUserManagedBookmarksFolder[] =
571 "enable-supervised-user-managed-bookmarks-folder";
573 // Enables synced articles.
574 const char kEnableSyncArticles[] = "enable-sync-articles";
576 // Enables user control over muting tab audio from the tab strip.
577 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting";
579 // Enables fanciful thumbnail processing. Used with NTP for
580 // instant-extended-api, where thumbnails are generally smaller.
581 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting";
583 // Enables Translate experimental new UX which replaces the infobar.
584 const char kEnableTranslateNewUX[] = "enable-translate-new-ux";
586 // Enables Alternate-Protocol when the port is user controlled (> 1024).
587 const char kEnableUserAlternateProtocolPorts[] =
588 "enable-user-controlled-alternate-protocol-ports";
590 // Enables a new "web app" style frame for hosted apps (including bookmark
591 // apps).
592 extern const char kEnableWebAppFrame[] = "enable-web-app-frame";
594 // Enables the Website Settings page on the Settings page.
595 const char kEnableWebsiteSettingsManager[] = "enable-website-settings-manager";
597 // Enables synchronizing WiFi credentials across devices, using Chrome Sync.
598 const char kEnableWifiCredentialSync[] = "enable-wifi-credential-sync";
600 // Values for the kExtensionContentVerification flag.
601 // See ContentVerifierDelegate::Mode for more explanation.
602 const char kExtensionContentVerificationBootstrap[] = "bootstrap";
603 const char kExtensionContentVerificationEnforceStrict[] = "enforce_strict";
604 const char kExtensionContentVerificationEnforce[] = "enforce";
606 // Name of the command line flag to force content verification to be on in one
607 // of various modes.
608 const char kExtensionContentVerification[] = "extension-content-verification";
610 // Turns on extension install verification if it would not otherwise have been
611 // turned on.
612 const char kExtensionsInstallVerification[] = "extensions-install-verification";
614 // Specifies a comma-separated list of extension ids that should be forced to
615 // be treated as not from the webstore when doing install verification.
616 const char kExtensionsNotWebstore[] = "extensions-not-webstore";
618 // Frequency in seconds for Extensions auto-update.
619 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency";
621 // Fakes the channel of the browser for purposes of Variations filtering. This
622 // is to be used for testing only. Possible values are "stable", "beta", "dev"
623 // and "canary". Note that this only applies if the browser's reported channel
624 // is UNKNOWN.
625 const char kFakeVariationsChannel[] = "fake-variations-channel";
627 // If this flag is present then this command line is being delegated to an
628 // already running chrome process via the fast path, ie: before chrome.dll is
629 // loaded. It is useful to tell the difference for tracking purposes.
630 const char kFastStart[] = "fast-start";
632 // These two flags are added around the switches about:flags adds to the
633 // command line. This is useful to see which switches were added by about:flags
634 // on about:version. They don't have any effect.
635 const char kFlagSwitchesBegin[] = "flag-switches-begin";
636 const char kFlagSwitchesEnd[] = "flag-switches-end";
638 // Forces application mode. This hides certain system UI elements and forces
639 // the app to be installed if it hasn't been already.
640 const char kForceAppMode[] = "force-app-mode";
642 // This option can be used to force parameters of field trials when testing
643 // changes locally. The argument is a list of key/value pairs prefixed by
644 // Trial/Group pair. The following shows setting parameters to 2 experiments
645 // where in the first, it forces "id" to be "foo" for the "Enabled" group of
646 // the "EnhancedBookmarks" trial:
647 // "EnhancedBookmarks.Enabled:id/foo,Experiment2.Group1:key1/value1"
648 // Trial names, groups names, parameter names, and value should all be URL
649 // escaped for all non-alphanumeric characters.
650 const char kForceFieldTrialParams[] = "force-fieldtrial-params";
652 // Displays the First Run experience when the browser is started, regardless of
653 // whether or not it's actually the First Run (this overrides kNoFirstRun).
654 const char kForceFirstRun[] = "force-first-run";
656 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data
657 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids
658 // prefixed with the character "t" will be treated as Trigger Variation Ids.
659 const char kForceVariationIds[] = "force-variation-ids";
661 // These flags show the man page on Linux. They are equivalent to each
662 // other.
663 const char kHelp[] = "help";
664 const char kHelpShort[] = "h";
666 // Makes Windows happy by allowing it to show "Enable access to this program"
667 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
668 // shows an error box because the only way to hide Chrome is by uninstalling
669 // it.
670 const char kHideIcons[] = "hide-icons";
672 // Enables grouping websites by domain and filtering them by period.
673 const char kHistoryEnableGroupByDomain[] = "enable-grouped-history";
675 // Specifies which page will be displayed in newly-opened tabs. We need this
676 // for testing purposes so that the UI tests don't depend on what comes up for
677 // http://google.com.
678 const char kHomePage[] = "homepage";
680 // Comma-separated list of rules that control how hostnames are mapped.
682 // For example:
683 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
684 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
685 // resolved to "proxy".
686 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
687 // Will also force the port of the resulting
688 // socket address to be 77.
689 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
690 // except for "www.google.com".
692 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
693 // connect and host resolver in a direct connection, and the CONNECT in an http
694 // proxy connection, and the endpoint host in a SOCKS proxy connection).
695 const char kHostRules[] = "host-rules";
697 // The maximum number of retry attempts to resolve the host. Set this to zero
698 // to disable host resolver retry attempts.
699 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts";
701 // Causes net::URLFetchers to ignore requests for SSL client certificates,
702 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
703 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
704 // kSyncServiceURL, etc)
705 const char kIgnoreUrlFetcherCertRequests[] =
706 "ignore-urlfetcher-cert-requests";
708 // Causes the browser to launch directly in incognito mode.
709 const char kIncognito[] = "incognito";
711 // Causes Chrome to initiate an installation flow for the given app.
712 const char kInstallChromeApp[] = "install-chrome-app";
714 // Causes Chrome to attempt to get metadata from the webstore for the
715 // app/extension ID given, and then prompt the user to download and install it.
716 // This is allowed *only* for ephemeral apps. All other ids will be ignored.
717 const char kInstallEphemeralAppFromWebstore[] =
718 "install-ephemeral-app-from-webstore";
720 // A list of whitelists to install for a supervised user, for testing.
721 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...]
722 const char kInstallSupervisedUserWhitelists[] =
723 "install-supervised-user-whitelists";
725 // Marks a renderer as an Instant process.
726 const char kInstantProcess[] = "instant-process";
728 // Invalidation service should use GCM network channel even if experiment is not
729 // enabled.
730 const char kInvalidationUseGCMChannel[] = "invalidation-use-gcm-channel";
732 // Disable latest shipping ECMAScript 6 features.
733 const char kDisableJavaScriptHarmonyShipping[] =
734 "disable-javascript-harmony-shipping";
736 // Enables experimental Harmony (ECMAScript 6) features.
737 const char kJavaScriptHarmony[] = "javascript-harmony";
739 // Dumps IPC messages sent from renderer processes to the browser process to
740 // the given directory. Used primarily to gather samples for IPC fuzzing.
741 const char kIpcDumpDirectory[] = "ipc-dump-directory";
743 // Specifies the testcase used by the IPC fuzzer.
744 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
746 // Used for testing - keeps browser alive after last browser window closes.
747 const char kKeepAliveForTest[] = "keep-alive-for-test";
749 // Enable Kiosk mode.
750 const char kKioskMode[] = "kiosk";
752 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
753 // See http://crbug.com/31395.
754 const char kKioskModePrinting[] = "kiosk-printing";
756 // Comma-separated list of directories with component extensions to load.
757 const char kLoadComponentExtension[] = "load-component-extension";
759 // Loads an extension from the specified directory.
760 const char kLoadExtension[] = "load-extension";
762 // Makes Chrome default browser
763 const char kMakeDefaultBrowser[] = "make-default-browser";
765 // Use to opt-in to marking HTTP as non-secure.
766 const char kMarkNonSecureAs[] = "mark-non-secure-as";
767 const char kMarkNonSecureAsNeutral[] = "neutral";
768 const char kMarkNonSecureAsDubious[] = "dubious";
769 const char kMarkNonSecureAsNonSecure[] = "non-secure";
771 // Forces the maximum disk space to be used by the media cache, in bytes.
772 const char kMediaCacheSize[] = "media-cache-size";
774 // Enables histograming of tasks served by MessageLoop. See
775 // about:histograms/Loop for results, which show frequency of messages on each
776 // thread, including APC count, object signalling count, etc.
777 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer";
779 // Enables the recording of metrics reports but disables reporting. In contrast
780 // to kDisableMetrics, this executes all the code that a normal client would
781 // use for reporting, except the report is dropped rather than sent to the
782 // server. This is useful for finding issues in the metrics code during UI and
783 // performance tests.
784 const char kMetricsRecordingOnly[] = "metrics-recording-only";
786 // Allows setting a different destination ID for connection-monitoring GCM
787 // messages. Useful when running against a non-prod management server.
788 const char kMonitoringDestinationID[] = "monitoring-destination-id";
790 // Sets the base logging level for the net log. Log 0 logs the most data.
791 // Intended primarily for use with --log-net-log.
792 const char kNetLogLevel[] = "net-log-level";
794 // Disables the default browser check. Useful for UI/browser tests where we
795 // want to avoid having the default browser info-bar displayed.
796 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
798 // By default, an https page can load images, fonts or frames from an http
799 // page. This switch overrides this to block this lesser mixed-content problem.
800 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
802 // Don't record/playback events when using record & playback.
803 const char kNoEvents[] = "no-events";
805 // Disables all experiments set on about:flags. Does not disable about:flags
806 // itself. Useful if an experiment makes chrome crash at startup: One can start
807 // chrome with --no-experiments, disable the problematic lab at about:flags and
808 // then restart chrome without this switch again.
809 const char kNoExperiments[] = "no-experiments";
811 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
812 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
813 // prevent first run from occuring the next time chrome is launched without this
814 // flag.
815 const char kNoFirstRun[] = "no-first-run";
817 // Whether or not the browser should warn if the profile is on a network share.
818 // This flag is only relevant for Windows currently.
819 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
821 // Don't send hyperlink auditing pings
822 const char kNoPings[] = "no-pings";
824 // Don't use a proxy server, always make direct connections. Overrides any
825 // other proxy server flags that are passed.
826 const char kNoProxyServer[] = "no-proxy-server";
828 // Disables the service process from adding itself as an autorun process. This
829 // does not delete existing autorun registrations, it just prevents the service
830 // from registering a new one.
831 const char kNoServiceAutorun[] = "no-service-autorun";
833 // Does not automatically open a browser window on startup (used when
834 // launching Chrome for the purpose of hosting background apps).
835 const char kNoStartupWindow[] = "no-startup-window";
837 // Disables checking whether we received an acknowledgment when registering
838 // a supervised user. Also disables the timeout during registration that waits
839 // for the ack. Useful when debugging against a server that does not
840 // support notifications.
841 const char kNoSupervisedUserAcknowledgmentCheck[] =
842 "no-managed-user-acknowledgment-check";
844 // Specifies the maximum number of threads to use for running the Proxy
845 // Autoconfig (PAC) script.
846 const char kNumPacThreads[] = "num-pac-threads";
848 // Launches URL in new browser window.
849 const char kOpenInNewWindow[] = "new-window";
851 // Force use of QUIC for requests to the specified origin.
852 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on";
854 // The time that a new chrome process which is delegating to an already running
855 // chrome process started. (See ProcessSingleton for more details.)
856 const char kOriginalProcessStartTime[] = "original-process-start-time";
858 // Packages an extension to a .crx installable file from a given directory.
859 const char kPackExtension[] = "pack-extension";
861 // Optional PEM private key to use in signing packaged .crx.
862 const char kPackExtensionKey[] = "pack-extension-key";
864 // Specifies the path to the user data folder for the parent profile.
865 const char kParentProfile[] = "parent-profile";
867 // Development flag for permission request API. This flag is needed until
868 // the API is finalized.
869 // TODO(bauerb): Remove when this flag is not needed anymore.
870 const char kPermissionRequestApiScope[] = "permission-request-api-scope";
872 // Development flag for permission request API. This flag is needed until
873 // the API is finalized.
874 // TODO(bauerb): Remove when this flag is not needed anymore.
875 const char kPermissionRequestApiUrl[] = "permission-request-api-url";
877 // Use the PPAPI (Pepper) Flash found at the given path.
878 const char kPpapiFlashPath[] = "ppapi-flash-path";
880 // Report the given version for the PPAPI (Pepper) Flash. The version should be
881 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
882 // defaults to "10.2.999.999".
883 const char kPpapiFlashVersion[] = "ppapi-flash-version";
885 // Triggers prerendering of search base page to prefetch results for the typed
886 // omnibox query. Only has an effect when prerender is enabled.
887 const char kPrefetchSearchResults[] = "prefetch-search-results";
889 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
890 // effect when Instant is either disabled or restricted to search, and when
891 // prerender is enabled.
892 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
893 // These are the values the kPrerenderFromOmnibox switch may have, as in
894 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
895 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
896 // disabled: No prerendering.
897 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
898 // enabled: Guaranteed prerendering.
899 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
900 // Controls speculative prerendering of pages, and content prefetching. Both
901 // are dispatched from <link rel=prefetch href=...> elements.
902 const char kPrerenderMode[] = "prerender";
903 // These are the values the kPrerenderMode switch may have, as in
904 // "--prerender=disabled".
905 // disabled: No prerendering.
906 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
907 // enabled: Prerendering.
908 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
910 // Use IPv6 only for privet HTTP.
911 const char kPrivetIPv6Only[] = "privet-ipv6-only";
913 // Outputs the product version information and quit. Used as an internal api to
914 // detect the installed version of Chrome on Linux.
915 const char kProductVersion[] = "product-version";
917 // Selects directory of profile to associate with the first browser launched.
918 const char kProfileDirectory[] = "profile-directory";
920 // Starts the sampling based profiler for the browser process at startup. This
921 // will only work if chrome has been built with the gyp variable profiling=1.
922 // The output will go to the value of kProfilingFile.
923 const char kProfilingAtStart[] = "profiling-at-start";
925 // Specifies a location for profiling output. This will only work if chrome has
926 // been built with the gyp variable profiling=1.
928 // {pid} if present will be replaced by the pid of the process.
929 // {count} if present will be incremented each time a profile is generated
930 // for this process.
931 // The default is chrome-profile-{pid}.
932 const char kProfilingFile[] = "profiling-file";
934 // Controls whether profile data is periodically flushed to a file. Normally
935 // the data gets written on exit but cases exist where chrome doesn't exit
936 // cleanly (especially when using single-process). A time in seconds can be
937 // specified.
938 const char kProfilingFlush[] = "profiling-flush";
940 // Forces proxy auto-detection.
941 const char kProxyAutoDetect[] = "proxy-auto-detect";
943 // Specifies a list of hosts for whom we bypass proxy settings and use direct
944 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
945 // specified. This is a comma-separated list of bypass rules. See:
946 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
947 const char kProxyBypassList[] = "proxy-bypass-list";
949 // Uses the pac script at the given URL
950 const char kProxyPacUrl[] = "proxy-pac-url";
952 // Uses a specified proxy server, overrides system settings. This switch only
953 // affects HTTP and HTTPS requests.
954 const char kProxyServer[] = "proxy-server";
956 // Specifies a comma separated list of QUIC connection options to send to
957 // the server.
958 const char kQuicConnectionOptions[] = "quic-connection-options";
960 // Specifies the maximum length for a QUIC packet.
961 const char kQuicMaxPacketLength[] = "quic-max-packet-length";
963 // Specifies the version of QUIC to use.
964 const char kQuicVersion[] = "quic-version";
966 // Remember user proceeds through SSL interstitials for a specified amount of
967 // time. In particular, remember these decisions through session restart. The
968 // time delta to remember certificates should be specified in seconds.
969 const char kRememberCertErrorDecisions[] = "remember-cert-error-decisions";
971 // If set, the app list will forget it has been installed on startup. Note this
972 // doesn't prevent the app list from running, it just makes Chrome think the app
973 // list hasn't been enabled (as in kEnableAppList) yet.
974 const char kResetAppListInstallState[] = "reset-app-list-install-state";
976 // Indicates the last session should be restored on startup. This overrides the
977 // preferences value and is primarily intended for testing. The value of this
978 // switch is the number of tabs to wait until loaded before 'load completed' is
979 // sent to the ui_test.
980 const char kRestoreLastSession[] = "restore-last-session";
982 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
983 // (with a directory of sub-resources). Enable only saving pages as MHTML.
984 // See http://crbug.com/120416 for how to remove this switch.
985 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
987 // If present, safebrowsing only performs update when
988 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
989 // This is used for testing only.
990 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
992 // TODO(lzheng): Remove this flag once the feature works fine
993 // (http://crbug.com/74848).
995 // Disables safebrowsing feature that checks download url and downloads
996 // content's hash to make sure the content are not malicious.
997 const char kSbDisableDownloadProtection[] =
998 "safebrowsing-disable-download-protection";
1000 // Disables safebrowsing feature that checks for blacklisted extensions.
1001 const char kSbDisableExtensionBlacklist[] =
1002 "safebrowsing-disable-extension-blacklist";
1004 // Causes the process to run as a service process.
1005 const char kServiceProcess[] = "service";
1007 // Sets a token in the token service, for testing.
1008 const char kSetToken[] = "set-token";
1010 // If true the app list will be shown.
1011 const char kShowAppList[] = "show-app-list";
1013 // See kHideIcons.
1014 const char kShowIcons[] = "show-icons";
1016 // Command line flag offering a "Show saved copy" option to the user if offline.
1017 // The various modes are disabled, primary, or secondary. Primary/secondary
1018 // refers to button placement (for experiment).
1019 const char kShowSavedCopy[] = "show-saved-copy";
1021 // Values for the kShowSavedCopy flag.
1022 const char kEnableShowSavedCopyPrimary[] = "primary";
1023 const char kEnableShowSavedCopySecondary[] = "secondary";
1024 const char kDisableShowSavedCopy[] = "disable";
1026 // Does not show an infobar when an extension attaches to a page using
1027 // chrome.debugger page. Required to attach to extension background pages.
1028 const char kSilentDebuggerExtensionAPI[] = "silent-debugger-extension-api";
1030 // Causes Chrome to launch without opening any windows by default. Useful if
1031 // one wishes to use Chrome as an ash server.
1032 const char kSilentLaunch[] = "silent-launch";
1034 // Simulates that elevation is needed to recover upgrade channel.
1035 const char kSimulateElevatedRecovery[] = "simulate-elevated-recovery";
1037 // Simulates a critical update being available.
1038 const char kSimulateCriticalUpdate[] = "simulate-critical-update";
1040 // Simulates that current version is outdated.
1041 const char kSimulateOutdated[] = "simulate-outdated";
1043 // Simulates that current version is outdated and auto-update is off.
1044 const char kSimulateOutdatedNoAU[] = "simulate-outdated-no-au";
1046 // Simulates an update being available.
1047 const char kSimulateUpgrade[] = "simulate-upgrade";
1049 // Speculative resource prefetching.
1050 const char kSpeculativeResourcePrefetching[] =
1051 "speculative-resource-prefetching";
1053 // Speculative resource prefetching is disabled.
1054 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
1056 // Speculative resource prefetching will only learn about resources that need to
1057 // be prefetched but will not prefetch them.
1058 const char kSpeculativeResourcePrefetchingLearning[] = "learning";
1060 // Speculative resource prefetching is enabled.
1061 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
1063 #if defined(ENABLE_SPELLCHECK)
1064 // Enables auto correction for misspelled words.
1065 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct";
1067 // Enables participation in the field trial for user feedback to spelling
1068 // service.
1069 const char kEnableSpellingFeedbackFieldTrial[] =
1070 "enable-spelling-feedback-field-trial";
1072 // Specifies the URL where spelling service feedback data will be sent instead
1073 // of the default URL. This switch is for temporary testing only.
1074 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1075 // August 2013.
1076 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url";
1078 // Specifies the number of seconds between sending batches of feedback to
1079 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This
1080 // switch is for temporary testing only.
1081 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1082 // August 2013.
1083 const char kSpellingServiceFeedbackIntervalSeconds[] =
1084 "spelling-service-feedback-interval-seconds";
1085 #endif
1087 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1088 // "tls1.2").
1089 const char kSSLVersionMax[] = "ssl-version-max";
1091 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1092 // "tls1.2").
1093 const char kSSLVersionMin[] = "ssl-version-min";
1095 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1096 // "tls1.2") that TLS fallback will accept.
1097 const char kSSLVersionFallbackMin[] = "ssl-version-fallback-min";
1099 // These values aren't switches, but rather the values that kSSLVersionMax,
1100 // kSSLVersionMin and kSSLVersionFallbackMin can have.
1101 const char kSSLVersionSSLv3[] = "ssl3";
1102 const char kSSLVersionTLSv1[] = "tls1";
1103 const char kSSLVersionTLSv11[] = "tls1.1";
1104 const char kSSLVersionTLSv12[] = "tls1.2";
1106 // Starts the browser maximized, regardless of any previous settings.
1107 const char kStartMaximized[] = "start-maximized";
1109 // Sets the supervised user ID for any loaded or newly created profile to the
1110 // given value. Pass an empty string to mark the profile as non-supervised.
1111 // Used for testing.
1112 const char kSupervisedUserId[] = "managed-user-id";
1114 // Enables/disables SafeSites filtering for supervised users. Possible values
1115 // are "enabled", "disabled", "blacklist-only", and "online-check-only".
1116 const char kSupervisedUserSafeSites[] = "supervised-user-safesites";
1118 // Used to authenticate requests to the Sync service for supervised users.
1119 // Setting this switch also causes Sync to be set up for a supervised user.
1120 const char kSupervisedUserSyncToken[] = "managed-user-sync-token";
1122 // This flag causes sync to retry very quickly (see polling_constants.h) the
1123 // when it encounters an error, as the first step towards exponential backoff.
1124 const char kSyncShortInitialRetryOverride[] =
1125 "sync-short-initial-retry-override";
1127 // Overrides the default server used for profile sync.
1128 const char kSyncServiceURL[] = "sync-url";
1130 // Enables deferring sync backend initialization until user initiated changes
1131 // occur.
1132 const char kSyncDisableDeferredStartup[] = "sync-disable-deferred-startup";
1134 // Allows overriding the deferred init fallback timeout.
1135 const char kSyncDeferredStartupTimeoutSeconds[] =
1136 "sync-deferred-startup-timeout-seconds";
1138 // Enables feature to avoid unnecessary GetUpdate requests.
1139 const char kSyncEnableGetUpdateAvoidance[] =
1140 "sync-enable-get-update-avoidance";
1142 // Disable data backup when user's not signed in.
1143 const char kSyncDisableBackup[] = "disable-sync-backup";
1145 // Disable sync rollback.
1146 const char kSyncDisableRollback[] = "disable-sync-rollback";
1148 // Passes the name of the current running automated test to Chrome.
1149 const char kTestName[] = "test-name";
1151 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1152 // The value is the host:port of the trusted proxy.
1153 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy";
1155 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1156 // be used only by the upgrade process.
1157 const char kTryChromeAgain[] = "try-chrome-again";
1159 // Runs un-installation steps that were done by chrome first-run.
1160 const char kUninstall[] = "uninstall";
1162 // Overrides per-origin quota settings to unlimited storage for any
1163 // apps/origins. This should be used only for testing purpose.
1164 const char kUnlimitedStorage[] = "unlimited-storage";
1166 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1167 // testing flag.
1168 const char kUseSpdy[] = "use-spdy";
1170 // A string used to override the default user agent with a custom one.
1171 const char kUserAgent[] = "user-agent";
1173 // Specifies the user data directory, which is where the browser will look for
1174 // all of its state.
1175 const char kUserDataDir[] = "user-data-dir";
1177 // Examines a .crx for validity and prints the result.
1178 const char kValidateCrx[] = "validate-crx";
1180 // Uses experimental simple cache backend if possible.
1181 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend";
1183 // Enables using an in-process Mojo service for the v8 proxy resolver.
1184 const char kV8PacMojoInProcess[] = "v8-pac-mojo-in-process";
1186 // Enables using an out-of-process Mojo service for the v8 proxy resolver.
1187 const char kV8PacMojoOutOfProcess[] = "v8-pac-mojo-out-of-process";
1189 // Specifies a custom URL for the server which reports variation data to the
1190 // client. Specifying this switch enables the Variations service on
1191 // unofficial builds. See variations_service.cc.
1192 const char kVariationsServerURL[] = "variations-server-url";
1194 // Prints version information and quits.
1195 const char kVersion[] = "version";
1197 // Specify the initial window position: --window-position=x,y
1198 const char kWindowPosition[] = "window-position";
1200 // Specify the initial window size: --window-size=w,h
1201 const char kWindowSize[] = "window-size";
1203 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1204 // use Chromium's network stack to fetch, and V8 to evaluate.
1205 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
1207 // Specifies which category option was clicked in the Windows Jumplist that
1208 // resulted in a browser startup.
1209 const char kWinJumplistAction[] = "win-jumplist-action";
1211 #if defined(OS_ANDROID)
1212 // Disables support for playing videos on Chromecast devices.
1213 const char kDisableCast[] = "disable-cast";
1215 // Disables Contextual Search.
1216 const char kDisableContextualSearch[] = "disable-contextual-search";
1218 // Disables zero suggest experiment on Dev channel.
1219 const char kDisableZeroSuggest[] = "disable-zero-suggest";
1221 // Enable the accessibility tab switcher.
1222 const char kEnableAccessibilityTabSwitcher[] =
1223 "enable-accessibility-tab-switcher";
1225 // Enables Contextual Search.
1226 const char kEnableContextualSearch[] = "enable-contextual-search";
1228 // Enables the DOM distiller animated button UI for Android.
1229 const char kEnableDomDistillerButtonAnimation[] =
1230 "enable-dom-distiller-button-animation";
1232 // Enables zero suggest functionality on Dev channel, showing most visited
1233 // sites as default suggestions.
1234 const char kEnableZeroSuggestMostVisited[] =
1235 "enable-zero-suggest-most-visited";
1237 // Enable zero suggest functionality on Dev channel, showing most visited
1238 // sites on non-search-result pages as default suggestions.
1239 const char kEnableZeroSuggestMostVisitedWithoutSerp[] =
1240 "enable-zero-suggest-most-visited-without-serp";
1242 // Enables instant search clicks feature.
1243 const char kEnableInstantSearchClicks[] = "enable-instant-search-clicks";
1245 #endif
1247 #if defined(USE_ASH)
1248 const char kOpenAsh[] = "open-ash";
1249 #endif
1251 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1252 // Specifies which password store to use (detect, default, gnome, kwallet).
1253 const char kPasswordStore[] = "password-store";
1254 #endif
1256 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1257 // Triggers migration of user data directory to another directory
1258 // specified as a parameter. The migration is done under singleton lock,
1259 // and sanity checks are made to avoid corrupting the profile.
1260 // The browser exits after migration is complete.
1261 const char kMigrateDataDirForSxS[] = "migrate-data-dir-for-sxs";
1262 #endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1264 #if defined(OS_MACOSX)
1265 // Prevents Chrome from quitting when Chrome Apps are open.
1266 const char kAppsKeepChromeAliveInTests[] = "apps-keep-chrome-alive-in-tests";
1268 // Shows a notification when quitting Chrome with hosted apps running. Default
1269 // behavior is to also quit all hosted apps.
1270 const char kHostedAppQuitNotification[] = "enable-hosted-app-quit-notification";
1272 // Disables app shim creation for hosted apps on Mac.
1273 const char kDisableHostedAppShimCreation[] = "disable-hosted-app-shim-creation";
1275 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1276 // older, SnowLeopard-style fullscreen.
1277 const char kDisableSystemFullscreenForTesting[] =
1278 "disable-system-fullscreen-for-testing";
1280 // A process type (switches::kProcessType) that relaunches the browser. See
1281 // chrome/browser/mac/relauncher.h.
1282 const char kRelauncherProcess[] = "relauncher";
1284 // This is how the metrics client ID is passed from the browser process to its
1285 // children. With Crashpad, the metrics client ID is distinct from the crash
1286 // client ID.
1287 const char kMetricsClientID[] = "metrics-client-id";
1289 #endif
1291 // Use bubbles for content permissions requests instead of infobars.
1292 const char kEnablePermissionsBubbles[] = "enable-permissions-bubbles";
1294 #if defined(OS_WIN)
1295 // Fallback to XPS. By default connector uses CDD.
1296 const char kEnableCloudPrintXps[] = "enable-cloud-print-xps";
1298 // Force-enables the profile shortcut manager. This is needed for tests since
1299 // they use a custom-user-data-dir which disables this.
1300 const char kEnableProfileShortcutManager[] = "enable-profile-shortcut-manager";
1302 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1303 // Windows 8 and higher. Used when relaunching metro Chrome.
1304 const char kForceImmersive[] = "force-immersive";
1306 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1307 // Windows 8 and higher. Used when relaunching metro Chrome.
1308 const char kForceDesktop[] = "force-desktop";
1310 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1311 const char kRelaunchShortcut[] = "relaunch-shortcut";
1313 // Requests that Chrome launch the Metro viewer process via the given appid
1314 // (which is assumed to be registered as default browser) and synchronously
1315 // connect to it.
1316 const char kViewerLaunchViaAppId[] = "viewer-launch-via-appid";
1318 // Waits for the given handle to be signaled before relaunching metro Chrome on
1319 // Windows 8 and higher.
1320 const char kWaitForMutex[] = "wait-for-mutex";
1322 // Indicates that chrome was launched to service a search request in Windows 8.
1323 const char kWindows8Search[] = "windows8-search";
1324 #endif
1326 #if defined(ENABLE_PRINT_PREVIEW) && !defined(OFFICIAL_BUILD)
1327 // Enables support to debug printing subsystem.
1328 const char kDebugPrint[] = "debug-print";
1329 #endif
1331 #ifndef NDEBUG
1332 // Enables overriding the path of file manager extension.
1333 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
1334 #endif
1336 bool AboutInSettingsEnabled() {
1337 return SettingsWindowEnabled() &&
1338 !base::CommandLine::ForCurrentProcess()->HasSwitch(
1339 ::switches::kDisableAboutInSettings);
1342 bool MdSettingsEnabled() {
1343 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1344 ::switches::kEnableMaterialDesignSettings);
1347 bool MediaRouterEnabled() {
1348 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1349 ::switches::kEnableMediaRouter);
1352 // Will return true as a default value if the "disable-new-offline-error-page"
1353 // command-line switch is not available.
1354 bool NewOfflineErrorPageEnabled() {
1355 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1356 ::switches::kDisableNewOfflineErrorPage);
1359 bool OutOfProcessPdfEnabled() {
1360 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnableOutOfProcessPdf))
1361 return true;
1363 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
1364 kDisableOutOfProcessPdf))
1365 return false;
1367 // Default.
1368 return true;
1371 bool PdfMaterialUIEnabled() {
1372 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kEnablePdfMaterialUI))
1373 return true;
1375 if (base::CommandLine::ForCurrentProcess()->HasSwitch(kDisablePdfMaterialUI))
1376 return false;
1378 // Default.
1379 return false;
1382 bool SettingsWindowEnabled() {
1383 #if defined(OS_CHROMEOS)
1384 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
1385 ::switches::kDisableSettingsWindow);
1386 #else
1387 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1388 ::switches::kEnableSettingsWindow);
1389 #endif
1392 #if defined(OS_CHROMEOS)
1393 bool PowerOverlayEnabled() {
1394 return base::CommandLine::ForCurrentProcess()->HasSwitch(
1395 ::switches::kEnablePowerOverlay);
1397 #endif
1399 // -----------------------------------------------------------------------------
1400 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1402 // You were going to just dump your switches here, weren't you? Instead, please
1403 // put them in alphabetical order above, or in order inside the appropriate
1404 // ifdef at the bottom. The order should match the header.
1405 // -----------------------------------------------------------------------------
1407 } // namespace switches