Add a command-line flag for panel stacking support.
[chromium-blink-merge.git] / chrome / common / chrome_switches.cc
blob12e3e0d18e0690a7205303bd7e0df43f6c3509d2
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 // base/base_switches.cc instead.
16 // When commenting your switch, please use the same voice as surrounding
17 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll
18 // all work out.
19 // -----------------------------------------------------------------------------
21 // Enables or disables the "action box" UI in the toolbar.
22 const char kActionBox[] = "action-box";
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 // Allows non-https URL for background_page for hosted apps.
33 const char kAllowHTTPBackgroundPage[] = "allow-http-background-page";
35 // Allows the browser to load extensions that lack a modern manifest when that
36 // would otherwise be forbidden.
37 const char kAllowLegacyExtensionManifests[] =
38 "allow-legacy-extension-manifests";
40 // Specifies comma-separated list of extension ids to grant access to TCP/UDP
41 // socket APIs.
42 const char kAllowNaClSocketAPI[] = "allow-nacl-socket-api";
44 // Don't block outdated plugins.
45 const char kAllowOutdatedPlugins[] = "allow-outdated-plugins";
47 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
48 // URLs. This provides an override to get the old insecure behavior.
49 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content";
51 // Allows injecting extensions and user scripts on the extensions gallery
52 // site. Normally prevented for security reasons, but can be useful for
53 // automation testing of the gallery.
54 const char kAllowScriptingGallery[] = "allow-scripting-gallery";
56 // Prevents Chrome from requiring authorization to run certain widely installed
57 // but less commonly used plug-ins.
58 const char kAlwaysAuthorizePlugins[] = "always-authorize-plugins";
60 // Specifies that the extension-app with the specified id should be launched
61 // according to its configuration.
62 const char kAppId[] = "app-id";
64 // Specifies that the associated value should be launched in "application"
65 // mode.
66 const char kApp[] = "app";
68 // Flag to enable apps_debugger app.
69 const char kAppsDebugger[] = "apps-debugger";
71 // Specifies the initial size for application windows launched with --app.
72 // --app-window-size=w,h
73 const char kAppWindowSize[] = "app-window-size";
75 // A URL for the server which assigns channel ids for server pushed app
76 // notifications.
77 const char kAppNotifyChannelServerURL[] = "app-notify-channel-server-url";
79 // Overrides the apps checkout URL, which is used to determine when to expose
80 // some private APIs.
81 const char kAppsCheckoutURL[] = "apps-checkout-url";
83 // The URL that the webstore APIs download extensions from.
84 // Note: the URL must contain one '%s' for the extension ID.
85 const char kAppsGalleryDownloadURL[] = "apps-gallery-download-url";
87 // A setting to cause extension/app installs from the webstore skip the normal
88 // confirmation dialog. A value of 'accept' means to always act as if the dialog
89 // was accepted, and 'cancel' means to always act as if the dialog was
90 // cancelled.
91 const char kAppsGalleryInstallAutoConfirmForTests[] =
92 "apps-gallery-install-auto-confirm-for-tests";
94 // Allows the webstorePrivate APIs to return browser (aka sync) login tokens to
95 // be used for auto-login in the Web Store (normally they do not).
96 const char kAppsGalleryReturnTokens[] = "apps-gallery-return-tokens";
98 // The URL to use for the gallery link in the app launcher.
99 const char kAppsGalleryURL[] = "apps-gallery-url";
101 // The update url used by gallery/webstore extensions.
102 const char kAppsGalleryUpdateURL[] = "apps-gallery-update-url";
104 // Whether to always use the new app install bubble when installing an app.
105 const char kAppsNewInstallBubble[] = "apps-new-install-bubble";
107 // Disable throbber for extension apps.
108 const char kAppsNoThrob[] = "apps-no-throb";
110 // Whitelist of servers that Negotiate will generate delegated Kerberos tickets
111 // for.
112 const char kAuthNegotiateDelegateWhitelist[] =
113 "auth-negotiate-delegate-whitelist";
115 // HTTP authentication schemes to enable. This is a comma-separated list of
116 // authentication schemes (basic, digest, ntlm, and negotiate). By default all
117 // schemes are enabled. The primary use of this command line flag is to help
118 // triage authentication-related issues reported by end-users.
119 const char kAuthSchemes[] = "auth-schemes";
121 // Whitelist of servers which NTLM and Negotiate can automatically authenticate
122 // with using the default credentials of the currently logged in user.
123 const char kAuthServerWhitelist[] = "auth-server-whitelist";
125 // A flag that is used to tell Chrome that it was launched automatically at
126 // computer startup and not by some user action.
127 const char kAutoLaunchAtStartup[] = "auto-launch-at-startup";
129 // Flag used to tell Chrome the base url of the Autofill service.
130 const char kAutofillServiceUrl[] = "autofill-service-url";
132 // The value of this switch tells the app to listen for and broadcast
133 // automation-related messages on IPC channel with the given ID.
134 const char kAutomationClientChannelID[] = "automation-channel";
136 // Causes the automation provider to reinitialize its IPC channel instead of
137 // shutting down when a client disconnects.
138 const char kAutomationReinitializeOnChannelError[] =
139 "automation-reinitialize-on-channel-error";
141 // How often (in seconds) to check for updates. Should only be used for testing
142 // purposes.
143 const char kCheckForUpdateIntervalSec[] = "check-for-update-interval";
145 // Checks the cloud print connector policy, informing the service process if
146 // the policy is set to disallow the connector, then quits.
147 const char kCheckCloudPrintConnectorPolicy[] =
148 "check-cloud-print-connector-policy";
150 // Tells Chrome to delay shutdown (for a specified number of seconds) when a
151 // Chrome Frame automation channel is closed.
152 const char kChromeFrameShutdownDelay[] = "chrome-frame-shutdown-delay";
154 // Tells chrome to load the specified version of chrome.dll on Windows. If this
155 // version cannot be loaded, Chrome will exit.
156 const char kChromeVersion[] = "chrome-version";
158 // Comma-separated list of SSL cipher suites to disable.
159 const char kCipherSuiteBlacklist[] = "cipher-suite-blacklist";
161 // Clears the token service before using it. This allows simulating the
162 // expiration of credentials during testing.
163 const char kClearTokenService[] = "clear-token-service";
165 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished
166 // displaying the print dialog.
167 const char kCloudPrintDeleteFile[] = "cloud-print-delete-file";
169 // Tells chrome to display the cloud print dialog and upload the specified file
170 // for printing.
171 const char kCloudPrintFile[] = "cloud-print-file";
173 // Specifies the mime type to be used when uploading data from the file
174 // referenced by cloud-print-file. Defaults to "application/pdf" if
175 // unspecified.
176 const char kCloudPrintFileType[] = "cloud-print-file-type";
178 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
179 // print job. Defaults to null if unspecified.
180 const char kCloudPrintPrintTicket[] = "cloud-print-print-ticket";
182 // Used with kCloudPrintFile to specify a title for the resulting print job.
183 const char kCloudPrintJobTitle[] = "cloud-print-job-title";
185 // The unique id to be used for this cloud print proxy instance.
186 const char kCloudPrintProxyId[] = "cloud-print-proxy-id";
188 // The URL of the cloud print service to use, overrides any value stored in
189 // preferences, and the default. Only used if the cloud print service has been
190 // enabled (see enable-cloud-print).
191 const char kCloudPrintServiceURL[] = "cloud-print-service";
193 // Comma-separated options to troubleshoot the component updater. Only valid
194 // for the browser process.
195 const char kComponentUpdaterDebug[] = "component-updater-debug";
197 // Causes the browser process to inspect loaded and registered DLLs for known
198 // conflicts and warn the user.
199 const char kConflictingModulesCheck[] = "conflicting-modules-check";
201 // Toggles a new version of the content settings dialog in options.
202 const char kContentSettings2[] = "new-content-settings";
204 // The Country we should use. This is normally obtained from the operating
205 // system during first run and cached in the preferences afterwards. This is a
206 // string value, the 2 letter code from ISO 3166-1.
207 const char kCountry[] = "country";
209 // Causes the browser process to crash if browser threads are not responding
210 // for the given number of seconds.
211 const char kCrashOnHangSeconds[] = "crash-on-hang-seconds";
213 // Comma-separated list of BrowserThreads that cause browser process to crash
214 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
215 // list of BrowserThreads that are supported.
217 // For example:
218 // --crash-on-hang-threads=UI:3,IO:3 --> Crash the browser if UI or IO thread
219 // is not responsive and the number of
220 // browser threads that are responding
221 // is less than or equal to 3.
222 const char kCrashOnHangThreads[] = "crash-on-hang-threads";
224 // Some platforms like ChromeOS default to empty desktop.
225 // Browser tests may need to add this switch so that at least one browser
226 // instance is created on startup.
227 // TODO(nkostylev): Investigate if this switch could be removed.
228 // (http://crbug.com/148675)
229 const char kCreateBrowserOnStartupForTests[] =
230 "create-browser-on-startup-for-tests";
232 // Enables a frame context menu item that toggles the frame in and out of glass
233 // mode (Windows Vista and up only).
234 const char kDebugEnableFrameToggle[] = "debug-enable-frame-toggle";
236 // Adds debugging entries such as Inspect Element to context menus of packed
237 // apps.
238 const char kDebugPackedApps[] = "debug-packed-apps";
240 // Enables support to debug printing subsystem.
241 const char kDebugPrint[] = "debug-print";
243 // Specifies the URL at which to fetch configuration policy from the device
244 // management backend. Specifying this switch turns on managed policy from the
245 // device management backend.
246 const char kDeviceManagementUrl[] = "device-management-url";
248 // Triggers a plethora of diagnostic modes.
249 const char kDiagnostics[] = "diagnostics";
251 // Replaces the audio IPC layer for <audio> and <video> with a mock audio
252 // device, useful when using remote desktop or machines without sound cards.
253 // This is temporary until we fix the underlying problem.
255 // Disables the experimental asynchronous DNS client.
256 const char kDisableAsyncDns[] = "disable-async-dns";
258 // Disables CNAME lookup of the host when generating the Kerberos SPN for a
259 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
260 // background.
261 const char kDisableAuthNegotiateCnameLookup[] =
262 "disable-auth-negotiate-cname-lookup";
264 // Disables background mode (background apps will not keep chrome running in
265 // the background).
266 const char kDisableBackgroundMode[] = "disable-background-mode";
268 // Disable several subsystems which run network requests in the background.
269 // This is for use when doing network performance testing to avoid noise in the
270 // measurements.
271 const char kDisableBackgroundNetworking[] = "disable-background-networking";
273 // Disables the bundled PPAPI version of Flash (if it's enabled by default).
274 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash";
276 // Disables the bookmark autocomplete provider (BookmarkProvider).
277 const char kDisableBookmarkAutocompleteProvider[] =
278 "disable-bookmark-autocomplete-provider";
280 // Disables the client-side phishing detection feature. Note that even if
281 // client-side phishing detection is enabled, it will only be active if the
282 // user has opted in to UMA stats and SafeBrowsing is enabled in the
283 // preferences.
284 const char kDisableClientSidePhishingDetection[] =
285 "disable-client-side-phishing-detection";
287 // Disables the new cloud policy stack.
288 const char kDisableCloudPolicyService[] = "disable-cloud-policy-service";
290 const char kDisableComponentUpdate[] = "disable-component-update";
292 // Disables establishing certificate revocation information by downloading a
293 // set of CRLs rather than performing on-line checks.
294 const char kDisableCRLSets[] = "disable-crl-sets";
296 // Disables the custom JumpList on Windows 7.
297 const char kDisableCustomJumpList[] = "disable-custom-jumplist";
299 // Disables installation of default apps on first run. This is used during
300 // automated testing.
301 const char kDisableDefaultApps[] = "disable-default-apps";
303 // Disables retrieval of PAC URLs from DHCP as per the WPAD standard.
304 const char kDisableDhcpWpad[] = "disable-dhcp-wpad";
306 // Disable extensions.
307 const char kDisableExtensions[] = "disable-extensions";
309 // Disable checking for user opt-in for extensions that want to inject script
310 // into file URLs (ie, always allow it). This is used during automated testing.
311 const char kDisableExtensionsFileAccessCheck[] =
312 "disable-extensions-file-access-check";
314 // Disable the net::URLRequestThrottlerManager functionality for
315 // requests originating from extensions.
316 const char kDisableExtensionsHttpThrottling[] =
317 "disable-extensions-http-throttling";
319 // Disable mandatory enforcement of web_accessible_resources in extensions.
320 const char kDisableExtensionsResourceWhitelist[] =
321 "disable-extensions-resource-whitelist";
323 // Disables improved SafeBrowsing download protection.
324 const char kDisableImprovedDownloadProtection[] =
325 "disable-improved-download-protection";
327 // Disable the internal Flash Player.
328 const char kDisableInternalFlash[] = "disable-internal-flash";
330 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
331 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
332 // bugs if something isn't working properly in the presence of IPv6. This flag
333 // can be overidden by the "enable-ipv6" flag.
334 const char kDisableIPv6[] = "disable-ipv6";
336 // Disables IP Pooling within the networks stack (SPDY only). When a connection
337 // is needed for a domain which shares an IP with an existing connection,
338 // attempt to use the existing connection.
339 const char kDisableIPPooling[] = "disable-ip-pooling";
341 // Disables the menu on the NTP for accessing sessions from other devices.
342 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu";
344 // Disable pop-up blocking.
345 const char kDisablePopupBlocking[] = "disable-popup-blocking";
347 // Disable speculative TCP/IP preconnection.
348 const char kDisablePreconnect[] = "disable-preconnect";
350 // Normally when the user attempts to navigate to a page that was the result of
351 // a post we prompt to make sure they want to. This switch may be used to
352 // disable that check. This switch is used during automated testing.
353 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost";
355 // Prevents the URLs of BackgroundContents from being remembered and
356 // re-launched when the browser restarts.
357 const char kDisableRestoreBackgroundContents[] =
358 "disable-restore-background-contents";
360 // Disables restoring session state (cookies, session storage, etc.) when
361 // restoring the browsing session.
362 const char kDisableRestoreSessionState[] = "disable-restore-session-state";
364 // Disables throttling prints initiated by scripts.
365 const char kDisableScriptedPrintThrottling[] =
366 "disable-scripted-print-throttling";
368 // Disables syncing browser data to a Google Account.
369 const char kDisableSync[] = "disable-sync";
371 // Disables syncing of app settings.
372 const char kDisableSyncAppSettings[] = "disable-sync-app-settings";
374 // Disables syncing of apps.
375 const char kDisableSyncApps[] = "disable-sync-apps";
377 // Disable syncing app notifications.
378 const char kDisableSyncAppNotifications[] = "disable-sync-app-notifications";
380 // Disables syncing of autofill.
381 const char kDisableSyncAutofill[] = "disable-sync-autofill";
383 // Disables syncing of autofill Profile.
384 const char kDisableSyncAutofillProfile[] = "disable-sync-autofill-profile";
386 // Disables syncing of bookmarks.
387 const char kDisableSyncBookmarks[] = "disable-sync-bookmarks";
389 // Disables syncing extension settings.
390 const char kDisableSyncExtensionSettings[] = "disable-sync-extension-settings";
392 // Disables syncing of extensions.
393 const char kDisableSyncExtensions[] = "disable-sync-extensions";
395 // Disables syncing of history delete directives.
396 const char kDisableSyncHistoryDeleteDirectives[] =
397 "disable-sync-history-delete-directives";
399 // Disables syncing browser passwords.
400 const char kDisableSyncPasswords[] = "disable-sync-passwords";
402 // Disables syncing of preferences.
403 const char kDisableSyncPreferences[] = "disable-sync-preferences";
405 // Disable syncing custom search engines.
406 const char kDisableSyncSearchEngines[] = "disable-sync-search-engines";
408 // Disables syncing browser sessions. Will override kEnableSyncTabs.
409 const char kDisableSyncTabs[] = "disable-sync-tabs";
411 // Disables syncing of themes.
412 const char kDisableSyncThemes[] = "disable-sync-themes";
414 // Disables syncing browser typed urls.
415 const char kDisableSyncTypedUrls[] = "disable-sync-typed-urls";
417 // Allows disabling of translate from the command line to assist with automated
418 // browser testing (e.g. Selenium/WebDriver). Normal browser users should
419 // disable translate with the preference.
420 const char kDisableTranslate[] = "disable-translate";
422 // Disables TLS Channel ID extension.
423 const char kDisableTLSChannelID[] = "disable-tls-channel-id";
425 // Disables the backend service for web resources.
426 const char kDisableWebResources[] = "disable-web-resources";
428 // Disables the website settings UI.
429 const char kDisableWebsiteSettings[] = "disable-website-settings";
431 // Some tests seem to require the application to close when the last
432 // browser window is closed. Thus, we need a switch to force this behavior
433 // for ChromeOS Aura, disable "zero window mode".
434 // TODO(pkotwicz): Investigate if this bug can be removed.
435 // (http://crbug.com/119175)
436 extern const char kDisableZeroBrowsersOpenForTests[] =
437 "disable-zero-browsers-open-for-tests";
439 // Use a specific disk cache location, rather than one derived from the
440 // UserDatadir.
441 const char kDiskCacheDir[] = "disk-cache-dir";
443 // Forces the maximum disk space to be used by the disk cache, in bytes.
444 const char kDiskCacheSize[] = "disk-cache-size";
446 const char kDnsLogDetails[] = "dns-log-details";
448 // Disables prefetching of DNS information.
449 const char kDnsPrefetchDisable[] = "dns-prefetch-disable";
451 // Dump any accumualted histograms to the log when browser terminates (requires
452 // logging to be enabled to really do anything). Used by developers and test
453 // scripts.
454 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit";
456 // Enables the opt-in UI for the app list.
457 const char kEnableAppListOptIn[] = "enable-app-list-opt-in";
459 // Enables the experimental asynchronous DNS client.
460 const char kEnableAsyncDns[] = "enable-async-dns";
462 // Enables the inclusion of non-standard ports when generating the Kerberos SPN
463 // in response to a Negotiate challenge. See
464 // HttpAuthHandlerNegotiate::CreateSPN for more background.
465 const char kEnableAuthNegotiatePort[] = "enable-auth-negotiate-port";
467 // Enables the pre- and auto-login features. When a user signs in to sync, the
468 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a
469 // GAIA login page, an info bar can help the user login.
470 const char kEnableAutologin[] = "enable-autologin";
472 // Enables the benchmarking extensions.
473 const char kEnableBenchmarking[] = "enable-benchmarking";
475 // Enables the bundled PPAPI version of Flash.
476 const char kEnableBundledPpapiFlash[] = "enable-bundled-ppapi-flash";
478 // This applies only when the process type is "service". Enables the Cloud
479 // Print Proxy component within the service process.
480 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
482 // Enables fetching the user's contacts from Google and showing them in the
483 // Chrome OS apps list.
484 const char kEnableContacts[] = "enable-contacts";
486 // Enables web developers to create apps for Chrome without using crx packages.
487 const char kEnableCrxlessWebApps[] = "enable-crxless-web-apps";
489 // Enables desktop guest mode.
490 const char kEnableDesktopGuestMode[] = "enable-desktop-guest-mode";
492 // If true devtools experimental settings are enabled.
493 const char kEnableDevToolsExperiments[] = "enable-devtools-experiments";
495 // Enables an interactive autocomplete UI and a way to invoke this UI from
496 // WebKit by enabling HTMLFormElement#requestAutocomplete (and associated
497 // autocomplete* events and logic).
498 const char kEnableInteractiveAutocomplete[] = "enable-interactive-autocomplete";
500 // Enables extensions to be easily installed from sites other than the web
501 // store. Without this flag, they can still be installed, but must be manually
502 // dragged onto chrome://extensions/.
503 const char kEasyOffStoreExtensionInstall[] = "easy-off-store-extension-install";
505 // Enables extension APIs that are in development.
506 const char kEnableExperimentalExtensionApis[] =
507 "enable-experimental-extension-apis";
509 // Enable autofill for new elements like checkboxes. crbug.com/157636
510 const char kEnableExperimentalFormFilling[] =
511 "enable-experimental-form-filling";
513 // Enables logging for extension activity.
514 const char kEnableExtensionActivityLogging[] =
515 "enable-extension-activity-logging";
517 // Enables the extension activity UI.
518 const char kEnableExtensionActivityUI[] = "enable-extension-activity-ui";
520 // Enables or disables showing extensions in the action box.
521 const char kExtensionsInActionBox[] = "extensions-in-action-box";
523 // By default, cookies are not allowed on file://. They are needed for testing,
524 // for example page cycler and layout tests. See bug 1157243.
525 const char kEnableFileCookies[] = "enable-file-cookies";
527 // Enables Google Now integration.
528 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration";
530 // Enable HTTP pipelining. Attempt to pipeline HTTP connections. Heuristics will
531 // try to figure out if pipelining can be used for a given host and request.
532 // Without this flag, pipelining will never be used.
533 const char kEnableHttpPipelining[] = "enable-http-pipelining";
535 // Enable Instant extended API.
536 const char kEnableInstantExtendedAPI[] = "enable-instant-extended-api";
538 // Enables IPv6 support, even if probes suggest that it may not be fully
539 // supported. Some probes may require internet connections, and this flag will
540 // allow support independent of application testing. This flag overrides
541 // "disable-ipv6" which appears elswhere in this file.
542 const char kEnableIPv6[] = "enable-ipv6";
544 /// Enables the IPC fuzzer for reliability testing
545 const char kEnableIPCFuzzing[] = "enable-ipc-fuzzing";
547 // Enables IP Pooling within the networks stack (SPDY only). When a connection
548 // is needed for a domain which shares an IP with an existing connection,
549 // attempt to use the existing connection.
550 const char kEnableIPPooling[] = "enable-ip-pooling";
552 // Enables support for user profiles that are managed by another user and can
553 // have restrictions applied.
554 extern const char kEnableManagedUsers[] = "enable-managed-users";
556 // Allows reporting memory info (JS heap size) to page.
557 const char kEnableMemoryInfo[] = "enable-memory-info";
559 // Enables metrics recording and reporting in the browser startup sequence, as
560 // if this was an official Chrome build where the user allowed metrics
561 // reporting. This is used for testing only.
562 const char kEnableMetricsReportingForTesting[] =
563 "enable-metrics-reporting-for-testing";
565 // Runs the Native Client inside the renderer process and enables GPU plugin
566 // (internally adds lEnableGpuPlugin to the command line).
567 const char kEnableNaCl[] = "enable-nacl";
569 // Enables debugging via RSP over a socket.
570 const char kEnableNaClDebug[] = "enable-nacl-debug";
572 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
573 // debug stub.
574 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
575 // the same syntax as patterns in Chrome extension manifest. The only difference
576 // is that * scheme matches all schemes instead of matching only http and https.
577 // If the value doesn't start with !, a program will be debugged if manifest URL
578 // matches any pattern. If the value starts with !, a program will be debugged
579 // if manifest URL does not match any pattern.
580 const char kNaClDebugMask[] = "nacl-debug-mask";
582 // Enables the SRPC Proxy for NaCl. The default is the Chrome IPC based proxy.
583 // TODO(bbudge) remove this after we switch to IPC and remove SRPC.
584 const char kEnableNaClSRPCProxy[] = "enable-nacl-srpc-proxy";
586 // Enables hardware exception handling via debugger process.
587 const char kEnableNaClExceptionHandling[] = "enable-nacl-exception-handling";
589 // Enables the native messaging extensions API.
590 const char kEnableNativeMessaging[] = "enable-native-messaging";
592 // Enables the new Autofill UI, which is part of the browser process rather than
593 // part of the renderer process. http://crbug.com/51644
594 const char kEnableNewAutofillUi[] = "enable-new-autofill-ui";
596 // Enables new Autofill heuristics, such as adding support for new field types.
597 const char kEnableNewAutofillHeuristics[] = "enable-new-autofill-heuristics";
599 // Enables NPN and SPDY. In case server supports SPDY, browser will use SPDY.
600 const char kEnableNpn[] = "enable-npn";
602 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
603 // HTTP is still used for all requests.
604 const char kEnableNpnHttpOnly[] = "enable-npn-http";
606 // Enables panels (always on-top docked pop-up windows).
607 const char kEnablePanels[] = "enable-panels";
609 // Enables panel stacking support.
610 const char kEnablePanelStacking[] = "enable-panel-stacking";
612 // Enables password generation when we detect that the user is going through
613 // account creation.
614 const char kEnablePasswordGeneration[] = "enable-password-generation";
616 // Enables content settings based on host *and* plug-in in the user
617 // preferences.
618 const char kEnableResourceContentSettings[] =
619 "enable-resource-content-settings";
621 // Enables rich templated notifications and NotificationCenter.
622 const char kEnableRichNotifications[] = "enable-rich-notifications";
624 // Enables the installation and usage of Portable Native Client.
625 const char kEnablePnacl[] = "enable-pnacl";
627 // Enables tracking of tasks in profiler for viewing via about:profiler.
628 // To predominantly disable tracking (profiling), use the command line switch:
629 // --enable-profiling=0
630 // Some tracking will still take place at startup, but it will be turned off
631 // during chrome_browser_main.
632 const char kEnableProfiling[] = "enable-profiling";
635 // Controls the support for SDCH filtering (dictionary based expansion of
636 // content). By default SDCH filtering is enabled. To disable SDCH filtering,
637 // use "--enable-sdch=0" as command line argument. SDCH is currently only
638 // supported server-side for searches on google.com.
639 const char kEnableSdch[] = "enable-sdch";
641 // Enable SPDY/3. This is a temporary testing flag.
642 const char kEnableSpdy3[] = "enable-spdy3";
644 // Enable SPDY CREDENTIAL frame support. This is a temporary testing flag.
645 const char kEnableSpdyCredentialFrames[] = "enable-spdy-credential-frames";
647 // Enables auto correction for misspelled words.
648 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct";
650 // Enables the stacked tabstrip.
651 const char kEnableStackedTabStrip[] = "enable-stacked-tab-strip";
653 // Enables experimental suggestions pane in New Tab page.
654 const char kEnableSuggestionsTabPage[] = "enable-suggestions-ntp";
656 // Enables context menu for selecting groups of tabs.
657 const char kEnableTabGroupsContextMenu[] = "enable-tab-groups-context-menu";
659 // Spawns threads to watch for excessive delays in specified message loops.
660 // User should set breakpoints on Alarm() to examine problematic thread.
662 // Usage: -enable-watchdog=[ui][io]
664 // Order of the listed sub-arguments does not matter.
665 const char kEnableWatchdog[] = "enable-watchdog";
667 // Uses WebSocket over SPDY.
668 const char kEnableWebSocketOverSpdy[] = "enable-websocket-over-spdy";
670 // Explicitly allows additional ports using a comma-separated list of port
671 // numbers.
672 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports";
674 // The time in seconds that an extension event page can be idle before it
675 // is shut down.
676 const char kEventPageIdleTime[] = "event-page-idle-time";
678 // The time in seconds that an extension event page has between being notified
679 // of its impending unload and that unload happening.
680 const char kEventPageUnloadingTime[] = "event-page-unloading-time";
682 // Marks a renderer as extension process.
683 const char kExtensionProcess[] = "extension-process";
685 // Frequency in seconds for Extensions auto-update.
686 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency";
688 // These two flags are added around the switches about:flags adds to the
689 // command line. This is useful to see which switches were added by about:flags
690 // on about:version. They don't have any effect.
691 const char kFlagSwitchesBegin[] = "flag-switches-begin";
692 const char kFlagSwitchesEnd[] = "flag-switches-end";
694 // Alternative feedback server to use when submitting user feedback
695 const char kFeedbackServer[] = "feedback-server";
697 // The file descriptor limit is set to the value of this switch, subject to the
698 // OS hard limits. Useful for testing that file descriptor exhaustion is
699 // handled gracefully.
700 const char kFileDescriptorLimit[] = "file-descriptor-limit";
702 // Displays the First Run experience when the browser is started, regardless of
703 // whether or not it's actually the first run.
704 const char kFirstRun[] = "first-run";
706 // Enables using GAIA information to populate profile name and icon.
707 const char kGaiaProfileInfo[] = "gaia-profile-info";
709 // Specifies an alternate URL to use for retrieving the search domain for
710 // Google. Useful for testing.
711 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url";
713 // Specifies a custom name for the GSSAPI library to load.
714 const char kGSSAPILibraryName[] = "gssapi-library-name";
716 // These flags show the man page on Linux. They are equivalent to each
717 // other.
718 const char kHelp[] = "help";
719 const char kHelpShort[] = "h";
721 // Makes Windows happy by allowing it to show "Enable access to this program"
722 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
723 // shows an error box because the only way to hide Chrome is by uninstalling
724 // it.
725 const char kHideIcons[] = "hide-icons";
727 // Enables full history sync (not just typed URLs) for signed-in users.
728 const char kHistoryEnableFullHistorySync[] = "enable-full-history-sync";
730 // Disables full history sync.
731 const char kHistoryDisableFullHistorySync[] = "disable-full-history-sync";
733 // Specifies which page will be displayed in newly-opened tabs. We need this
734 // for testing purposes so that the UI tests don't depend on what comes up for
735 // http://google.com.
736 const char kHomePage[] = "homepage";
738 // Comma-separated list of rules that control how hostnames are mapped.
740 // For example:
741 // "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
742 // "MAP *.google.com proxy" --> Forces all google.com subdomains to be
743 // resolved to "proxy".
744 // "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
745 // Will also force the port of the resulting
746 // socket address to be 77.
747 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
748 // except for "www.google.com".
750 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
751 // connect and host resolver in a direct connection, and the CONNECT in an http
752 // proxy connection, and the endpoint host in a SOCKS proxy connection).
753 const char kHostRules[] = "host-rules";
755 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow
756 // (not counting backup attempts which would also consume threads).
757 // --host-resolver-retry-attempts must be set to zero for this to be exact.
758 const char kHostResolverParallelism[] = "host-resolver-parallelism";
760 // The maximum number of retry attempts to resolve the host. Set this to zero
761 // to disable host resolver retry attempts.
762 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts";
764 // Takes the JSON-formatted HSTS specification and loads it as if it were a
765 // preloaded HSTS entry. Takes precedence over both website-specified rules and
766 // built-in rules. The JSON format is the same as that persisted in
767 // <profile_dir>/Default/TransportSecurity
768 const char kHstsHosts[] = "hsts-hosts";
770 // Performs importing from another browser. The value associated with this
771 // setting encodes the target browser and what items to import.
772 const char kImport[] = "import";
774 // Performs bookmark importing from an HTML file. The value associated with
775 // this setting encodes the file path. It may be used jointly with kImport.
776 const char kImportFromFile[] = "import-from-file";
778 // Causes the browser to launch directly in incognito mode.
779 const char kIncognito[] = "incognito";
781 // Causes Chrome to attempt to get metadata from the webstore for the
782 // app/extension ID given, and then prompt the user to download and install it.
783 const char kInstallFromWebstore[] = "install-from-webstore";
785 // URL to use for instant. If specified this overrides the url from the
786 // TemplateURL.
787 const char kInstantURL[] = "instant-url";
789 // Used for testing - keeps browser alive after last browser window closes.
790 const char kKeepAliveForTest[] = "keep-alive-for-test";
792 // Enable Kiosk mode.
793 const char kKioskMode[] = "kiosk";
795 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
796 // See http://crbug.com/31395.
797 const char kKioskModePrinting[] = "kiosk-printing";
799 // Comma-separated list of directories with component extensions to load.
800 const char kLoadComponentExtension[] = "load-component-extension";
802 // If present, cloud policy will be loaded and applied once the user is signed
803 // in to the browser.
804 const char kLoadCloudPolicyOnSignin[] = "load-cloud-policy-on-signin";
806 // Loads an extension from the specified directory.
807 const char kLoadExtension[] = "load-extension";
809 // Loads the opencryptoki library into NSS at startup. This is only needed
810 // temporarily for developers who need to work on WiFi/VPN certificate code.
812 // TODO(gspencer): Remove this switch once cryptohomed work is finished:
813 // http://crosbug.com/12295 and http://crosbug.com/12304
814 const char kLoadOpencryptoki[] = "load-opencryptoki";
816 // Enables displaying net log events on the command line, or writing the events
817 // to a separate file if a file name is given.
818 const char kLogNetLog[] = "log-net-log";
820 // Uninstalls an extension with the specified extension id.
821 const char kUninstallExtension[] = "uninstall-extension";
823 // Starts the browser in managed mode.
824 const char kManaged[] = "managed";
826 // Makes Chrome default browser
827 const char kMakeDefaultBrowser[] = "make-default-browser";
829 // Forces the maximum disk space to be used by the media cache, in bytes.
830 const char kMediaCacheSize[] = "media-cache-size";
832 // Enables dynamic loading of the Memory Profiler DLL, which will trace all
833 // memory allocations during the run.
834 const char kMemoryProfiling[] = "memory-profile";
836 // Enables histograming of tasks served by MessageLoop. See
837 // about:histograms/Loop for results, which show frequency of messages on each
838 // thread, including APC count, object signalling count, etc.
839 const char kMessageLoopHistogrammer[] = "message-loop-histogrammer";
841 // Enables the recording of metrics reports but disables reporting. In contrast
842 // to kDisableMetrics, this executes all the code that a normal client would
843 // use for reporting, except the report is dropped rather than sent to the
844 // server. This is useful for finding issues in the metrics code during UI and
845 // performance tests.
846 const char kMetricsRecordingOnly[] = "metrics-recording-only";
848 // Enables multiprofile Chrome.
849 const char kMultiProfiles[] = "multi-profiles";
851 // Native Client GDB debugger for loader. It needs switches calculated
852 // at run time in order to work correctly. That's why NaClLoadCmdPrefix
853 // flag can't be used.
854 const char kNaClGdb[] = "nacl-gdb";
856 // GDB script to pass to the nacl-gdb debugger at startup.
857 const char kNaClGdbScript[] = "nacl-gdb-script";
859 // On POSIX only: the contents of this flag are prepended to the nacl-loader
860 // command line. Useful values might be "valgrind" or "xterm -e gdb --args".
861 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix";
863 // Sets the base logging level for the net log. Log 0 logs the most data.
864 // Intended primarily for use with --log-net-log.
865 const char kNetLogLevel[] = "net-log-level";
867 // Disables the default browser check. Useful for UI/browser tests where we
868 // want to avoid having the default browser info-bar displayed.
869 const char kNoDefaultBrowserCheck[] = "no-default-browser-check";
871 // By default, an https page can load images, fonts or frames from an http
872 // page. This switch overrides this to block this lesser mixed-content problem.
873 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content";
875 // Don't record/playback events when using record & playback.
876 const char kNoEvents[] = "no-events";
878 // Disables all experiments set on about:flags. Does not disable about:flags
879 // itself. Useful if an experiment makes chrome crash at startup: One can start
880 // chrome with --no-experiments, disable the problematic lab at about:flags and
881 // then restart chrome without this switch again.
882 const char kNoExperiments[] = "no-experiments";
884 // Whether or not it's actually the first run. Overrides kFirstRun in case
885 // you're for some reason tempted to pass them both.
886 const char kNoFirstRun[] = "no-first-run";
888 // Support a separate switch that enables the v8 playback extension.
889 // The extension causes javascript calls to Date.now() and Math.random()
890 // to return consistent values, such that subsequent loads of the same
891 // page will result in consistent js-generated data and XHR requests.
892 // Pages may still be able to generate inconsistent data from plugins.
893 const char kNoJsRandomness[] = "no-js-randomness";
895 // Starts the browser outside of managed mode.
896 const char kNoManaged[] = "no-managed";
898 // Whether or not the browser should warn if the profile is on a network share.
899 // This flag is only relevant for Windows currently.
900 const char kNoNetworkProfileWarning[] = "no-network-profile-warning";
902 // Don't send hyperlink auditing pings
903 const char kNoPings[] = "no-pings";
905 // Don't use a proxy server, always make direct connections. Overrides any
906 // other proxy server flags that are passed.
907 const char kNoProxyServer[] = "no-proxy-server";
909 // Disables the service process from adding itself as an autorun process. This
910 // does not delete existing autorun registrations, it just prevents the service
911 // from registering a new one.
912 const char kNoServiceAutorun[] = "no-service-autorun";
914 // Does not automatically open a browser window on startup (used when
915 // launching Chrome for the purpose of hosting background apps).
916 const char kNoStartupWindow[] = "no-startup-window";
918 // Shows a desktop notification that the cloud print token has expired and that
919 // user needs to re-authenticate.
920 const char kNotifyCloudPrintTokenExpired[] = "notify-cp-token-expired";
922 // Specifies the maximum number of threads to use for running the Proxy
923 // Autoconfig (PAC) script.
924 const char kNumPacThreads[] = "num-pac-threads";
926 // Controls whether to use the fancy new scoring (takes into account
927 // word breaks, does better balancing of topicality, recency, etc.) for
928 // HistoryQuickProvider.
929 const char kOmniboxHistoryQuickProviderNewScoring[] =
930 "omnibox-history-quick-provider-new-scoring";
931 // The value the kOmniboxHistoryQuickProviderNewScoring switch may have,
932 // as in "--omnibox-history-quick-provider-new-scoring=1".
933 // 1 means use new scoring.
934 const char kOmniboxHistoryQuickProviderNewScoringEnabled[] = "1";
935 // 0 means use old scoring ( == current behavior as of 6/2012).
936 const char kOmniboxHistoryQuickProviderNewScoringDisabled[] = "0";
938 // Controls whether HistoryQuickProvider is allowed to reorder results
939 // according to inlineability in order to more aggressively assign/keep
940 // high relevance scores.
941 const char kOmniboxHistoryQuickProviderReorderForInlining[] =
942 "omnibox-history-quick-provider-reorder-for-inlining";
943 // The value the kOmniboxHistoryQuickProviderReorderForInlining switch may
944 // have, as in "--omnibox-history-quick-provider-reorder-for-inlining=1".
945 // 1 means allow reordering results.
946 const char kOmniboxHistoryQuickProviderReorderForInliningEnabled[] = "1";
947 // 0 means don't allow reordering results ( == current behavior as of 6/2012).
948 const char kOmniboxHistoryQuickProviderReorderForInliningDisabled[] = "0";
950 // Controls whether the omnibox's HistoryQuickProvider is allowed to
951 // inline suggestions.
952 const char kOmniboxInlineHistoryQuickProvider[] =
953 "omnibox-inline-history-quick-provider-allowed";
954 // The values the kOmniboxInlineHistoryQuickProvider switch may have, as in
955 // "--omnibox-inline-history-quick-provider-allowed=1"
956 // allowed: if HistoryQuickProvider thinks it appropriate, it can inline
957 // ( == current behavior as of 2/2012).
958 const char kOmniboxInlineHistoryQuickProviderAllowed[] = "1";
959 // prohibited: never inline matches
960 const char kOmniboxInlineHistoryQuickProviderProhibited[] = "0";
961 // auto: any other value => the code and field trial does what it wants.
963 // When the option to block third-party cookies is enabled, only block
964 // third-party cookies from being set.
965 const char kOnlyBlockSettingThirdPartyCookies[] =
966 "only-block-setting-third-party-cookies";
968 // Launches URL in new browser window.
969 const char kOpenInNewWindow[] = "new-window";
971 // Simulates an organic Chrome install.
972 const char kOrganicInstall[] = "organic";
974 // Force use of QUIC for requests over the specified port.
975 const char kOriginPortToForceQuicOn[] = "origin-port-to-force-quic-on";
977 // Packages an extension to a .crx installable file from a given directory.
978 const char kPackExtension[] = "pack-extension";
980 // Optional PEM private key to use in signing packaged .crx.
981 const char kPackExtensionKey[] = "pack-extension-key";
983 // Specifies the path to the user data folder for the parent profile.
984 const char kParentProfile[] = "parent-profile";
986 // Launches PerformanceMonitor at startup, which will gather statistics about
987 // Chrome's CPU and memory usage, page load times, startup times, and network
988 // usage, and will also store information about events which may be of interest,
989 // such as extension-related occurrences and crashes. Optionally, this may be
990 // run with an integer value representing the interval between the timed
991 // metric gatherings, measured in seconds (if invalid or not provided, the
992 // default interval is used).
993 const char kPerformanceMonitorGathering[] = "performance-monitor-gathering";
995 // Enable the post crash analyzer which uploads detailed crash information in
996 // situations where a crash is determined to be particularly interesting.
997 const char kPerformCrashAnalysis[] = "perform-crash-analysis";
999 // Read previously recorded data from the cache. Only cached data is read.
1000 // See kRecordMode.
1001 const char kPlaybackMode[] = "playback-mode";
1003 // Overrides the path to the location that PNaCl is installed.
1004 const char kPnaclDir[] = "pnacl-dir";
1006 // Forces the PPAPI version of Flash (if it's being used) to run in the
1007 // renderer process rather than in a separate plugin process.
1008 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process";
1010 // Use the PPAPI (Pepper) Flash found at the given path.
1011 const char kPpapiFlashPath[] = "ppapi-flash-path";
1013 // Report the given version for the PPAPI (Pepper) Flash. The version should be
1014 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
1015 // defaults to "10.2.999.999".
1016 const char kPpapiFlashVersion[] = "ppapi-flash-version";
1018 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
1019 // effect when Instant is either disabled or restricted to search, and when
1020 // prerender is enabled.
1021 const char kPrerenderFromOmnibox[] = "prerender-from-omnibox";
1022 // These are the values the kPrerenderFromOmnibox switch may have, as in
1023 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
1024 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
1025 // disabled: No prerendering.
1026 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
1027 // enabled: Guaranteed prerendering.
1028 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
1029 // Controls speculative prerendering of pages, and content prefetching. Both
1030 // are dispatched from <link rel=prefetch href=...> elements.
1031 const char kPrerenderMode[] = "prerender";
1032 // These are the values the kPrerenderMode switch may have, as in
1033 // "--prerender=auto".
1034 // auto: Allow field trial selection in both prerender and prefetch.
1035 const char kPrerenderModeSwitchValueAuto[] = "auto";
1036 // disabled: No prerendering or prefetching.
1037 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
1038 // enabled: Both prerendering and prefetching.
1039 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
1040 // prefetch_only: No prerendering, but enables prefetching.
1041 const char kPrerenderModeSwitchValuePrefetchOnly[] = "prefetch_only";
1043 // Enable conversion from vector to raster for any page.
1044 const char kPrintRaster[] = "print-raster";
1046 // Outputs the product version information and quit. Used as an internal api to
1047 // detect the installed version of Chrome on Linux.
1048 const char kProductVersion[] = "product-version";
1050 // Selects directory of profile to associate with the first browser launched.
1051 const char kProfileDirectory[] = "profile-directory";
1053 // Starts the sampling based profiler for the browser process at startup. This
1054 // will only work if chrome has been built with the gyp variable profiling=1.
1055 // The output will go to the value of kProfilingFile.
1056 const char kProfilingAtStart[] = "profiling-at-start";
1058 // Specifies a location for profiling output. This will only work if chrome has
1059 // been built with the gyp variable profiling=1.
1061 // {pid} if present will be replaced by the pid of the process.
1062 // {count} if present will be incremented each time a profile is generated
1063 // for this process.
1064 // The default is chrome-profile-{pid}.
1065 const char kProfilingFile[] = "profiling-file";
1067 // Specifies a path for the output of task-level profiling which can be loaded
1068 // and viewed in about:profiler.
1069 const char kProfilingOutputFile[] = "profiling-output-file";
1071 // Controls whether profile data is periodically flushed to a file. Normally
1072 // the data gets written on exit but cases exist where chrome doesn't exit
1073 // cleanly (especially when using single-process). A time in seconds can be
1074 // specified.
1075 const char kProfilingFlush[] = "profiling-flush";
1077 // Specifies a custom URL for fetching NTP promo data.
1078 const char kPromoServerURL[] = "promo-server-url";
1080 // Should we prompt the user before allowing external extensions to install?
1081 // Default is yes.
1082 const char kPromptForExternalExtensions[] = "prompt-for-external-extensions";
1084 // Forces proxy auto-detection.
1085 const char kProxyAutoDetect[] = "proxy-auto-detect";
1087 // Specifies a list of hosts for whom we bypass proxy settings and use direct
1088 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
1089 // specified. This is a comma-separated list of bypass rules. See:
1090 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
1091 const char kProxyBypassList[] = "proxy-bypass-list";
1093 // Uses the pac script at the given URL
1094 const char kProxyPacUrl[] = "proxy-pac-url";
1096 // Uses a specified proxy server, overrides system settings. This switch only
1097 // affects HTTP and HTTPS requests.
1098 const char kProxyServer[] = "proxy-server";
1100 // Adds a "Purge memory" button to the Task Manager, which tries to dump as
1101 // much memory as possible. This is mostly useful for testing how well the
1102 // MemoryPurger functionality works.
1104 // NOTE: This is only implemented for Views.
1105 const char kPurgeMemoryButton[] = "purge-memory-button";
1107 // Capture resource consumption information through page cycling and output the
1108 // data to the specified file.
1109 const char kRecordStats[] = "record-stats";
1111 // Chrome supports a playback and record mode. Record mode saves *everything*
1112 // to the cache. Playback mode reads data exclusively from the cache. This
1113 // allows us to record a session into the cache and then replay it at will.
1114 // See also kPlaybackMode.
1115 const char kRecordMode[] = "record-mode";
1117 // Uses custom front-end URL for the remote debugging.
1118 const char kRemoteDebuggingFrontend[] = "remote-debugging-frontend";
1120 // Enables print preview in the renderer. This flag is generated internally by
1121 // Chrome and does nothing when directly passed to the browser.
1122 const char kRendererPrintPreview[] = "renderer-print-preview";
1124 // Forces a reset of the one-time-randomized FieldTrials on this client, also
1125 // known as the Chrome Variations state.
1126 const char kResetVariationState[] = "reset-variation-state";
1128 // Indicates the last session should be restored on startup. This overrides the
1129 // preferences value and is primarily intended for testing. The value of this
1130 // switch is the number of tabs to wait until loaded before 'load completed' is
1131 // sent to the ui_test.
1132 const char kRestoreLastSession[] = "restore-last-session";
1134 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1135 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1136 // See http://crbug.com/120416 for how to remove this switch.
1137 const char kSavePageAsMHTML[] = "save-page-as-mhtml";
1139 // URL prefix used by safebrowsing to fetch hash, download data and report
1140 // malware.
1141 const char kSbURLPrefix[] = "safebrowsing-url-prefix";
1143 // If present, safebrowsing only performs update when
1144 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1145 // This is used for testing only.
1146 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
1148 // TODO(lzheng): Remove this flag once the feature works fine
1149 // (http://crbug.com/74848).
1151 // Disables safebrowsing feature that checks download url and downloads
1152 // content's hash to make sure the content are not malicious.
1153 const char kSbDisableDownloadProtection[] =
1154 "safebrowsing-disable-download-protection";
1156 // Enables or disables extension scripts badges in the location bar.
1157 const char kScriptBadges[] = "script-badges";
1159 // Enable or diable the "script bubble" icon in the URL bar that tells you how
1160 // many extensions are running scripts on a page.
1161 const char kScriptBubble[] = "script-bubble";
1163 // Enables the showing of an info-bar instructing user they can search directly
1164 // from the omnibox.
1165 const char kSearchInOmniboxHint[] = "search-in-omnibox-hint";
1167 // Sets a token in the token service, for testing.
1168 const char kSetToken[] = "set-token";
1170 // If true the app list will be shown.
1171 const char kShowAppList[] = "show-app-list";
1173 // If true an app list shortcut will be shown in the taskbar.
1174 const char kShowAppListShortcut[] = "show-app-list-shortcut";
1176 // Annotates forms with Autofill field type predictions.
1177 const char kShowAutofillTypePredictions[] = "show-autofill-type-predictions";
1179 // Makes component extensions appear in chrome://settings/extensions.
1180 const char kShowComponentExtensionOptions[] =
1181 "show-component-extension-options";
1183 // See kHideIcons.
1184 const char kShowIcons[] = "show-icons";
1186 // If true the alignment of the launcher can be changed.
1187 const char kShowLauncherAlignmentMenu[] = "show-launcher-alignment-menu";
1189 // Enables or disables sideload wipeout extension effort.
1190 const char kSideloadWipeout[] = "sideload-wipeout";
1192 // Changes the DCHECKS to dump memory and continue instead of displaying error
1193 // dialog. This is valid only in Release mode when --enable-dcheck is
1194 // specified.
1195 const char kSilentDumpOnDCHECK[] = "silent-dump-on-dcheck";
1197 // Causes Chrome to launch without opening any windows by default. Useful if
1198 // one wishes to use Chrome as an ash server.
1199 const char kSilentLaunch[] = "silent-launch";
1201 // Simulates an update being available.
1202 const char kSimulateUpgrade[] = "simulate-upgrade";
1204 // Replaces the buffered data source for <audio> and <video> with a simplified
1205 // resource loader that downloads the entire resource into memory.
1207 // Socket reuse policy. The value should be of type enum
1208 // ClientSocketReusePolicy.
1209 const char kSocketReusePolicy[] = "socket-reuse-policy";
1211 // Origin for which SpdyProxy authentication is supported.
1212 const char kSpdyProxyOrigin[] = "spdy-proxy-origin";
1214 // Speculative resource prefetching.
1215 const char kSpeculativeResourcePrefetching[] =
1216 "speculative-resource-prefetching";
1218 // Speculative resource prefetching is disabled.
1219 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled";
1221 // Speculative resource prefetching will only learn about resources that need to
1222 // be prefetched but will not prefetch them.
1223 const char kSpeculativeResourcePrefetchingLearning[] = "learning";
1225 // Speculative resource prefetching is enabled.
1226 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled";
1228 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1229 // "tls1.2").
1230 const char kSSLVersionMax[] = "ssl-version-max";
1232 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1233 // "tls1.2").
1234 const char kSSLVersionMin[] = "ssl-version-min";
1236 // Starts the browser maximized, regardless of any previous settings.
1237 const char kStartMaximized[] = "start-maximized";
1239 // Controls the width of time-of-day filters on the 'suggested' ntp page, in
1240 // minutes.
1241 const char kSuggestionNtpFilterWidth[] = "suggestion-ntp-filter-width";
1243 // Enables a normal distribution dropoff to the relevancy of visits with respect
1244 // to the time of day.
1245 const char kSuggestionNtpGaussianFilter[] = "suggestion-ntp-gaussian-filter";
1247 // Enables a linear dropoff to the relevancy of visits with respect to the time
1248 // of day.
1249 const char kSuggestionNtpLinearFilter[] = "suggestion-ntp-linear-filter";
1251 // Allows insecure XMPP connections for sync (for testing).
1252 const char kSyncAllowInsecureXmppConnection[] =
1253 "sync-allow-insecure-xmpp-connection";
1255 // Invalidates any login info passed into sync's XMPP connection.
1256 const char kSyncInvalidateXmppLogin[] = "sync-invalidate-xmpp-login";
1258 // Enable support for keystore key based encryption.
1259 const char kSyncKeystoreEncryption[] = "sync-keystore-encryption";
1261 // This flag causes sync to retry very quickly (see polling_constants.h) the
1262 // when it encounters an error, as the first step towards exponential backoff.
1263 const char kSyncShortInitialRetryOverride[] =
1264 "sync-short-initial-retry-override";
1266 // Overrides the default notification method for sync.
1267 const char kSyncNotificationMethod[] = "sync-notification-method";
1269 // Overrides the default host:port used for sync notifications.
1270 const char kSyncNotificationHostPort[] = "sync-notification-host-port";
1272 // Overrides the default server used for profile sync.
1273 const char kSyncServiceURL[] = "sync-url";
1275 // Enables syncing of favicons as part of tab sync.
1276 const char kSyncTabFavicons[] = "sync-tab-favicons";
1278 // Makes the sync code to throw an unrecoverable error after initialization.
1279 // Useful for testing unrecoverable error scenarios.
1280 const char kSyncThrowUnrecoverableError[] = "sync-throw-unrecoverable-error";
1283 // Tries to connect to XMPP using SSLTCP first (for testing).
1284 const char kSyncTrySsltcpFirstForXmpp[] = "sync-try-ssltcp-first-for-xmpp";
1286 // Enables tab dragging to create a real browser.
1287 const char kTabBrowserDragging[] = "enable-tab-browser-dragging";
1289 // Enables tab capture.
1290 const char kTabCapture[] = "enable-tab-capture";
1292 // Passes the name of the current running automated test to Chrome.
1293 const char kTestName[] = "test-name";
1295 // Runs the security test for the NaCl loader sandbox.
1296 const char kTestNaClSandbox[] = "test-nacl-sandbox";
1298 // Type of the current test harness ("browser" or "ui").
1299 const char kTestType[] = "test-type";
1301 // Tells the app to listen for and broadcast testing-related messages on IPC
1302 // channel with the given ID.
1303 const char kTestingChannelID[] = "testing-channel";
1305 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1306 // The value is the host:port of the trusted proxy.
1307 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy";
1309 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1310 // be used only by the upgrade process.
1311 const char kTryChromeAgain[] = "try-chrome-again";
1313 // Runs un-installation steps that were done by chrome first-run.
1314 const char kUninstall[] = "uninstall";
1316 // Use hardware gpu, if available, for tests.
1317 const char kUseGpuInTests[] = "use-gpu-in-tests";
1319 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1320 // testing flag.
1321 const char kUseSpdy[] = "use-spdy";
1323 // Enables use of the spelling web service. This will only work if asynchronous
1324 // spell checking is not disabled.
1325 const char kUseSpellingService[] = "use-spelling-service";
1327 // Sets the maximum SPDY sessions per domain.
1328 const char kMaxSpdySessionsPerDomain[] = "max-spdy-sessions-per-domain";
1330 // Sets the maximum concurrent streams over a SPDY session.
1331 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams";
1333 // Specifies the user data directory, which is where the browser will look for
1334 // all of its state.
1335 const char kUserDataDir[] = "user-data-dir";
1337 // Uses the GAIA web-based signin flow instead of the native UI signin flow.
1338 const char kUseWebBasedSigninFlow[] = "use-web-based-signin-flow";
1340 // Specifies a custom URL for the server which reports variation data to the
1341 // client. See variations_service.cc.
1342 const char kVariationsServerURL[] = "variations-server-url";
1344 // Prints version information and quits.
1345 const char kVersion[] = "version";
1347 // Requests that Chrome connect to a remote viewer process using an IPC
1348 // channel of the given name.
1349 const char kViewerConnection[] = "viewer-connection";
1351 // Cycle through a series of URLs listed in the specified file.
1352 const char kVisitURLs[] = "visit-urls";
1354 // Enable the "native services" feature of web-intents.
1355 const char kWebIntentsNativeServicesEnabled[] =
1356 "web-intents-native-services-enabled";
1358 // Adds the given extension ID to all the permission whitelists.
1359 const char kWhitelistedExtensionID[] = "whitelisted-extension-id";
1361 // Specify the initial window position: --window-position=x,y
1362 const char kWindowPosition[] = "window-position";
1364 // Specify the initial window size: --window-size=w,h
1365 const char kWindowSize[] = "window-size";
1367 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1368 // use Chromium's network stack to fetch, and V8 to evaluate.
1369 const char kWinHttpProxyResolver[] = "winhttp-proxy-resolver";
1371 #if defined(ENABLE_PLUGIN_INSTALLATION)
1372 // Specifies a custom URL for fetching plug-ins metadata. Used for testing.
1373 const char kPluginsMetadataServerURL[] = "plugins-metadata-server-url";
1374 #endif
1376 #if defined(OS_ANDROID)
1377 // Use the tablet specific UI components when available.
1378 const char kTabletUI[] = "tablet-ui";
1379 #endif
1381 #if defined(USE_ASH)
1382 const char kAshEnableTabScrubbing[] = "ash-enable-tab-scrubbing";
1383 #endif
1385 #if defined(OS_CHROMEOS)
1386 // When wallpaper boot animation is not disabled this switch
1387 // is used to override OOBE/sign in WebUI init type.
1388 // Possible values: parallel|postpone. Default: parallel.
1389 const char kAshWebUIInit[] = "ash-webui-init";
1391 // Enables switching between different cellular carriers from the UI.
1392 const char kEnableCarrierSwitching[] = "enable-carrier-switching";
1394 // Disables wallpaper boot animation (except of OOBE case).
1395 const char kDisableBootAnimation[] = "disable-boot-animation";
1397 // Disables Chrome Captive Portal detector, which initiates Captive
1398 // Portal detection for new active networks.
1399 const char kDisableChromeCaptivePortalDetector[] =
1400 "disable-chrome-captive-portal-detector";
1402 // Disables Google Drive integration.
1403 const char kDisableDrive[] = "disable-drive";
1405 // Disables file prefetching in Google Drive Client for Chrome OS.
1406 const char kDisableDrivePrefetch[] = "disable-drive-prefetch";
1408 // Avoid doing expensive animations upon login.
1409 const char kDisableLoginAnimations[] = "disable-login-animations";
1411 // Disables new OOBE/sign in design.
1412 const char kDisableNewOobe[] = "disable-new-oobe";
1414 // Disables new password changed dialog (WebUI).
1415 const char kDisableNewPasswordChangedDialog[] =
1416 "disable-new-password-changed-dialog";
1418 // Avoid doing animations upon oobe.
1419 const char kDisableOobeAnimation[] = "disable-oobe-animation";
1421 // Disables fake ethernet network on the login screen.
1422 const char kDisableStubEthernet[] = "disable-stub-ethernet";
1424 // Enables component extension that initializes background pages of
1425 // certain hosted applications.
1426 const char kEnableBackgroundLoader[] = "enable-background-loader";
1428 // Enables Chrome Captive Portal detector, which initiates Captive
1429 // Portal detection for new active networks.
1430 const char kEnableChromeCaptivePortalDetector[] =
1431 "enable-chrome-captive-portal-detector";
1433 // Enables touchpad three-finger-click as middle button.
1434 const char kEnableTouchpadThreeFingerClick[]
1435 = "enable-touchpad-three-finger-click";
1437 // Enables touchpad three-finger swipe.
1438 const char kEnableTouchpadThreeFingerSwipe[]
1439 = "enable-touchpad-three-finger-swipe";
1441 // Skips OAuth part of ChromeOS login process.
1442 const char kSkipOAuthLogin[] = "skip-oauth-login";
1444 // Enable Kiosk mode for ChromeOS.
1445 const char kEnableKioskMode[] = "enable-kiosk-mode";
1447 // Disable policy-configured local accounts.
1448 const char kDisableLocalAccounts[] = "disable-local-accounts";
1450 // Enables request of tablet site (via user agent override).
1451 const char kEnableRequestTabletSite[] = "enable-request-tablet-site";
1453 // Enables static ip configuration. This flag should be removed when it's on by
1454 // default.
1455 const char kEnableStaticIPConfig[] = "enable-static-ip-config";
1457 // Passed to Chrome on first boot. Not passed on restart after sign out.
1458 const char kFirstBoot[] = "first-boot";
1460 // If true, the Chromebook has a Chrome OS keyboard. Don't use the flag for
1461 // Chromeboxes.
1462 const char kHasChromeOSKeyboard[] = "has-chromeos-keyboard";
1464 // Path for the screensaver used in Kiosk mode
1465 const char kKioskModeScreensaverPath[] = "kiosk-mode-screensaver-path";
1467 // Enables Chrome-as-a-login-manager behavior.
1468 const char kLoginManager[] = "login-manager";
1470 // Allows to override the first login screen. The value should be the name of
1471 // the first login screen to show (see
1472 // chrome/browser/chromeos/login/login_wizard_view.cc for actual names).
1473 // Ignored if kLoginManager is not specified. TODO(avayvod): Remove when the
1474 // switch is no longer needed for testing.
1475 const char kLoginScreen[] = "login-screen";
1477 // Controls the initial login screen size. Pass width,height.
1478 const char kLoginScreenSize[] = "login-screen-size";
1480 // Specifies the profile to use once a chromeos user is logged in.
1481 const char kLoginProfile[] = "login-profile";
1483 // Specifies the user which is already logged in.
1484 const char kLoginUser[] = "login-user";
1486 // Specifies a password to be used to login (along with login-user).
1487 const char kLoginPassword[] = "login-password";
1489 // Enables natural scroll by default.
1490 const char kNaturalScrollDefault[] = "enable-natural-scroll-default";
1492 // Disables tab discard in low memory conditions, a feature which silently
1493 // closes inactive tabs to free memory and to attempt to avoid the kernel's
1494 // out-of-memory process killer.
1495 const char kNoDiscardTabs[] = "no-discard-tabs";
1497 // Indicates that the browser is in "browse without sign-in" (Guest session)
1498 // mode. Should completely disable extensions, sync and bookmarks.
1499 const char kGuestSession[] = "bwsi";
1501 // Enables overriding the path for the default echo component extension.
1502 // Useful for testing.
1503 const char kEchoExtensionPath[] = "echo-ext-path";
1505 // Indicates that a stub implementation of CrosSettings that stores settings in
1506 // memory without signing should be used, treating current user as the owner.
1507 // This option is for testing the chromeos build of chrome on the desktop only.
1508 const char kStubCrosSettings[] = "stub-cros-settings";
1510 // Enables overriding the path for the default authentication extension.
1511 const char kAuthExtensionPath[] = "auth-ext-path";
1513 // Power of the power-of-2 initial modulus that will be used by the
1514 // auto-enrollment client. E.g. "4" means the modulus will be 2^4 = 16.
1515 const char kEnterpriseEnrollmentInitialModulus[] =
1516 "enterprise-enrollment-initial-modulus";
1518 // Power of the power-of-2 maximum modulus that will be used by the
1519 // auto-enrollment client.
1520 const char kEnterpriseEnrollmentModulusLimit[] =
1521 "enterprise-enrollment-modulus-limit";
1523 // Loads the File Manager as a packaged app.
1524 const char kFileManagerPackaged[] = "file-manager-packaged";
1526 #ifndef NDEBUG
1527 // Skips all other OOBE pages after user login.
1528 const char kOobeSkipPostLogin[] = "oobe-skip-postlogin";
1529 #endif // NDEBUG
1530 #endif // OS_CHROMEOS
1532 #if defined(OS_POSIX)
1533 // A flag, generated internally by Chrome for renderer and other helper process
1534 // command lines on Linux and Mac. It tells the helper process to enable crash
1535 // dumping and reporting, because helpers cannot access the profile or other
1536 // files needed to make this decision.
1537 const char kEnableCrashReporter[] = "enable-crash-reporter";
1539 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1540 // Specifies which password store to use (detect, default, gnome, kwallet).
1541 const char kPasswordStore[] = "password-store";
1542 #endif
1543 #endif // OS_POSIX
1545 #if defined(OS_MACOSX)
1546 // Enables the tabs expose feature ( http://crbug.com/50307 ).
1547 const char kEnableExposeForTabs[] = "enable-expose-for-tabs";
1549 // Performs Keychain reauthorization from the command line on behalf of a
1550 // special Keychain reauthorization stub executable. Used during auto-update.
1551 const char kKeychainReauthorize[] = "keychain-reauthorize";
1553 // A process type (switches::kProcessType) that relaunches the browser. See
1554 // chrome/browser/mac/relauncher.h.
1555 const char kRelauncherProcess[] = "relauncher";
1557 // Uses mock keychain for testing purposes, which prevents blocking dialogs
1558 // from causing timeouts.
1559 const char kUseMockKeychain[] = "use-mock-keychain";
1560 #endif
1562 #if defined(OS_WIN)
1563 // Disables profile desktop shortcuts handling, preventing their creation,
1564 // modification or removal.
1565 const char kDisableDesktopShortcuts[] = "disable-desktop-shortcuts";
1567 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1568 // Windows 8 and higher. Used when relaunching metro Chrome.
1569 const char kForceImmersive[] = "force-immersive";
1571 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1572 // Windows 8 and higher. Used when relaunching metro Chrome.
1573 const char kForceDesktop[] = "force-desktop";
1575 // Allows for disabling the overlapped I/O for TCP reads.
1576 // Possible values are "on" or "off".
1577 // The default is "on" which matches the existing behavior.
1578 // "off" switches to use non-blocking reads and WSAEventSelect.
1579 const char kOverlappedRead[] = "overlapped-reads";
1581 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1582 const char kRelaunchShortcut[] = "relaunch-shortcut";
1584 // Waits for the given handle to be signaled before relaunching metro Chrome on
1585 // Windows 8 and higher.
1586 const char kWaitForMutex[] = "wait-for-mutex";
1587 #endif
1589 #ifndef NDEBUG
1590 // Enables overriding the path of file manager extension.
1591 const char kFileManagerExtensionPath[] = "filemgr-ext-path";
1593 // Dumps dependency information about our profile services into a dot file in
1594 // the profile directory.
1595 const char kDumpProfileDependencyGraph[] = "dump-profile-graph";
1596 #endif // NDEBUG
1598 // Controls print preview in the browser process.
1599 #if defined(GOOGLE_CHROME_BUILD)
1600 // Disables print preview (For testing, and for users who don't like us. :[ )
1601 const char kDisablePrintPreview[] = "disable-print-preview";
1602 #else
1603 // Enables print preview (Force enable on Chromium, which normally does not
1604 // have the PDF viewer required for print preview.)
1605 const char kEnablePrintPreview[] = "enable-print-preview";
1606 #endif
1608 // -----------------------------------------------------------------------------
1609 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1611 // You were going to just dump your switches here, weren't you? Instead, please
1612 // put them in alphabetical order above, or in order inside the appropriate
1613 // ifdef at the bottom. The order should match the header.
1614 // -----------------------------------------------------------------------------
1616 } // namespace switches