chrome_switches.cc revision 731df977c0511bca2206b5f333555b1205ff1f43
1// Copyright (c) 2010 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. 4 5#include "chrome/common/chrome_switches.h" 6 7#include "base/base_switches.h" 8#include "base/command_line.h" 9 10namespace switches { 11 12// ----------------------------------------------------------------------------- 13// Can't find the switch you are looking for? try looking in 14// base/base_switches.cc instead. 15// ----------------------------------------------------------------------------- 16 17// Activate (make foreground) myself on launch. Helpful when Chrome 18// is launched on the command line (e.g. by Selenium). Only needed on Mac. 19const char kActivateOnLaunch[] = "activate-on-launch"; 20 21// By default, file:// URIs cannot read other file:// URIs. This is an 22// override for developers who need the old behavior for testing. 23const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; 24 25// Disable checking of the renegotiation extension and any future checks over 26// and above what a "traditional" SSL stack might do. This has been requested 27// in order to support some web development tools that intercept SSL 28// connections. 29const char kAllowSSLMITMProxies[] = "allow-ssl-mitm-proxies"; 30 31// Allows debugging of sandboxed processes (see zygote_main_linux.cc). 32const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; 33 34// Allows injecting extensions and user scripts on the extensions 35// gallery site. Normally prevented for security reasons, but can be 36// useful for automation testing of the gallery. 37const char kAllowScriptingGallery[] = "allow-scripting-gallery"; 38 39// Enable web inspector for all windows, even if they're part of the browser. 40// Allows us to use our dev tools to debug browser windows itself. 41const char kAlwaysEnableDevTools[] = "always-enable-dev-tools"; 42 43// Specifies that the associated value should be launched in "application" mode. 44const char kApp[] = "app"; 45 46// Specifies that the extension-app with the specified id should be launched 47// according to its configuration. 48const char kAppId[] = "app-id"; 49 50// The URL to use for the gallery link in the app launcher. 51const char kAppsGalleryURL[] = "apps-gallery-url"; 52 53// Disable throbber for extension apps. 54const char kAppsNoThrob[] = "apps-no-throb"; 55 56// Whitelist of servers that Negotiate will generate delegated Kerberos tickets 57// for. 58const char kAuthNegotiateDelegateWhitelist[] = 59 "auth-negotiate-delegate-whitelist"; 60 61// HTTP authentication schemes to enable. This is a comma separated list 62// of authentication schemes (basic, digest, ntlm, and negotiate). By default 63// all schemes are enabled. The primary use of this command line flag is to help 64// triage autentication-related issues reported by end-users. 65const char kAuthSchemes[] = "auth-schemes"; 66 67// Whitelist of servers which NTLM and Negotiate can automatically authenticate 68// with using the default credentials of the currently logged in user. 69const char kAuthServerWhitelist[] = "auth-server-whitelist"; 70 71// The value of this switch tells the app to listen for and broadcast 72// automation-related messages on IPC channel with the given ID. 73const char kAutomationClientChannelID[] = "automation-channel"; 74 75// Block non-sandboxed plugins. 76const char kBlockNonSandboxedPlugins[] = "block-nonsandboxed-plugins"; 77 78// Causes the browser process to throw an assertion on startup. 79const char kBrowserAssertTest[] = "assert-test"; 80 81// Causes the browser process to crash on startup. 82const char kBrowserCrashTest[] = "crash-test"; 83 84// Path to the exe to run for the renderer and plugin subprocesses. 85const char kBrowserSubprocessPath[] = "browser-subprocess-path"; 86 87// How often (in seconds) to check for updates. Should only be used for 88// testing purposes. 89const char kCheckForUpdateIntervalSec[] = "check-for-update-interval"; 90 91// Run Chrome in Chrome Frame mode. This means that Chrome expects to be run 92// as a dependent process of the Chrome Frame plugin. 93const char kChromeFrame[] = "chrome-frame"; 94 95// The unique id to be used for this cloud print proxy instance. 96const char kCloudPrintProxyId[] = "cloud-print-proxy-id"; 97 98// The URL of the cloud print service to use, overrides any value 99// stored in preferences, and the default. Only used if the cloud 100// print service has been enabled (see enable-cloud-print). 101const char kCloudPrintServiceURL[] = "cloud-print-service"; 102 103// The Country we should use. This is normally obtained from the operating 104// system during first run and cached in the preferences afterwards. This is a 105// string value, the 2 letter code from ISO 3166-1. 106const char kCountry[] = "country"; 107 108// Enables support to debug printing subsystem. 109const char kDebugPrint[] = "debug-print"; 110 111// Triggers a pletora of diagnostic modes. 112const char kDiagnostics[] = "diagnostics"; 113 114// Disables accelerated compositing. 115const char kDisableAcceleratedCompositing[] = 116 "disable-accelerated-compositing"; 117 118// Disables the alternate window station for the renderer. 119const char kDisableAltWinstation[] = "disable-winsta"; 120 121// Disable the ApplicationCache. 122const char kDisableApplicationCache[] = "disable-application-cache"; 123 124// Replaces the audio IPC layer for <audio> and <video> with a mock audio 125// device, useful when using remote desktop or machines without sound cards. 126// This is temporary until we fix the underlying problem. 127// 128// TODO(scherkus): remove --disable-audio when we have a proper fallback 129// mechanism. 130const char kDisableAudio[] = "disable-audio"; 131 132// Disable CNAME lookup of the host when generating the Kerberos SPN for a 133// Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN 134// for more background. 135const char kDisableAuthNegotiateCnameLookup[] = 136 "disable-auth-negotiate-cname-lookup"; 137 138// Disable several subsystems which run network requests in the background. 139// This is for use when doing network performance testing to avoid noise 140// in the measurements. 141const char kDisableBackgroundNetworking[] = "disable-background-networking"; 142 143// Disable limits on the number of backing stores. Can prevent blinking for 144// users with many windows/tabs and lots of memory. 145const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; 146 147// Disable support for cached byte-ranges. 148const char kDisableByteRangeSupport[] = "disable-byte-range-support"; 149 150// Disable click-to-play for blocked plug-ins. 151const char kDisableClickToPlay[] = "disable-click-to-play"; 152 153// Disables establishing a backup TCP connection if a specified timeout is 154// exceeded. 155const char kDisableConnectBackupJobs[] = "disable-connect-backup-jobs"; 156 157// Disable requests that webkit labels TargetIsPrefetch. As of 158// writing only <link rel=prefetch...> but also eventually 159// Link: headers. 160const char kDisableContentPrefetch[] = "disable-content-prefetch"; 161 162// Disables the custom JumpList on Windows 7. 163const char kDisableCustomJumpList[] = "disable-custom-jumplist"; 164 165// Disables HTML5 DB support. 166const char kDisableDatabases[] = "disable-databases"; 167 168// Disables desktop notifications (default enabled on windows). 169const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; 170 171// Browser flag to disable the web inspector for all renderers. 172const char kDisableDevTools[] = "disable-dev-tools"; 173 174// Disables device orientation events. 175const char kDisableDeviceOrientation[] = "disable-device-orientation"; 176 177// Disable experimental WebGL support. 178const char kDisableExperimentalWebGL[] = "disable-webgl"; 179 180// Disable extensions. 181const char kDisableExtensions[] = "disable-extensions"; 182 183// Disable checking for user opt-in for extensions that want to inject script 184// into file URLs (ie, always allow it). This is used during automated testing. 185const char kDisableExtensionsFileAccessCheck[] = 186 "disable-extensions-file-access-check"; 187 188// Disable FileSystem API. 189const char kDisableFileSystem[] = "disable-file-system"; 190 191// Suppresses support for the Geolocation javascript API. 192const char kDisableGeolocation[] = "disable-geolocation"; 193 194// Disable the GLSL translator. 195const char kDisableGLSLTranslator[] = "disable-glsl-translator"; 196 197// Suppresses hang monitor dialogs in renderer processes. This may allow slow 198// unload handlers on a page to prevent the tab from closing, but the Task 199// Manager can be used to terminate the offending process in this case. 200const char kDisableHangMonitor[] = "disable-hang-monitor"; 201 202// Disable the use of the HistoryQuickProvider for autocomplete results. 203const char kDisableHistoryQuickProvider[] = "disable-history-quick-provider"; 204 205// Disable the use of the HistoryURLProvider for autocomplete results. 206const char kDisableHistoryURLProvider[] = "disable-history-url-provider"; 207 208// Disable the Indexed Database API. 209const char kDisableIndexedDatabase[] = "disable-indexed-database"; 210 211// Disable the internal Flash Player. 212const char kDisableInternalFlash[] = "disable-internal-flash"; 213 214// Don't resolve hostnames to IPv6 addresses. This can be used when debugging 215// issues relating to IPv6, but shouldn't otherwise be needed. Be sure to 216// file bugs if something isn't working properly in the presence of IPv6. 217// This flag can be overidden by the "enable-ipv6" flag. 218const char kDisableIPv6[] = "disable-ipv6"; 219 220// Disable speculative TCP/IP preconnection. 221const char kDisablePreconnect[] = "disable-preconnect"; 222 223// Don't execute JavaScript (browser JS like the new tab page still runs). 224const char kDisableJavaScript[] = "disable-javascript"; 225 226// Prevent Java from running. 227const char kDisableJava[] = "disable-java"; 228 229// Disable LocalStorage. 230const char kDisableLocalStorage[] = "disable-local-storage"; 231 232// Force logging to be disabled. Logging is enabled by default in debug 233// builds. 234const char kDisableLogging[] = "disable-logging"; 235 236// Whether we should prevent the new tab page from showing the first run 237// notification. 238const char kDisableNewTabFirstRun[] = "disable-new-tab-first-run"; 239 240// Prevent outdated plugins from running. 241const char kDisableOutdatedPlugins[] = "disable-outdated-plugins"; 242 243// Prevent plugins from running. 244const char kDisablePlugins[] = "disable-plugins"; 245 246// Disable pop-up blocking. 247const char kDisablePopupBlocking[] = "disable-popup-blocking"; 248 249// Normally when the user attempts to navigate to a page that was the result of 250// a post we prompt to make sure they want to. This switch may be used to 251// disable that check. This switch is used during automated testing. 252const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; 253 254// Disable remote web font support. SVG font should always work whether 255// this option is specified or not. 256const char kDisableRemoteFonts[] = "disable-remote-fonts"; 257 258// Turns off the accessibility in the renderer. 259const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; 260 261// Prevents the URLs of BackgroundContents from being remembered and re-launched 262// when the browser restarts. 263const char kDisableRestoreBackgroundContents[] = 264 "disable-restore-background-contents"; 265 266// Disable session storage. 267const char kDisableSessionStorage[] = "disable-session-storage"; 268 269// Enable shared workers. Functionality not yet complete. 270const char kDisableSharedWorkers[] = "disable-shared-workers"; 271 272// Disable site-specific tailoring to compatibility issues in WebKit. 273const char kDisableSiteSpecificQuirks[] = "disable-site-specific-quirks"; 274 275// Disables speech input. 276const char kDisableSpeechInput[] = "disable-speech-input"; 277 278// Disable False Start in SSL and TLS connections. 279const char kDisableSSLFalseStart[] = "disable-ssl-false-start"; 280 281// Disable syncing browser data to a Google Account. 282const char kDisableSync[] = "disable-sync"; 283 284// Disable syncing of apps. 285const char kDisableSyncApps[] = "disable-sync-apps"; 286 287// Disable syncing of autofill. 288const char kDisableSyncAutofill[] = "disable-sync-autofill"; 289 290// Disable syncing of bookmarks. 291const char kDisableSyncBookmarks[] = "disable-sync-bookmarks"; 292 293// Disable syncing of extensions. 294const char kDisableSyncExtensions[] = "disable-sync-extensions"; 295 296// Disable syncing browser passwords. 297const char kDisableSyncPasswords[] = "disable-sync-passwords"; 298 299// Disable syncing of preferences. 300const char kDisableSyncPreferences[] = "disable-sync-preferences"; 301 302// Disable syncing of themes. 303const char kDisableSyncThemes[] = "disable-sync-themes"; 304 305// TabCloseableStateWatcher disallows closing of tabs and browsers under certain 306// situations on ChromeOS. Some tests expect tabs or browsers to close, so we 307// need a switch to disable the watcher. 308const char kDisableTabCloseableStateWatcher[] = 309 "disable-tab-closeable-state-watcher"; 310 311// Allow disabling of translate from the command line to assist with 312// automated browser testing (e.g. Selenium/WebDriver). Normal 313// browser users should disable translate with the preference. 314const char kDisableTranslate[] = "disable-translate"; 315 316// Enables the backend service for web resources, used in the new tab page for 317// loading tips and recommendations from a JSON feed. 318const char kDisableWebResources[] = "disable-web-resources"; 319 320// Don't enforce the same-origin policy. (Used by people testing their sites.) 321const char kDisableWebSecurity[] = "disable-web-security"; 322 323// Disable Web Sockets support. 324const char kDisableWebSockets[] = "disable-web-sockets"; 325 326// Use a specific disk cache location, rather than one derived from the 327// UserDatadir. 328const char kDiskCacheDir[] = "disk-cache-dir"; 329 330// Forces the maximum disk space to be used by the disk cache, in bytes. 331const char kDiskCacheSize[] = "disk-cache-size"; 332 333const char kDnsLogDetails[] = "dns-log-details"; 334 335// Disables prefetching of DNS information. 336const char kDnsPrefetchDisable[] = "dns-prefetch-disable"; 337 338// Use the specified DNS server for raw DNS resolution. 339const char kDnsServer[] = "dns-server"; 340 341// Specifies if the dom_automation_controller_ needs to be bound in the 342// renderer. This binding happens on per-frame basis and hence can potentially 343// be a performance bottleneck. One should only enable it when automating 344// dom based tests. 345const char kDomAutomationController[] = "dom-automation"; 346 347// Dump any accumualted histograms to the log when browser terminates (requires 348// logging to be enabled to really do anything). Used by developers and test 349// scripts. 350const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; 351 352// Enable displaying net log events on the command line. 353extern const char kLogNetLog[] = "log-net-log"; 354 355// Enable gpu-accelerated 2d canvas. 356const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; 357 358// Enables WebKit accessibility within the renderer process. 359const char kEnableAccessibility[] = "enable-accessibility"; 360 361// Enables AeroPeek for each tab. (This switch only works on Windows 7). 362const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; 363 364// Enables the application section of the new tab page. 365const char kEnableAppLauncher[] = "enable-app-launcher"; 366 367// Enable the inclusion of non-standard ports when generating the Kerberos SPN 368// in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN 369// for more background. 370const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port"; 371 372// Enable background mode (background apps will keep chrome running in the 373// background and allow chrome to launch on startup). 374const char kEnableBackgroundMode[] = "enable-background-mode"; 375 376// Enables the benchmarking extensions. 377const char kEnableBenchmarking[] = "enable-benchmarking"; 378 379// This flag enables UI for clearing server data. Temporarily in place 380// until there's a server endpoint deployed. 381const char kEnableClearServerData[] = "enable-clear-server-data"; 382 383// This applies only when the process type is "service". Enables the 384// Cloud Print Proxy component within the service process. 385const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; 386 387// Enables the Cloud Print dialog hosting code. 388const char kEnableCloudPrint[] = "enable-cloud-print"; 389 390// Enables establishing a backup TCP connection if a specified timeout is 391// exceeded. 392const char kEnableConnectBackupJobs[] = "enable-connect-backup-jobs"; 393 394// Enable requests that webkit labels TargetIsPrefetch. As of 395// writing only <link rel=prefetch...> but also eventually 396// Link: headers. 397const char kEnableContentPrefetch[] = "enable-content-prefetch"; 398 399// Whether default apps should be installed in this profile. This flag has no 400// effect on Chrome OS because default apps are always enabled there. 401const char kEnableDefaultApps[] = "enable-default-apps"; 402 403// Enables device motion events. 404const char kEnableDeviceMotion[] = "enable-device-motion"; 405 406const char kEnableDNSSECCerts[] = "enable-dnssec-certs"; 407 408// Enables extension APIs that are in development. 409const char kEnableExperimentalExtensionApis[] = 410 "enable-experimental-extension-apis"; 411 412// Enable experimental timeline API. 413const char kEnableExtensionTimelineApi[] = "enable-extension-timeline-api"; 414 415// Enable the fastback page cache. 416const char kEnableFastback[] = "enable-fastback"; 417 418// By default, cookies are not allowed on file://. They are needed for 419// testing, for example page cycler and layout tests. See bug 1157243. 420const char kEnableFileCookies[] = "enable-file-cookies"; 421 422// Enable IPv6 support, even if probes suggest that it may not be fully 423// supported. Some probes may require internet connections, and this flag will 424// allow support independent of application testing. 425// This flag overrides "disable-ipv6" which appears elswhere in this file. 426const char kEnableIPv6[] = "enable-ipv6"; 427 428// Enable the GPU plugin and Pepper 3D rendering. 429const char kEnableGPUPlugin[] = "enable-gpu-plugin"; 430 431// Enable experimental GPU rendering for backing store and video. 432const char kEnableGPURendering[] = "enable-gpu-rendering"; 433 434// Force logging to be enabled. Logging is disabled by default in release 435// builds. 436const char kEnableLogging[] = "enable-logging"; 437 438// Is match preview enabled? 439const char kEnableMatchPreview[] = "enable-match-preview"; 440 441// Allows reporting memory info (JS heap size) to page. 442const char kEnableMemoryInfo[] = "enable-memory-info"; 443 444// On Windows, converts the page to the currently-installed monitor profile. 445// This does NOT enable color management for images. The source is still 446// assumed to be sRGB. 447const char kEnableMonitorProfile[] = "enable-monitor-profile"; 448 449// Runs the Native Client inside the renderer process and enables GPU plugin 450// (internally adds kInternalNaCl and lEnableGpuPlugin to the command line). 451const char kEnableNaCl[] = "enable-nacl"; 452 453// Enables debugging via RSP over a socket. 454const char kEnableNaClDebug[] = "enable-nacl-debug"; 455 456// Enable Native Web Worker support. 457const char kEnableNativeWebWorkers[] = "enable-native-web-workers"; 458 459// This applies only when the process type is "service". Enables the 460// Chromoting Host Process within the service process. 461const char kEnableRemoting[] = "enable-remoting"; 462 463// Enable content settings based on host *and* plug-in. 464const char kEnableResourceContentSettings[] = 465 "enable-resource-content-settings"; 466 467// Enable speculative TCP/IP preconnection. 468const char kEnablePreconnect[] = "enable-preconnect"; 469 470// Enable caching of pre-parsed JS script data. See http://crbug.com/32407. 471const char kEnablePreparsedJsCaching[] = "enable-preparsed-js-caching"; 472 473// Enable print preview (work in progress). 474const char kEnablePrintPreview[] = "enable-print-preview"; 475 476// Enable the IsSearchProviderInstalled and InstallSearchProvider with an extra 477// parameter to indicate if the provider should be the default. 478const char kEnableSearchProviderApiV2[] = "enable-search-provider-api-v2"; 479 480// Enables the secure infobars. Non-default until the kinks are worked out. 481const char kEnableSecureInfoBars[] = "enable-secure-infobars"; 482 483// Enables 0-RTT HTTPS handshakes. 484const char kEnableSnapStart[] = "enable-snap-start"; 485 486// Enables StatsTable, logging statistics to a global named shared memory table. 487const char kEnableStatsTable[] = "enable-stats-table"; 488 489// Enable syncing browser data to a Google Account. 490const char kEnableSync[] = "enable-sync"; 491 492// Enable syncing browser autofill. 493const char kEnableSyncAutofill[] = "enable-sync-autofill"; 494 495// Enable syncing browser sessions. 496const char kEnableSyncSessions[] = "enable-sync-sessions"; 497 498// Enable syncing browser typed urls. 499const char kEnableSyncTypedUrls[] = "enable-sync-typed-urls"; 500 501// Enable tabbed options, ie: dom-ui version of options window. 502const char kEnableTabbedOptions[] = "enable-tabbed-options"; 503 504// Enables TopSites. 505const char kEnableTopSites[] = "enable-top-sites"; 506 507// Whether or not the touch events API is exposed. 508const char kEnableTouch[] = "enable-touch"; 509 510// Enables the option to show tabs as a vertical stack down the side of the 511// browser window. 512const char kEnableVerticalTabs[] = "enable-vertical-tabs"; 513 514// Enables support for fullscreen video. Current implementation is 515// incomplete and this flag is used for development and testing. 516const char kEnableVideoFullscreen[] = "enable-video-fullscreen"; 517 518// Enables video layering where video is rendered as a separate layer outside 519// of the backing store. 520const char kEnableVideoLayering[] = "enable-video-layering"; 521 522// Enables video logging where video elements log playback performance data to 523// the debug log. 524const char kEnableVideoLogging[] = "enable-video-logging"; 525 526// Spawn threads to watch for excessive delays in specified message loops. 527// User should set breakpoints on Alarm() to examine problematic thread. 528// Usage: -enable-watchdog=[ui][io] 529// Order of the listed sub-arguments does not matter. 530const char kEnableWatchdog[] = "enable-watchdog"; 531 532// Disable WebKit's XSSAuditor. The XSSAuditor mitigates reflective XSS. 533const char kEnableXSSAuditor[] = "enable-xss-auditor"; 534 535// Enables experimental features for the geolocation API. 536// Current features: 537// - CoreLocation support for Mac OS X 10.6 538// - Gateway location for Linux and Windows 539// - Location platform support for Windows 7 540const char kExperimentalLocationFeatures[] = "experimental-location-features"; 541 542// Enables experimental features for Spellchecker. Right now, the first 543// experimental feature is auto spell correct, which corrects words which are 544// misppelled by typing the word with two consecutive letters swapped. The 545// features that will be added next are: 546// 1 - Allow multiple spellcheckers to work simultaneously. 547// 2 - Allow automatic detection of spell check language. 548// TODO(sidchat): Implement the above fetaures to work under this flag. 549const char kExperimentalSpellcheckerFeatures[] = 550 "experimental-spellchecker-features"; 551 552// Explicitly allow additional ports using a comma separated list of port 553// numbers. 554const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports"; 555 556// Causes the process to run as an extension subprocess. 557const char kExtensionProcess[] = "extension"; 558 559// Frequency in seconds for Extensions auto-update. 560const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; 561 562// These two flags are added around the switches about:flags adds to the 563// command line. This is useful to see which switches were added by about:flags 564// on about:version. They don't have any effect. 565const char kFlagSwitchesBegin[] = "flag-switches-begin"; 566const char kFlagSwitchesEnd[] = "flag-switches-end"; 567 568// Alternative feedback server to use when submitting user feedback 569const char kFeedbackServer[] = "feedback-server"; 570 571// The file descriptor limit is set to the value of this switch, subject to the 572// OS hard limits. Useful for testing that file descriptor exhaustion is handled 573// gracefully. 574const char kFileDescriptorLimit[] = "file-descriptor-limit"; 575 576// Display the First Run experience when the browser is started, regardless of 577// whether or not it's actually the first run. 578const char kFirstRun[] = "first-run"; 579 580// Forces the apps/webstore promo to be shown, independent of whether it has 581// timed out, etc. Useful for testing. 582const char kForceAppsPromoVisible[] = "force-apps-promo-visible"; 583 584// Some field tests may rendomized in the browser, and the randomly selected 585// outcome needs to be propogated to the renderer. For instance, this is used 586// to modify histograms recorded in the renderer, or to get the renderer to 587// also set of its state (initialize, or not initialize components) to match the 588// experiment(s). 589// The argument is a string-ized list of experiment names, and the associated 590// value that was randomly selected. In the recent implementetaion, the 591// persistent representation generated by field_trial.cc and later decoded, is a 592// list of name and value pairs, separated by slashes. See field trial.cc for 593// current details. 594const char kForceFieldTestNameAndValue[] = "force-fieldtest"; 595 596// Force renderer accessibility to be on instead of enabling it on demand when 597// a screen reader is detected. The disable-renderer-accessibility switch 598// overrides this if present. 599const char kForceRendererAccessibility[] = "force-renderer-accessibility"; 600 601// Extra command line options for launching the GPU process (normally used 602// for debugging). Use like renderer-cmd-prefix. 603const char kGpuLauncher[] = "gpu-launcher"; 604 605// Makes this process a GPU sub-process. 606const char kGpuProcess[] = "gpu-process"; 607 608// Causes the GPU process to display a dialog on launch. 609const char kGpuStartupDialog[] = "gpu-startup-dialog"; 610 611// These flags show the man page on Linux. They are equivalent to each 612// other. 613const char kHelp[] = "help"; 614const char kHelpShort[] = "h"; 615 616// Make Windows happy by allowing it to show "Enable access to this program" 617// checkbox in Add/Remove Programs->Set Program Access and Defaults. This 618// only shows an error box because the only way to hide Chrome is by 619// uninstalling it. 620const char kHideIcons[] = "hide-icons"; 621 622// The value of this switch specifies which page will be displayed 623// in newly-opened tabs. We need this for testing purposes so 624// that the UI tests don't depend on what comes up for http://google.com. 625const char kHomePage[] = "homepage"; 626 627// Comma separated list of rules that control how hostnames are mapped. 628// 629// For example: 630// "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1 631// "MAP *.google.com proxy" --> Forces all google.com subdomains to be 632// resolved to "proxy". 633// "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback. 634// Will also force the port of the resulting 635// socket address to be 77. 636// "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz", 637// except for "www.google.com". 638// 639// These mappings apply to the endpoint host in a URLRequest (the TCP connect 640// and host resolver in a direct connection, and the CONNECT in an http proxy 641// connection, and the endpoint host in a SOCKS proxy connection). 642const char kHostRules[] = "host-rules"; 643 644// The maximum number of concurrent host resolve requests (i.e. DNS) to allow. 645const char kHostResolverParallelism[] = "host-resolver-parallelism"; 646 647// These mappings only apply to the host resolver. 648const char kHostResolverRules[] = "host-resolver-rules"; 649 650// Perform importing from another browser. The value associated with this 651// setting encodes the target browser and what items to import. 652const char kImport[] = "import"; 653 654// Perform bookmark importing from an HTML file. The value associated with this 655// setting encodes the file path. It may be used jointly with kImport. 656const char kImportFromFile[] = "import-from-file"; 657 658// Runs plugins inside the renderer process 659const char kInProcessPlugins[] = "in-process-plugins"; 660 661// Runs WebGL inside the renderer process. 662const char kInProcessWebGL[] = "in-process-webgl"; 663 664// Causes the browser to launch directly in incognito mode. 665const char kIncognito[] = "incognito"; 666 667// Runs the Native Client inside the renderer process. 668const char kInternalNaCl[] = "internal-nacl"; 669 670// Runs a trusted Pepper plugin inside the renderer process. 671const char kInternalPepper[] = "internal-pepper"; 672 673// Specifies the flags passed to JS engine 674const char kJavaScriptFlags[] = "js-flags"; 675 676// Used for testing - keeps browser alive after last browser window closes. 677const char kKeepAliveForTest[] = "keep-alive-for-test"; 678 679// Load an extension from the specified directory. 680const char kLoadExtension[] = "load-extension"; 681 682// Uninstall an extension with the specified extension id. 683const char kUninstallExtension[] = "uninstall-extension"; 684 685// Load an NPAPI plugin from the specified path. 686const char kLoadPlugin[] = "load-plugin"; 687 688// Load NPAPI plugins from the specified directory. 689const char kExtraPluginDir[] = "extra-plugin-dir"; 690 691// Make plugin processes log their sent and received messages to VLOG(1). 692const char kLogPluginMessages[] = "log-plugin-messages"; 693 694// Sets the minimum log level. Valid values are from 0 to 3: 695// INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. 696const char kLoggingLevel[] = "log-level"; 697 698// Make Chrome default browser 699const char kMakeDefaultBrowser[] = "make-default-browser"; 700 701// Forces the maximum disk space to be used by the media cache, in bytes. 702const char kMediaCacheSize[] = "media-cache-size"; 703 704// Enable dynamic loading of the Memory Profiler DLL, which will trace 705// all memory allocations during the run. 706const char kMemoryProfiling[] = "memory-profile"; 707 708// Enable histograming of tasks served by MessageLoop. See about:histograms/Loop 709// for results, which show frequency of messages on each thread, including APC 710// count, object signalling count, etc. 711const char kMessageLoopHistogrammer[] = "message-loop-histogrammer"; 712 713// Enables the recording of metrics reports but disables reporting. In 714// contrast to kDisableMetrics, this executes all the code that a normal client 715// would use for reporting, except the report is dropped rather than sent to 716// the server. This is useful for finding issues in the metrics code during UI 717// and performance tests. 718const char kMetricsRecordingOnly[] = "metrics-recording-only"; 719 720// Sets the default IP address (interface) for the stub (normally 127.0.0.1). 721const char kNaClDebugIP[] = "nacl-debug-ip"; 722 723// Sets the default port range for debugging. 724const char kNaClDebugPorts[] = "nacl-debug-ports"; 725 726// Causes the process to run as a NativeClient broker 727// (used for launching NaCl loader processes on 64-bit Windows). 728const char kNaClBrokerProcess[] = "nacl-broker"; 729 730// Causes the process to run as a NativeClient loader. 731const char kNaClLoaderProcess[] = "nacl-loader"; 732 733// Causes the Native Client process to display a dialog on launch. 734const char kNaClStartupDialog[] = "nacl-startup-dialog"; 735 736// Disables the default browser check. Useful for UI/browser tests where we 737// want to avoid having the default browser info-bar displayed. 738const char kNoDefaultBrowserCheck[] = "no-default-browser-check"; 739 740// Don't record/playback events when using record & playback. 741const char kNoEvents[] = "no-events"; 742 743// Bypass the First Run experience when the browser is started, regardless of 744// Disables all experiments set on about:flags. Does not disable about:flags 745// itself. Useful if an experiment makes chrome crash at startup: One can start 746// chrome with --no-experiments, disable the problematic lab at about:flags and 747// then restart chrome without this switch again. 748const char kNoExperiments[] = "no-experiments"; 749 750// whether or not it's actually the first run. Overrides kFirstRun in case 751// you're for some reason tempted to pass them both. 752const char kNoFirstRun[] = "no-first-run"; 753 754// Support a separate switch that enables the v8 playback extension. 755// The extension causes javascript calls to Date.now() and Math.random() 756// to return consistent values, such that subsequent loads of the same 757// page will result in consistent js-generated data and XHR requests. 758// Pages may still be able to generate inconsistent data from plugins. 759const char kNoJsRandomness[] = "no-js-randomness"; 760 761// Don't send hyperlink auditing pings 762const char kNoPings[] = "no-pings"; 763 764// Don't use a proxy server, always make direct connections. Overrides any 765// other proxy server flags that are passed. 766const char kNoProxyServer[] = "no-proxy-server"; 767 768// Don't send HTTP-Referer headers. 769const char kNoReferrers[] = "no-referrers"; 770 771// Runs the renderer outside the sandbox. 772const char kNoSandbox[] = "no-sandbox"; 773 774// Does not automatically open a browser window on startup (used when launching 775// Chrome for the purpose of hosting background apps). 776const char kNoStartupWindow[] = "no-startup-window"; 777 778// Show a desktop notification that the cloud print token has expired and 779// that user needs to re-authenticate. 780const char kNotifyCloudPrintTokenExpired[] = "notify-cp-token-expired"; 781 782// Specifies the maximum number of threads to use for running the Proxy 783// Autoconfig (PAC) script. 784const char kNumPacThreads[] = "num-pac-threads"; 785 786// Launch URL in new browser window. 787const char kOpenInNewWindow[] = "new-window"; 788 789// Simulate an organic Chrome install. 790const char kOrganicInstall[] = "organic"; 791 792// Package an extension to a .crx installable file from a given directory. 793const char kPackExtension[] = "pack-extension"; 794 795// Optional PEM private key is to use in signing packaged .crx. 796const char kPackExtensionKey[] = "pack-extension-key"; 797 798// Specifies the path to the user data folder for the parent profile. 799const char kParentProfile[] = "parent-profile"; 800 801// Read previously recorded data from the cache. Only cached data is read. 802// See kRecordMode. 803const char kPlaybackMode[] = "playback-mode"; 804 805// Specifies the plugin data directory, which is where plugins (Gears 806// specifically) will store its state. 807const char kPluginDataDir[] = "plugin-data-dir"; 808 809// Specifies a command that should be used to launch the plugin process. Useful 810// for running the plugin process through purify or quantify. Ex: 811// --plugin-launcher="path\to\purify /Run=yes" 812const char kPluginLauncher[] = "plugin-launcher"; 813 814// Tells the plugin process the path of the plugin to load 815const char kPluginPath[] = "plugin-path"; 816 817// Causes the process to run as a plugin subprocess. 818const char kPluginProcess[] = "plugin"; 819 820// Causes the plugin process to display a dialog on launch. 821const char kPluginStartupDialog[] = "plugin-startup-dialog"; 822 823// Establishes a channel to the GPU process asynchronously and (re)launches it 824// if necessary when a renderer process starts. 825const char kPrelaunchGpuProcess[] = "prelaunch-gpu-process"; 826 827// Prints the pages on the screen. 828const char kPrint[] = "print"; 829 830// Runs a single process for each site (i.e., group of pages from the same 831// registered domain) the user visits. We default to using a renderer process 832// for each site instance (i.e., group of pages from the same registered 833// domain with script connections to each other). 834const char kProcessPerSite[] = "process-per-site"; 835 836// Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own 837// renderer process. We default to using a renderer process for each 838// site instance (i.e., group of pages from the same registered domain with 839// script connections to each other). 840const char kProcessPerTab[] = "process-per-tab"; 841 842// The value of this switch determines whether the process is started as a 843// renderer or plugin host. If it's empty, it's the browser. 844const char kProcessType[] = "type"; 845 846// Output the product version information and quit. Used as an internal api to 847// detect the installed version of Chrome on Linux. 848const char kProductVersion[] = "product-version"; 849 850// Causes the process to run as a profile import subprocess. 851const char kProfileImportProcess[] = "profile-import"; 852 853// Force proxy auto-detection. 854const char kProxyAutoDetect[] = "proxy-auto-detect"; 855 856// Specify a list of hosts for whom we bypass proxy settings and use direct 857// connections. Ignored if --proxy-auto-detect or --no-proxy-server are 858// also specified. 859// This is a comma separated list of bypass rules. See: 860// "net/proxy/proxy_bypass_rules.h" for the format of these rules. 861const char kProxyBypassList[] = "proxy-bypass-list"; 862 863// Use the pac script at the given URL 864const char kProxyPacUrl[] = "proxy-pac-url"; 865 866// Use a specified proxy server, overrides system settings. This switch only 867// affects HTTP and HTTPS requests. 868const char kProxyServer[] = "proxy-server"; 869 870// Adds a "Purge memory" button to the Task Manager, which tries to dump as 871// much memory as possible. This is mostly useful for testing how well the 872// MemoryPurger functionality works. 873// 874// NOTE: This is only implemented for Views. 875const char kPurgeMemoryButton[] = "purge-memory-button"; 876 877// Chrome supports a playback and record mode. Record mode saves *everything* 878// to the cache. Playback mode reads data exclusively from the cache. This 879// allows us to record a session into the cache and then replay it at will. 880// See also kPlaybackMode. 881const char kRecordMode[] = "record-mode"; 882 883// Register pepper plugins that should be loaded into the renderer. 884const char kRegisterPepperPlugins[] = "register-pepper-plugins"; 885 886// Enable remote debug over HTTP on the specified port. 887const char kRemoteDebuggingPort[] = "remote-debugging-port"; 888 889// Enable remote debug / automation shell on the specified port. 890const char kRemoteShellPort[] = "remote-shell-port"; 891 892// Causes the renderer process to throw an assertion on launch. 893const char kRendererAssertTest[] = "renderer-assert-test"; 894 895#if !defined(OFFICIAL_BUILD) 896// Causes the renderer process to throw an assertion on launch. 897const char kRendererCheckFalseTest[] = "renderer-check-false-test"; 898#endif 899 900// On POSIX only: the contents of this flag are prepended to the renderer 901// command line. Useful values might be "valgrind" or "xterm -e gdb --args". 902const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; 903 904// Causes the renderer process to crash on launch. 905const char kRendererCrashTest[] = "renderer-crash-test"; 906 907// Causes the process to run as renderer instead of as browser. 908const char kRendererProcess[] = "renderer"; 909 910// Causes the renderer process to display a dialog on launch. 911const char kRendererStartupDialog[] = "renderer-startup-dialog"; 912 913// Indicates the last session should be restored on startup. This overrides 914// the preferences value and is primarily intended for testing. The value of 915// this switch is the number of tabs to wait until loaded before 916// 'load completed' is sent to the ui_test. 917const char kRestoreLastSession[] = "restore-last-session"; 918 919// Runs the plugin processes inside the sandbox. 920const char kSafePlugins[] = "safe-plugins"; 921 922// URL prefix used by safebrowsing to fetch hash, download data and 923// report malware. 924const char kSbInfoURLPrefix[] = "safebrowsing-info-url-prefix"; 925 926// URL prefix used by safebrowsing to get MAC key. 927const char kSbMacKeyURLPrefix[] = "safebrowsing-mackey-url-prefix"; 928 929// If present, safebrowsing only performs update when 930// SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. 931// This is used for testing only. 932const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; 933 934// Enable support for SDCH filtering (dictionary based expansion of content). 935// Optional argument is *the* only domain name that will have SDCH suppport. 936// Default is "-enable-sdch" to advertise SDCH on all domains. 937// Sample usage with argument: "-enable-sdch=.google.com" 938// SDCH is currently only supported server-side for searches on google.com. 939const char kSdchFilter[] = "enable-sdch"; 940 941// Enables the showing of an info-bar instructing user they can search directly 942// from the omnibox. 943const char kSearchInOmniboxHint[] = "search-in-omnibox-hint"; 944 945// Causes the process to run as a service process. 946const char kServiceProcess[] = "service"; 947 948// The LSID of the account to use for the service process. 949const char kServiceAccountLsid[] = "service-account-lsid"; 950 951// See kHideIcons. 952const char kShowIcons[] = "show-icons"; 953 954// If true the instant opt-in promo is shown in the omnibox. 955const char kShowInstantOptIn[] = "show-instant-opt-in"; 956 957// Renders a border around composited Render Layers to help debug and study 958// layer compositing. 959const char kShowCompositedLayerBorders[] = "show-composited-layer-borders"; 960 961// Visibly render a border around paint rects in the web page to help debug 962// and study painting behavior. 963const char kShowPaintRects[] = "show-paint-rects"; 964 965// Change the DCHECKS to dump memory and continue instead of displaying error 966// dialog. This is valid only in Release mode when --enable-dcheck is 967// specified. 968const char kSilentDumpOnDCHECK[] = "silent-dump-on-dcheck"; 969 970// Replaces the buffered data source for <audio> and <video> with a simplified 971// resource loader that downloads the entire resource into memory. 972// 973// TODO(scherkus): remove --simple-data-source when our media resource loading 974// is cleaned up and playback testing completed. 975const char kSimpleDataSource[] = "simple-data-source"; 976 977// Runs the renderer and plugins in the same process as the browser 978const char kSingleProcess[] = "single-process"; 979 980// Start the browser maximized, regardless of any previous settings. 981const char kStartMaximized[] = "start-maximized"; 982 983// Control Sync XMPP client settings. 984const char kSyncAllowPlain[] = "allow-plain"; 985 986// Control Sync XMPP client settings. 987const char kSyncDisableTls[] = "disable-tls"; 988 989// Email used for sync. 990const char kSyncEmail[] = "email"; 991 992// Use the SyncerThread implementation that matches up with the old pthread 993// impl semantics, but using Chrome synchronization primitives. The only 994// difference between this and the default is that we now have no timeout on 995// Stop(). Should only use if you experience problems with the default. 996const char kSyncerThreadTimedStop[] = "syncer-thread-timed-stop"; 997 998// Override the default notification method for sync. 999const char kSyncNotificationMethod[] = "sync-notification-method"; 1000 1001// Override the default host used for sync notifications. 1002const char kSyncNotificationHost[] = "sync-notification-host"; 1003 1004// Password used for sync. 1005const char kSyncPassword[] = "password"; 1006 1007// Port used for sync. 1008const char kSyncPort[] = "port"; 1009 1010// Server used for sync. 1011const char kSyncServer[] = "server"; 1012 1013// Override the default server used for profile sync. 1014const char kSyncServiceURL[] = "sync-url"; 1015 1016// Control Sync XMPP client settings. 1017const char kSyncUseSslTcp[] = "use-ssl-tcp"; 1018 1019// Control Sync XMPP client settings. 1020const char kSyncUseCacheInvalidation[] = "use-cache-invalidation"; 1021 1022// Pass the name of the current running automated test to Chrome. 1023const char kTestName[] = "test-name"; 1024 1025// Runs the security test for the renderer sandbox. 1026const char kTestSandbox[] = "test-sandbox"; 1027 1028// Runs the security test for the NaCl loader sandbox. 1029const char kTestNaClSandbox[] = "test-nacl-sandbox"; 1030 1031// Pass the type of the current test harness ("browser" or "ui") 1032const char kTestType[] = "test-type"; 1033 1034// The value of this switch tells the app to listen for and broadcast 1035// testing-related messages on IPC channel with the given ID. 1036const char kTestingChannelID[] = "testing-channel"; 1037 1038// Excludes these plugins from the plugin sandbox. 1039// This is a comma-separated list of plugin library names. 1040const char kTrustedPlugins[] = "trusted-plugins"; 1041 1042// Experimental. Shows a dialog asking the user to try chrome. This flag 1043// is to be used only by the upgrade process. 1044const char kTryChromeAgain[] = "try-chrome-again"; 1045 1046// Runs un-installation steps that were done by chrome first-run. 1047const char kUninstall[] = "uninstall"; 1048 1049// Use Spdy for the transport protocol instead of HTTP. 1050// This is a temporary testing flag. 1051const char kUseSpdy[] = "use-spdy"; 1052 1053// Ignore certificate related errors. 1054const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; 1055 1056// Set the maximum SPDY sessions per domain. 1057const char kMaxSpdySessionsPerDomain[] = "max-spdy-sessions-per-domain"; 1058 1059// Grant unlimited quota to store files to this process. 1060// Used for testing Pepper's FileRef/FileIO/FileSystem implementations. 1061// DO NOT USE FOR OTHER PURPOSES. 1062// TODO(dumi): remove the switch when we have a real quota implementation. 1063const char kUnlimitedQuotaForFiles[] = "unlimited-quota-for-files"; 1064 1065// Use the low fragmentation heap for the CRT. 1066const char kUseLowFragHeapCrt[] = "use-lf-heap"; 1067 1068// A string used to override the default user agent with a custom one. 1069const char kUserAgent[] = "user-agent"; 1070 1071// Specifies the user data directory, which is where the browser will look 1072// for all of its state. 1073const char kUserDataDir[] = "user-data-dir"; 1074 1075// directory to locate user scripts in as an over-ride of the default 1076const char kUserScriptsDir[] = "user-scripts-dir"; 1077 1078// On POSIX only: the contents of this flag are prepended to the utility 1079// process command line. Useful values might be "valgrind" or "xterm -e gdb 1080// --args". 1081const char kUtilityCmdPrefix[] = "utility-cmd-prefix"; 1082 1083// Causes the process to run as a utility subprocess. 1084const char kUtilityProcess[] = "utility"; 1085 1086// The utility process is sandboxed, with access to one directory. This flag 1087// specifies the directory that can be accessed. 1088const char kUtilityProcessAllowedDir[] = "utility-allowed-dir"; 1089 1090// Print version information and quit. 1091const char kVersion[] = "version"; 1092 1093// Will add kWaitForDebugger to every child processes. If a value is passed, it 1094// will be used as a filter to determine if the child process should have the 1095// kWaitForDebugger flag passed on or not. 1096const char kWaitForDebuggerChildren[] = "wait-for-debugger-children"; 1097 1098// Causes the worker process allocation to use as many processes as cores. 1099const char kWebWorkerProcessPerCore[] = "web-worker-process-per-core"; 1100 1101// Causes workers to run together in one process, depending on their domains. 1102// Note this is duplicated in webworkerclient_impl.cc 1103const char kWebWorkerShareProcesses[] = "web-worker-share-processes"; 1104 1105// Use WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is 1106// to use Chromium's network stack to fetch, and V8 to evaluate. 1107const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver"; 1108 1109// Causes the process to run as a worker subprocess. 1110const char kWorkerProcess[] = "worker"; 1111 1112// The prefix used when starting the zygote process. (i.e. 'gdb --args') 1113const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; 1114 1115// Causes the process to run as a renderer zygote. 1116const char kZygoteProcess[] = "zygote"; 1117 1118#if defined(OS_CHROMEOS) 1119// Enable the redirection of viewable document requests to the Google 1120// Document Viewer. 1121const char kEnableGView[] = "enable-gview"; 1122 1123// Should we show the image based login? 1124const char kEnableLoginImages[] = "enable-login-images"; 1125 1126// Enable Chrome-as-a-login-manager behavior. 1127const char kLoginManager[] = "login-manager"; 1128 1129// Allows to override the first login screen. The value should be the name 1130// of the first login screen to show (see 1131// chrome/browser/chromeos/login/login_wizard_view.cc for actual names). 1132// Ignored if kLoginManager is not specified. 1133// TODO(avayvod): Remove when the switch is no longer needed for testing. 1134const char kLoginScreen[] = "login-screen"; 1135 1136// Allows control over the initial login screen size. Pass width,height. 1137const char kLoginScreenSize[] = "login-screen-size"; 1138 1139// Attempts to load libcros and validate it, then exits. A nonzero return code 1140// means the library could not be loaded correctly. 1141const char kTestLoadLibcros[] = "test-load-libcros"; 1142 1143// Specifies the profile to use once a chromeos user is logged in. 1144const char kLoginProfile[] = "login-profile"; 1145 1146// Specifies the user which is already logged in. 1147const char kLoginUser[] = "login-user"; 1148// Specifies a password to be used to login (along with login-user). 1149const char kLoginPassword[] = "login-password"; 1150 1151// Attempts to perform Chrome OS offline and online login in parallel. 1152const char kParallelAuth[] = "parallel-auth"; 1153 1154// Use the frame layout used in chromeos. 1155const char kChromeosFrame[] = "chromeos-frame"; 1156 1157// Use the given language for UI in the input method candidate window. 1158const char kCandidateWindowLang[] = "lang"; 1159 1160// Indicates that the browser is in "browse without sign-in" (Guest session) 1161// mode. Should completely disable extensions, sync and bookmarks. 1162const char kGuestSession[] = "bwsi"; 1163 1164// Indicates that stub implementations of the libcros library should be used. 1165// This is typically used to test the chromeos build of chrome on the desktop. 1166const char kStubCros[] = "stub-cros"; 1167 1168// URL of the html page for Screen Saver. 1169const char kScreenSaverUrl[] = "screen-saver-url"; 1170 1171// Flag to trigger ChromeOS system log compression during feedback submit. 1172const char kCompressSystemFeedback[] = "compress-sys-feedback"; 1173 1174// Forces usage of libcros stub implementation. For testing purposes, this 1175// switch separates chrome code from the rest of ChromeOS. 1176const char kForceStubLibcros[] = "force-stub-libcros"; 1177 1178// Disables DOMUI menu and use gtk menu instead. 1179const char kDisableDOMUIMenu[] = "disable-domui-menu"; 1180 1181#ifndef NDEBUG 1182extern const char kDOMUIMenuUrl[] = "domui-menu-url"; 1183#endif 1184#endif 1185 1186#if defined(OS_LINUX) 1187// Specify the amount the trackpad should scroll by. 1188const char kScrollPixels[] = "scroll-pixels"; 1189#endif 1190 1191#if defined(OS_MACOSX) || defined(OS_WIN) 1192// Use the system SSL library (Secure Transport on Mac, SChannel on Windows) 1193// instead of NSS for SSL. 1194const char kUseSystemSSL[] = "use-system-ssl"; 1195#endif 1196 1197#if defined(OS_POSIX) 1198// A flag, generated internally by Chrome for renderer and other helper process 1199// command lines on Linux and Mac. It tells the helper process to enable crash 1200// dumping and reporting, because helpers cannot access the profile or other 1201// files needed to make this decision. 1202// If passed to the browser, it'll be passed on to all the helper processes 1203// as well, thereby force-enabling the crash reporter. 1204const char kEnableCrashReporter[] = "enable-crash-reporter"; 1205 1206// Bypass the error dialog when the profile lock couldn't be attained. 1207// This switch is used during automated testing. 1208const char kNoProcessSingletonDialog[] = "no-process-singleton-dialog"; 1209 1210#if !defined(OS_MACOSX) 1211// Specifies which password store to use (detect, default, gnome, kwallet). 1212const char kPasswordStore[] = "password-store"; 1213#endif 1214#endif 1215 1216#if defined(OS_MACOSX) 1217// Temporary flag to disable hole punching for accelerated surfaces. This is 1218// here to aid debugging eventual problems, it can be removed once hole punching 1219// has been out there for a few dev channel releases without problems. 1220const char kDisableHolePunching[] = "disable-hole-punching"; 1221 1222// Enables the tabs expose feature ( http://crbug.com/50307 ). 1223const char kEnableExposeForTabs[] = "enable-expose-for-tabs"; 1224 1225// Cause the OS X sandbox write to syslog every time an access to a resource 1226// is denied by the sandbox. 1227const char kEnableSandboxLogging[] = "enable-sandbox-logging"; 1228#else 1229// Enable Kiosk mode. 1230const char kKioskMode[] = "kiosk"; 1231#endif 1232 1233#ifndef NDEBUG 1234// Clear the token service before using it. This allows simulating 1235// the expiration of credentials during testing. 1236const char kClearTokenService[] = "clear-token-service"; 1237 1238// Debug only switch to specify which gears plugin dll to load. 1239const char kGearsPluginPathOverride[] = "gears-plugin-path"; 1240 1241// Sets a token in the token service, for testing. 1242const char kSetToken[] = "set-token"; 1243 1244// Debug only switch to specify which websocket live experiment host to be used. 1245// If host is specified, it also makes initial delay shorter (5 min to 5 sec) 1246// to make it faster to test websocket live experiment code. 1247const char kWebSocketLiveExperimentHost[] = "websocket-live-experiment-host"; 1248#endif 1249 1250// USE_SECCOMP_SANDBOX controls whether the seccomp sandbox is opt-in or -out. 1251// TODO(evan): unify all of these once we turn the seccomp sandbox always 1252// on. Also remove the #include of command_line.h above. 1253#if defined(USE_SECCOMP_SANDBOX) 1254// Disable the seccomp sandbox (Linux only) 1255const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; 1256#else 1257// Enable the seccomp sandbox (Linux only) 1258const char kEnableSeccompSandbox[] = "enable-seccomp-sandbox"; 1259#endif 1260 1261bool SeccompSandboxEnabled() { 1262#if defined(USE_SECCOMP_SANDBOX) 1263 return !CommandLine::ForCurrentProcess()->HasSwitch( 1264 switches::kDisableSeccompSandbox); 1265#else 1266 return CommandLine::ForCurrentProcess()->HasSwitch( 1267 switches::kEnableSeccompSandbox); 1268#endif 1269} 1270 1271// ----------------------------------------------------------------------------- 1272// DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1273// 1274// You were going to just dump your switches here, weren't you? Instead, 1275// please put them in alphabetical order above, or in order inside the 1276// appropriate ifdef at the bottom. The order should match the header. 1277// ----------------------------------------------------------------------------- 1278 1279} // namespace switches 1280