Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / common / chrome_switches.cc
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.
4
5 #include "chrome/common/chrome_switches.h"
6
7 #include "base/base_switches.h"
8 #include "base/command_line.h"
9
10 namespace switches {
11
12 // -----------------------------------------------------------------------------
13 // Can't find the switch you are looking for? Try looking in:
14 // ash/ash_switches.cc
15 // base/base_switches.cc
16 // chromeos/chromeos_switches.cc
17 // etc.
18 //
19 // When commenting your switch, please use the same voice as surrounding
20 // comments. Imagine "This switch..." at the beginning of the phrase, and it'll
21 // all work out.
22 // -----------------------------------------------------------------------------
23
24 // Allows choosing an existing managed user profile during the managed
25 // user creation flow. Is only used on ChromeOS.
26 const char kAllowCreateExistingManagedUsers[] =
27     "allow-create-existing-managed-users";
28
29 // Allows third-party content included on a page to prompt for a HTTP basic
30 // auth username/password pair.
31 const char kAllowCrossOriginAuthPrompt[]    = "allow-cross-origin-auth-prompt";
32
33 // On ChromeOS, file:// access is disabled except for certain whitelisted
34 // directories. This switch re-enables file:// for testing.
35 const char kAllowFileAccess[]               = "allow-file-access";
36
37 // Allow non-secure origins to use the screen capture API.
38 const char kAllowHttpScreenCapture[] = "allow-http-screen-capture";
39
40 // Specifies comma-separated list of extension ids or hosts to grant
41 // access to CRX file system APIs.
42 const char kAllowNaClCrxFsAPI[]             = "allow-nacl-crxfs-api";
43
44 // Specifies comma-separated list of extension ids or hosts to grant
45 // access to file handle APIs.
46 const char kAllowNaClFileHandleAPI[]        = "allow-nacl-file-handle-api";
47
48 // Specifies comma-separated list of extension ids or hosts to grant
49 // access to TCP/UDP socket APIs.
50 const char kAllowNaClSocketAPI[]            = "allow-nacl-socket-api";
51
52 // Don't block outdated plugins.
53 const char kAllowOutdatedPlugins[]          = "allow-outdated-plugins";
54
55 // By default, an https page cannot run JavaScript, CSS or plug-ins from http
56 // URLs. This provides an override to get the old insecure behavior.
57 const char kAllowRunningInsecureContent[]   = "allow-running-insecure-content";
58
59 // Prevents Chrome from requiring authorization to run certain widely installed
60 // but less commonly used plug-ins.
61 const char kAlwaysAuthorizePlugins[]        = "always-authorize-plugins";
62
63 // Specifies that the extension-app with the specified id should be launched
64 // according to its configuration.
65 const char kAppId[]                         = "app-id";
66
67 // Specifies that the associated value should be launched in "application"
68 // mode.
69 const char kApp[]                           = "app";
70
71 // Specifies an URL to use for app list start page.
72 const char kAppListStartPageURL[]           = "app-list-start-page-url";
73
74 // Specifies the initial size for application windows launched with --app.
75 // --app-window-size=w,h
76 const char kAppWindowSize[]                 = "app-window-size";
77
78 // Overrides the apps checkout URL, which is used to determine when to expose
79 // some private APIs.
80 const char kAppsCheckoutURL[]               = "apps-checkout-url";
81
82 // The URL that the webstore APIs download extensions from.
83 // Note: the URL must contain one '%s' for the extension ID.
84 const char kAppsGalleryDownloadURL[]        = "apps-gallery-download-url";
85
86 // A setting to cause extension/app installs from the webstore skip the normal
87 // confirmation dialog. A value of 'accept' means to always act as if the dialog
88 // was accepted, and 'cancel' means to always act as if the dialog was
89 // cancelled.
90 const char kAppsGalleryInstallAutoConfirmForTests[] =
91     "apps-gallery-install-auto-confirm-for-tests";
92
93 // The URL to use for the gallery link in the app launcher.
94 const char kAppsGalleryURL[]                = "apps-gallery-url";
95
96 // The update url used by gallery/webstore extensions.
97 const char kAppsGalleryUpdateURL[]          = "apps-gallery-update-url";
98
99 // Value of GAIA auth code for --force-app-mode.
100 const char kAppModeAuthCode[]               = "app-mode-auth-code";
101
102 // Value of OAuth2 refresh token for --force-app-mode.
103 const char kAppModeOAuth2Token[]            = "app-mode-oauth-token";
104
105 // Whether to always use the new app install bubble when installing an app.
106 const char kAppsNewInstallBubble[]          = "apps-new-install-bubble";
107
108 // Experimental native frame support for packaged apps.
109 const char kAppsUseNativeFrame[]            = "apps-use-native-frame";
110
111 // Enables overriding the path for the default authentication extension.
112 const char kAuthExtensionPath[]             = "auth-ext-path";
113
114 // Whitelist of servers that Negotiate will generate delegated Kerberos tickets
115 // for.
116 const char kAuthNegotiateDelegateWhitelist[] =
117     "auth-negotiate-delegate-whitelist";
118
119 // HTTP authentication schemes to enable. This is a comma-separated list of
120 // authentication schemes (basic, digest, ntlm, and negotiate). By default all
121 // schemes are enabled. The primary use of this command line flag is to help
122 // triage authentication-related issues reported by end-users.
123 const char kAuthSchemes[]                   = "auth-schemes";
124
125 // Whitelist of servers which NTLM and Negotiate can automatically authenticate
126 // with using the default credentials of the currently logged in user.
127 const char kAuthServerWhitelist[]           = "auth-server-whitelist";
128
129 // A flag that is used to tell Chrome that it was launched automatically at
130 // computer startup and not by some user action.
131 const char kAutoLaunchAtStartup[]           = "auto-launch-at-startup";
132
133 // The value of this switch tells the app to listen for and broadcast
134 // automation-related messages on IPC channel with the given ID.
135 const char kAutomationClientChannelID[]     = "automation-channel";
136
137 // Causes the automation provider to reinitialize its IPC channel instead of
138 // shutting down when a client disconnects.
139 const char kAutomationReinitializeOnChannelError[] =
140     "automation-reinitialize-on-channel-error";
141
142 // Similar to kNoFirstRun, but also drops the First Run beacon so that first run
143 // will not occur in subsequent runs either.
144 const char kCancelFirstRun[]                = "cancel-first-run";
145
146 // Certificate Transparency: Uses the provided log(s) for checking Signed
147 // Certificate Timestamps provided with certificates.
148 // The switch's value is:
149 //   log_description:log_key,log_description:log_key,...
150 // where
151 //   log_description is a textual description of the log.
152 //   log_key is a Base64'd DER-encoded SubjectPublicKeyInfo of the log's
153 //   public key.
154 // Multiple logs can be specified by repeating description:key pairs,
155 // separated by a comma.
156 const char kCertificateTransparencyLog[] =
157     "certificate-transparency-log";
158
159 // How often (in seconds) to check for updates. Should only be used for testing
160 // purposes.
161 const char kCheckForUpdateIntervalSec[]     = "check-for-update-interval";
162
163 // Checks the cloud print connector policy, informing the service process if
164 // the policy is set to disallow the connector, then quits.
165 const char kCheckCloudPrintConnectorPolicy[] =
166     "check-cloud-print-connector-policy";
167
168 // Comma-separated list of SSL cipher suites to disable.
169 const char kCipherSuiteBlacklist[]          = "cipher-suite-blacklist";
170
171 // Clears the token service before using it. This allows simulating the
172 // expiration of credentials during testing.
173 const char kClearTokenService[]             = "clear-token-service";
174
175 // Used with kCloudPrintFile. Tells Chrome to delete the file when finished
176 // displaying the print dialog.
177 const char kCloudPrintDeleteFile[]          = "cloud-print-delete-file";
178
179 // Tells chrome to display the cloud print dialog and upload the specified file
180 // for printing.
181 const char kCloudPrintFile[]                = "cloud-print-file";
182
183 // Specifies the mime type to be used when uploading data from the file
184 // referenced by cloud-print-file. Defaults to "application/pdf" if
185 // unspecified.
186 const char kCloudPrintFileType[]            = "cloud-print-file-type";
187
188 // Used with kCloudPrintFile to specify a JSON print ticket for the resulting
189 // print job. Defaults to null if unspecified.
190 const char kCloudPrintPrintTicket[]         = "cloud-print-print-ticket";
191
192 // Used with kCloudPrintFile to specify a title for the resulting print job.
193 const char kCloudPrintJobTitle[]            = "cloud-print-job-title";
194
195 // Setup cloud print proxy for provided printers. This does not start
196 // service or register proxy for autostart.
197 const char kCloudPrintSetupProxy[]          = "cloud-print-setup-proxy";
198
199 // The URL of the cloud print service to use, overrides any value stored in
200 // preferences, and the default. Only used if the cloud print service has been
201 // enabled (see enable-cloud-print).
202 const char kCloudPrintServiceURL[]          = "cloud-print-service";
203
204 // Comma-separated options to troubleshoot the component updater. Only valid
205 // for the browser process.
206 const char kComponentUpdater[]              = "component-updater";
207
208 // Causes the browser process to inspect loaded and registered DLLs for known
209 // conflicts and warn the user.
210 const char kConflictingModulesCheck[]       = "conflicting-modules-check";
211
212 // Toggles a new version of the content settings dialog in options.
213 const char kContentSettings2[]              = "new-content-settings";
214
215 // The Country we should use. This is normally obtained from the operating
216 // system during first run and cached in the preferences afterwards. This is a
217 // string value, the 2 letter code from ISO 3166-1.
218 const char kCountry[]                       = "country";
219
220 // Comma-separated list of BrowserThreads that cause browser process to crash
221 // if the given browser thread is not responsive. UI,IO,DB,FILE,CACHE are the
222 // list of BrowserThreads that are supported.
223 //
224 // For example:
225 //    --crash-on-hang-threads=UI:3:18,IO:3:18 --> Crash the browser if UI or IO
226 //      is not responsive for 18 seconds and the number of browser threads that
227 //      are responding is less than or equal to 3.
228 const char kCrashOnHangThreads[]            = "crash-on-hang-threads";
229
230 // Some platforms like ChromeOS default to empty desktop.
231 // Browser tests may need to add this switch so that at least one browser
232 // instance is created on startup.
233 // TODO(nkostylev): Investigate if this switch could be removed.
234 // (http://crbug.com/148675)
235 const char kCreateBrowserOnStartupForTests[] =
236     "create-browser-on-startup-for-tests";
237
238 #if defined(OS_ANDROID) || defined(OS_IOS)
239 // If set, the data reduction proxy will only be enabled if a request for this
240 // URL is successful.
241 const char kDataReductionProxyProbeURL[]    = "data-reduction-proxy-probe-url";
242 #endif
243
244 // Enables a frame context menu item that toggles the frame in and out of glass
245 // mode (Windows Vista and up only).
246 const char kDebugEnableFrameToggle[]        = "debug-enable-frame-toggle";
247
248 // Adds debugging entries such as Inspect Element to context menus of packed
249 // apps.
250 const char kDebugPackedApps[]               = "debug-packed-apps";
251
252 // Enables support to debug printing subsystem.
253 const char kDebugPrint[]                    = "debug-print";
254
255 // Triggers a plethora of diagnostic modes.
256 const char kDiagnostics[]                   = "diagnostics";
257
258 // Sets the output format for diagnostic modes enabled by diagnostics flag.
259 const char kDiagnosticsFormat[]             = "diagnostics-format";
260
261 // Tells the diagnostics mode to do the requested recovery step(s).
262 const char kDiagnosticsRecovery[]           = "diagnostics-recovery";
263
264 // Disables the experimental asynchronous DNS client.
265 const char kDisableAsyncDns[]               = "disable-async-dns";
266
267 // Disables CNAME lookup of the host when generating the Kerberos SPN for a
268 // Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN for more
269 // background.
270 const char kDisableAuthNegotiateCnameLookup[] =
271     "disable-auth-negotiate-cname-lookup";
272
273 // Disables the i18n address input widget for the requestAutocomplete() dialog.
274 const char kDisableAutofillAddressI18n[]    = "disable-autofill-address-i18n";
275
276 // Disables background mode (background apps will not keep chrome running in
277 // the background).
278 const char kDisableBackgroundMode[]         = "disable-background-mode";
279
280 // Disable several subsystems which run network requests in the background.
281 // This is for use when doing network performance testing to avoid noise in the
282 // measurements.
283 const char kDisableBackgroundNetworking[]   = "disable-background-networking";
284
285 // Disables the bundled PPAPI version of Flash.
286 const char kDisableBundledPpapiFlash[]      = "disable-bundled-ppapi-flash";
287
288 // Disables the bookmark autocomplete provider (BookmarkProvider).
289 const char kDisableBookmarkAutocompleteProvider[] =
290     "disable-bookmark-autocomplete-provider";
291
292 // Disables the client-side phishing detection feature. Note that even if
293 // client-side phishing detection is enabled, it will only be active if the
294 // user has opted in to UMA stats and SafeBrowsing is enabled in the
295 // preferences.
296 const char kDisableClientSidePhishingDetection[] =
297     "disable-client-side-phishing-detection";
298
299 // Disable default component extensions with background pages - useful for
300 // performance tests where these pages may interfere with perf results.
301 const char kDisableComponentExtensionsWithBackgroundPages[] =
302     "disable-component-extensions-with-background-pages";
303
304 const char kDisableComponentUpdate[]        = "disable-component-update";
305
306 // Disables establishing certificate revocation information by downloading a
307 // set of CRLs rather than performing on-line checks.
308 const char kDisableCRLSets[]                = "disable-crl-sets";
309
310 // Disables choosing an existing managed user profile during the managed
311 // user creation flow.
312 const char kDisableCreateExistingManagedUsers[] =
313     "disable-create-exsting-managed-users";
314
315 // Disables the custom JumpList on Windows 7.
316 const char kDisableCustomJumpList[]         = "disable-custom-jumplist";
317
318 // Disables installation of default apps on first run. This is used during
319 // automated testing.
320 const char kDisableDefaultApps[]            = "disable-default-apps";
321
322 // Disables device discovery.
323 const char kDisableDeviceDiscovery[]        = "disable-device-discovery";
324
325 // Disables device discovery notifications.
326 const char kDisableDeviceDiscoveryNotifications[] =
327     "disable-device-discovery-notifications";
328
329 // Disables retrieval of PAC URLs from DHCP as per the WPAD standard.
330 const char kDisableDhcpWpad[]               = "disable-dhcp-wpad";
331
332 // Disable extensions.
333 const char kDisableExtensions[]             = "disable-extensions";
334
335 // Disable checking for user opt-in for extensions that want to inject script
336 // into file URLs (ie, always allow it). This is used during automated testing.
337 const char kDisableExtensionsFileAccessCheck[] =
338     "disable-extensions-file-access-check";
339
340 // Disable the net::URLRequestThrottlerManager functionality for
341 // requests originating from extensions.
342 const char kDisableExtensionsHttpThrottling[] =
343     "disable-extensions-http-throttling";
344
345 // Disable mandatory enforcement of web_accessible_resources in extensions.
346 const char kDisableExtensionsResourceWhitelist[] =
347     "disable-extensions-resource-whitelist";
348
349 // Disables Google Now integration.
350 const char kDisableGoogleNowIntegration[] = "disable-google-now-integration";
351
352 // Disables improved SafeBrowsing download protection.
353 const char kDisableImprovedDownloadProtection[] =
354     "disable-improved-download-protection";
355
356 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging
357 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file
358 // bugs if something isn't working properly in the presence of IPv6. This flag
359 // can be overidden by the "enable-ipv6" flag.
360 const char kDisableIPv6[]                   = "disable-ipv6";
361
362 // Disables IP Pooling within the networks stack (SPDY only). When a connection
363 // is needed for a domain which shares an IP with an existing connection,
364 // attempt to use the existing connection.
365 const char kDisableIPPooling[]              = "disable-ip-pooling";
366
367 // Disable the behavior that the second click on a launcher item (the click when
368 // the item is already active) minimizes the item.
369 const char kDisableMinimizeOnSecondLauncherItemClick[] =
370     "disable-minimize-on-second-launcher-item-click";
371
372 // Disables the menu on the NTP for accessing sessions from other devices.
373 const char kDisableNTPOtherSessionsMenu[]   = "disable-ntp-other-sessions-menu";
374
375 // Disables omnibox auto-completion when IME is active.
376 const char kDisableOmniboxAutoCompletionForIme[] =
377     "disable-omnibox-auto-completion-for-ime";
378
379 // Disable the origin chip.
380 const char kDisableOriginChip[]             = "disable-origin-chip";
381
382 // Disable the origin chip in the location bar.
383 const char kDisableOriginChipV2[]             = "disable-origin-chip-v2";
384
385 // Disable the setting to prompt the user for their OS account password before
386 // revealing plaintext passwords in the password manager.
387 const char kDisablePasswordManagerReauthentication[] =
388     "disable-password-manager-reauthentication";
389
390 // Enables searching for people from the apps list search box.
391 const char kDisablePeopleSearch[]           = "disable-people-search";
392
393 // Disable pop-up blocking.
394 const char kDisablePopupBlocking[]          = "disable-popup-blocking";
395
396 // Disables the usage of Portable Native Client.
397 const char kDisablePnacl[]                  = "disable-pnacl";
398
399 // Disable speculative TCP/IP preconnection.
400 const char kDisablePreconnect[]             = "disable-preconnect";
401
402 // Disable prerendering based on local browsing history.
403 const char kDisablePrerenderLocalPredictor[] =
404     "disable-prerender-local-predictor";
405
406 // Disable Privet local printing.
407 const char kDisablePrivetLocalPrinting[]     = "disable-privet-local-printing";
408
409 // Normally when the user attempts to navigate to a page that was the result of
410 // a post we prompt to make sure they want to. This switch may be used to
411 // disable that check. This switch is used during automated testing.
412 const char kDisablePromptOnRepost[]         = "disable-prompt-on-repost";
413
414 // Disables support for the QUIC protocol.
415 const char kDisableQuic[]                   = "disable-quic";
416
417 // Disables support for the HTTPS over QUIC protocol.  This is a temporary
418 // testing flag.  This only has an effect if QUIC protocol is enabled.
419 const char kDisableQuicHttps[]              = "disable-quic-https";
420
421 // Disable use of Chromium's port selection for the ephemeral port via bind().
422 // This only has an effect if QUIC protocol is enabled.
423 const char kDisableQuicPortSelection[]      = "disable-quic-port_selection";
424
425 // Prevents the URLs of BackgroundContents from being remembered and
426 // re-launched when the browser restarts.
427 const char kDisableRestoreBackgroundContents[] =
428     "disable-restore-background-contents";
429
430 // Disables restoring session state (cookies, session storage, etc.) when
431 // restoring the browsing session.
432 const char kDisableRestoreSessionState[]    = "disable-restore-session-state";
433
434 // Disables throttling prints initiated by scripts.
435 const char kDisableScriptedPrintThrottling[] =
436     "disable-scripted-print-throttling";
437
438 // Disables the "search button in omnibox" experiment.
439 const char kDisableSearchButtonInOmnibox[]  =
440     "disable-search-button-in-omnibox";
441
442 // Disable SPDY/3.1. This is a temporary testing flag.
443 const char kDisableSpdy31[]                 = "disable-spdy31";
444
445 // Disables syncing browser data to a Google Account.
446 const char kDisableSync[]                   = "disable-sync";
447
448 // Disables syncing of app settings.
449 const char kDisableSyncAppSettings[]        = "disable-sync-app-settings";
450
451 // Disables syncing of apps.
452 const char kDisableSyncApps[]               = "disable-sync-apps";
453
454 // Disables syncing of autofill.
455 const char kDisableSyncAutofill[]           = "disable-sync-autofill";
456
457 // Disables syncing of autofill Profile.
458 const char kDisableSyncAutofillProfile[]    = "disable-sync-autofill-profile";
459
460 // Disables syncing of bookmarks.
461 const char kDisableSyncBookmarks[]          = "disable-sync-bookmarks";
462
463 // Disables syncing of dictionary.
464 const char kDisableSyncDictionary[]         = "disable-sync-dictionary";
465
466 // Disables syncing extension settings.
467 const char kDisableSyncExtensionSettings[]  = "disable-sync-extension-settings";
468
469 // Disables syncing of extensions.
470 const char kDisableSyncExtensions[]         = "disable-sync-extensions";
471
472 // Disables syncing of favicons.
473 const char kDisableSyncFavicons[]           = "disable-sync-favicons";
474
475 // Disables syncing browser passwords.
476 const char kDisableSyncPasswords[]          = "disable-sync-passwords";
477
478 // Disables syncing of preferences.
479 const char kDisableSyncPreferences[]        = "disable-sync-preferences";
480
481 // Disables syncing of priority preferences.
482 const char kDisableSyncPriorityPreferences[] =
483     "disable-sync-priority-preferences";
484
485 // Disable syncing custom search engines.
486 const char kDisableSyncSearchEngines[]      = "disable-sync-search-engines";
487
488 // Disable synced notifications.
489 const char kDisableSyncSyncedNotifications[] =
490     "disable-sync-synced-notifications";
491
492 // Disables syncing browser sessions. Will override kEnableSyncTabs.
493 const char kDisableSyncTabs[]               = "disable-sync-tabs";
494
495 // Disables syncing of themes.
496 const char kDisableSyncThemes[]             = "disable-sync-themes";
497
498 // Disables syncing browser typed urls.
499 const char kDisableSyncTypedUrls[]          = "disable-sync-typed-urls";
500
501 // Disables TLS Channel ID extension.
502 const char kDisableTLSChannelID[]           = "disable-tls-channel-id";
503
504 // Disables some security measures when accessing user media devices like
505 // webcams and microphones, especially on non-HTTPS pages.
506 const char kDisableUserMediaSecurity[]      = "disable-user-media-security";
507
508 // Disables the backend service for web resources.
509 const char kDisableWebResources[]           = "disable-web-resources";
510
511 // Some tests seem to require the application to close when the last
512 // browser window is closed. Thus, we need a switch to force this behavior
513 // for ChromeOS Aura, disable "zero window mode".
514 // TODO(pkotwicz): Investigate if this bug can be removed.
515 // (http://crbug.com/119175)
516 const char kDisableZeroBrowsersOpenForTests[] =
517     "disable-zero-browsers-open-for-tests";
518
519 // Use a specific disk cache location, rather than one derived from the
520 // UserDatadir.
521 const char kDiskCacheDir[]                  = "disk-cache-dir";
522
523 // Forces the maximum disk space to be used by the disk cache, in bytes.
524 const char kDiskCacheSize[]                 = "disk-cache-size";
525
526 const char kDnsLogDetails[]                 = "dns-log-details";
527
528 // Disables prefetching of DNS information.
529 const char kDnsPrefetchDisable[]            = "dns-prefetch-disable";
530
531 // Requests that a running browser process dump its collected histograms to a
532 // given file. The file is overwritten if it exists.
533 const char kDumpBrowserHistograms[]         = "dump-browser-histograms";
534
535 // If set, Flash fullscreen widgets are embedded within the browser window and
536 // with the same UX as HTML5 fullscreen.
537 //
538 // TODO(miu): This feature is a work in-progress.  It should not be enabled by
539 // default until going through a formal UX review, and all comments/concerns on
540 // the crbug are addressed.  http://crbug.com/290403
541 const char kEmbedFlashFullscreen[] = "embed-flash-fullscreen";
542
543 // Enables the <adview> tag in packaged apps.
544 const char kEnableAdview[]                  = "enable-adview";
545
546 // If set, the app list will be enabled as if enabled from CWS.
547 const char kEnableAppList[]                 = "enable-app-list";
548
549 // Enables the <window-controls> tag in platform apps.
550 const char kEnableAppWindowControls[]       = "enable-app-window-controls";
551
552 // Show apps windows after the first paint. Windows will be shown significantly
553 // later for heavy apps loading resources synchronously but it will be
554 // insignificant for apps that load most of their resources asynchronously.
555 const char kEnableAppsShowOnFirstPaint[]    = "enable-apps-show-on-first-paint";
556
557 // Enables the experimental asynchronous DNS client.
558 const char kEnableAsyncDns[]                = "enable-async-dns";
559
560 // Enables the inclusion of non-standard ports when generating the Kerberos SPN
561 // in response to a Negotiate challenge. See
562 // HttpAuthHandlerNegotiate::CreateSPN for more background.
563 const char kEnableAuthNegotiatePort[]       = "enable-auth-negotiate-port";
564
565 // Enable using a public suffix based domain matching for autofill of passwords.
566 const char kEnablePasswordAutofillPublicSuffixDomainMatching[] =
567     "enable-password-autofill-public-suffix-domain-matching";
568
569 // Enables the pre- and auto-login features. When a user signs in to sync, the
570 // browser's cookie jar is pre-filled with GAIA cookies. When the user visits a
571 // GAIA login page, an info bar can help the user login.
572 const char kEnableAutologin[]               = "enable-autologin";
573
574 // Enables the benchmarking extensions.
575 const char kEnableBenchmarking[]            = "enable-benchmarking";
576
577 // Enables client hints, which adds hints about browser state to HTTP requests.
578 const char kEnableClientHints[]             = "enable-client-hints";
579
580 // Enables the multi-level undo system for bookmarks.
581 const char kEnableBookmarkUndo[]            = "enable-bookmark-undo";
582
583 // This applies only when the process type is "service". Enables the Cloud
584 // Print Proxy component within the service process.
585 const char kEnableCloudPrintProxy[]         = "enable-cloud-print-proxy";
586
587 // Enables fetching the user's contacts from Google and showing them in the
588 // Chrome OS apps list.
589 const char kEnableContacts[]                = "enable-contacts";
590
591 // If true devtools experimental settings are enabled.
592 const char kEnableDevToolsExperiments[]     = "enable-devtools-experiments";
593
594 // Enable device discovery notifications.
595 const char kEnableDeviceDiscoveryNotifications[] =
596     "enable-device-discovery-notifications";
597
598 // Enables the DOM distiller.
599 const char kEnableDomDistiller[]               = "enable-dom-distiller";
600
601 // Enable Enhanced Bookmarks.
602 const char kEnableEnhancedBookmarks[] = "enable-enhanced-bookmarks";
603
604 // Enables experimentation with ephemeral apps, which are launched without
605 // installing in Chrome.
606 const char kEnableEphemeralApps[]           = "enable-ephemeral-apps";
607
608 // Enables logging for extension activity.
609 const char kEnableExtensionActivityLogging[] =
610     "enable-extension-activity-logging";
611
612 const char kEnableExtensionActivityLogTesting[] =
613     "enable-extension-activity-log-testing";
614
615 // Enable the fast unload controller, which speeds up tab/window close by
616 // running a tab's onunload js handler independently of the GUI -
617 // crbug.com/142458 .
618 const char kEnableFastUnload[]         = "enable-fast-unload";
619
620 // Enables Google Now integration.
621 const char kEnableGoogleNowIntegration[]    = "enable-google-now-integration";
622
623 // Enable HTTP/2 draft 04. This is a temporary testing flag.
624 const char kEnableHttp2Draft04[]            = "enable-http2-draft-04";
625
626 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/
627 // settings page.
628 const char kEnableWebBasedSignin[]            = "enable-web-based-signin";
629
630 // Enables IPv6 support, even if probes suggest that it may not be fully
631 // supported. Some probes may require internet connections, and this flag will
632 // allow support independent of application testing. This flag overrides
633 // "disable-ipv6" which appears elswhere in this file.
634 const char kEnableIPv6[]                    = "enable-ipv6";
635
636 // Enables IP Pooling within the networks stack (SPDY only). When a connection
637 // is needed for a domain which shares an IP with an existing connection,
638 // attempt to use the existing connection.
639 const char kEnableIPPooling[]               = "enable-ip-pooling";
640
641 // Enables experimentation with launching ephemeral apps via hyperlinks.
642 const char kEnableLinkableEphemeralApps[]   = "enable-linkable-ephemeral-apps";
643
644 // Enable always using the local NTP for the first NTP load of a new window.
645 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp";
646
647 // Make the values returned to window.performance.memory more granular and more
648 // up to date. Without this flag, the memory information is still available, but
649 // it is bucketized and updated less frequently.
650 const char kEnableMemoryInfo[]              = "enable-memory-info";
651
652 // Enables metrics recording and reporting in the browser startup sequence, as
653 // if this was an official Chrome build where the user allowed metrics
654 // reporting. This is used for testing only.
655 const char kEnableMetricsReportingForTesting[] =
656     "enable-metrics-reporting-for-testing";
657
658 // Runs the Native Client inside the renderer process and enables GPU plugin
659 // (internally adds lEnableGpuPlugin to the command line).
660 const char kEnableNaCl[]                    = "enable-nacl";
661
662 // Enables the network-related benchmarking extensions.
663 const char kEnableNetBenchmarking[]         = "enable-net-benchmarking";
664
665 // Enables |NetworkTimeService| to convert local time to network time.
666 const char kEnableNetworkTime[]             = "enable-network-time";
667
668 // Enables NPN with HTTP. It means NPN is enabled but SPDY won't be used.
669 // HTTP is still used for all requests.
670 const char kEnableNpnHttpOnly[]             = "enable-npn-http";
671
672 // Enable auto-reload of error pages if offline.
673 const char kEnableOfflineAutoReload[]       = "enable-offline-auto-reload";
674
675 // Enables omnibox auto-completion when IME is active.  The auto-completion for
676 // IME is shown in the same style as the normal(non-IME) auto-completion.
677 const char kEnableOmniboxAutoCompletionForIme[] =
678     "enable-omnibox-auto-completion-for-ime";
679
680 // Controls which branch of the origin chip experiment is enabled. The first
681 // flag (enable-origin-chip) is equivalent to the third
682 // (enable-origin-chip-trailing-location-bar) and exists for backwards
683 // compatability with an earlier version of the experiment.
684 //
685 // We're using independent flags here (as opposed to a common flag with
686 // different values) to be able to enable/disable the entire experience
687 // associated with this feature server-side from the FieldTrial (the complete
688 // experience includes other flag changes as well). It is not currently possible
689 // to do that with "flag=value" flags.
690 const char kEnableOriginChip[] = "enable-origin-chip";
691 const char kEnableOriginChipLeadingLocationBar[] =
692     "enable-origin-chip-leading-location-bar";
693 const char kEnableOriginChipTrailingLocationBar[] =
694     "enable-origin-chip-trailing-location-bar";
695 const char kEnableOriginChipLeadingMenuButton[] =
696     "enable-origin-chip-leading-menu-button";
697
698 // Controls which branch of the origin chip in location bar experiment is
699 // enabled.
700 //
701 // We're using independent flags here (as opposed to a common flag with
702 // different values) to be able to enable/disable the entire experience
703 // associated with this feature server-side from the FieldTrial (the complete
704 // experience includes other flag changes as well). It is not currently possible
705 // to do that with "flag=value" flags.
706 const char kEnableOriginChipV2[] = "enable-origin-chip-v2";
707 const char kEnableOriginChipV2HideOnMouseRelease[] =
708     "enable-origin-chip-v2-hide-on-mouse-release";
709 const char kEnableOriginChipV2HideOnUserInput[] =
710     "enable-origin-chip-v2-hide-on-user-input";
711
712 // Enables panels (always on-top docked pop-up windows).
713 const char kEnablePanels[]                  = "enable-panels";
714
715 // Enable Privet storage.
716 const char kEnablePrivetStorage[]     = "enable-privet-storage";
717
718 // Enables tracking of tasks in profiler for viewing via about:profiler.
719 // To predominantly disable tracking (profiling), use the command line switch:
720 // --enable-profiling=0
721 // Some tracking will still take place at startup, but it will be turned off
722 // during chrome_browser_main.
723 const char kEnableProfiling[]               = "enable-profiling";
724
725 // Enables query in the omnibox.
726 const char kEnableQueryExtraction[]         = "enable-query-extraction";
727
728 // Enables support for the QUIC protocol.  This is a temporary testing flag.
729 const char kEnableQuic[]                    = "enable-quic";
730
731 // Enables support for the HTTPS over QUIC protocol.  This is a temporary
732 // testing flag.  This only has an effect if QUIC protocol is enabled.
733 const char kEnableQuicHttps[]               = "enable-quic-https";
734
735 // Enable use of Chromium's port selection for the ephemeral port via bind().
736 // This only has an effect if QUIC protocol is enabled.
737 const char kEnableQuicPortSelection[]       = "enable-quic-port-selection";
738
739 // Enables save password prompt bubble.
740 const char kEnableSavePasswordBubble[]      = "enable-save-password-bubble";
741
742 // Controls the support for SDCH filtering (dictionary based expansion of
743 // content). By default SDCH filtering is enabled. To disable SDCH filtering,
744 // use "--enable-sdch=0" as command line argument. SDCH is currently only
745 // supported server-side for searches on google.com.
746 const char kEnableSdch[]                    = "enable-sdch";
747
748 // Controls which branch of the "search button in omnibox" experiment is
749 // enabled.
750 //
751 // We're using independent flags here (as opposed to a common flag with
752 // different values) to be able to enable/disable the entire experience
753 // associated with this feature server-side from the FieldTrial (the complete
754 // experience includes other flag changes as well). It is not currently possible
755 // to do that with "flag=value" flags.
756 const char kEnableSearchButtonInOmniboxAlways[] =
757     "enable-search-button-in-omnibox-always";
758 const char kEnableSearchButtonInOmniboxForStr[] =
759     "enable-search-button-in-omnibox-for-str";
760 const char kEnableSearchButtonInOmniboxForStrOrIip[] =
761     "enable-search-button-in-omnibox-for-str-or-iip";
762
763 // Certificate Transparency: Enable showing the SCT viewer when an SSL
764 // certificate is accompanied by, or contains, SCTs.
765 const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer";
766
767 // Enable SPDY/2. This is a temporary testing flag. See
768 // http://crbug.com/303957 .
769 const char kEnableSpdy2[]                   = "enable-spdy2";
770
771 // Enable SPDY/4 alpha 2. This is a temporary testing flag.
772 const char kEnableSpdy4a2[]                 = "enable-spdy4a2";
773
774 // Enables auto correction for misspelled words.
775 const char kEnableSpellingAutoCorrect[]     = "enable-spelling-auto-correct";
776
777 // Enables participation in the field trial for user feedback to spelling
778 // service.
779 const char kEnableSpellingFeedbackFieldTrial[] =
780     "enable-spelling-feedback-field-trial";
781
782 // Enables the stacked tabstrip.
783 const char kEnableStackedTabStrip[]         = "enable-stacked-tab-strip";
784
785 // Enables an experimental hosted app experience.
786 const char kEnableStreamlinedHostedApps[]   = "enable-streamlined-hosted-apps";
787
788 // Enables experimental suggestions pane in New Tab page.
789 const char kEnableSuggestionsTabPage[]      = "enable-suggestions-ntp";
790
791 // Enables synced notifications.
792 const char kEnableSyncSyncedNotifications[] =
793     "enable-sync-synced-notifications";
794
795 // Disables sync/API based session sync implementation (back to legacy).
796 const char kDisableSyncSessionsV2[] = "disable-sync-sessions-v2";
797
798 // Enables syncing of the app list.
799 const char kEnableSyncAppList[]             = "enable-sync-app-list";
800
801 // Enables synced articles.
802 const char kEnableSyncArticles[]            = "enable-sync-articles";
803
804 // Enables context menu for selecting groups of tabs.
805 const char kEnableTabGroupsContextMenu[]    = "enable-tab-groups-context-menu";
806
807 // Enables fanciful thumbnail processing. Used with NTP for
808 // instant-extended-api, where thumbnails are generally smaller.
809 const char kEnableThumbnailRetargeting[]   = "enable-thumbnail-retargeting";
810
811 // Enables Translate experimental new UX which replaces the infobar.
812 const char kEnableTranslateNewUX[]         = "enable-translate-new-ux";
813
814 // Enables unrestricted SSL 3.0 fallback.
815 // With this switch, SSL 3.0 fallback will be enabled for all sites.
816 // Without this switch, SSL 3.0 fallback will be disabled for a site
817 // pinned to the Google pin list (indicating that it is a Google site).
818 const char kEnableUnrestrictedSSL3Fallback[] =
819     "enable-unrestricted-ssl3-fallback";
820
821 // Enables Alternate-Protocol when the port is user controlled (> 1024).
822 const char kEnableUserAlternateProtocolPorts[] =
823     "enable-user-controlled-alternate-protocol-ports";
824
825 // Spawns threads to watch for excessive delays in specified message loops.
826 // User should set breakpoints on Alarm() to examine problematic thread.
827 //
828 // Usage:   -enable-watchdog=[ui][io]
829 //
830 // Order of the listed sub-arguments does not matter.
831 const char kEnableWatchdog[]                = "enable-watchdog";
832
833 // Uses WebSocket over SPDY.
834 const char kEnableWebSocketOverSpdy[]       = "enable-websocket-over-spdy";
835
836 // Explicitly allows additional ports using a comma-separated list of port
837 // numbers.
838 const char kExplicitlyAllowedPorts[]        = "explicitly-allowed-ports";
839
840 // Turns on extension install verification if it would not otherwise have been
841 // turned on.
842 const char kExtensionsInstallVerification[] = "extensions-install-verification";
843
844 // Specifies a comma-separated list of extension ids that should be forced to
845 // be treated as not from the webstore when doing install verification.
846 const char kExtensionsNotWebstore[] = "extensions-not-webstore";
847
848 // Frequency in seconds for Extensions auto-update.
849 const char kExtensionsUpdateFrequency[]     = "extensions-update-frequency";
850
851 // Additional query params to insert in the search and instant URLs.  Useful for
852 // testing.
853 const char kExtraSearchQueryParams[]        = "extra-search-query-params";
854
855 // Fakes the channel of the browser for purposes of Variations filtering. This
856 // is to be used for testing only. Possible values are "stable", "beta", "dev"
857 // and "canary". Note that this only applies if the browser's reported channel
858 // is UNKNOWN.
859 const char kFakeVariationsChannel[]         = "fake-variations-channel";
860
861 // If this flag is present then this command line is being delegated to an
862 // already running chrome process via the fast path, ie: before chrome.dll is
863 // loaded. It is useful to tell the difference for tracking purposes.
864 const char kFastStart[]            = "fast-start";
865
866 // These two flags are added around the switches about:flags adds to the
867 // command line. This is useful to see which switches were added by about:flags
868 // on about:version. They don't have any effect.
869 const char kFlagSwitchesBegin[]             = "flag-switches-begin";
870 const char kFlagSwitchesEnd[]               = "flag-switches-end";
871
872 // Alternative feedback server to use when submitting user feedback
873 const char kFeedbackServer[]                = "feedback-server";
874
875 // The file descriptor limit is set to the value of this switch, subject to the
876 // OS hard limits. Useful for testing that file descriptor exhaustion is
877 // handled gracefully.
878 const char kFileDescriptorLimit[]           = "file-descriptor-limit";
879
880 // Forces application mode. This hides certain system UI elements and forces
881 // the app to be installed if it hasn't been already.
882 const char kForceAppMode[]                  = "force-app-mode";
883
884 // Displays the First Run experience when the browser is started, regardless of
885 // whether or not it's actually the First Run (this overrides kNoFirstRun and
886 // kCancelFirstRun).
887 const char kForceFirstRun[]                 = "force-first-run";
888
889 // Forces additional Chrome Variation Ids that will be sent in
890 // X-Client-Data header, specified as a 64-bit encoded list of numeric
891 // experiment ids.
892 const char kForceVariationIds[]             = "force-variation-ids";
893
894 // Tries to load cloud policy for every signed in user, regardless of whether
895 // they are a dasher user or not. Used to allow any GAIA account to be used for
896 // testing the cloud policy framework.
897 const char kForceLoadCloudPolicy[]          = "force-load-cloud-policy";
898
899 // Specifies an alternate URL to use for speaking to Google. Useful for testing.
900 const char kGoogleBaseURL[]                 = "google-base-url";
901
902 // Enables using GAIA information to populate profile name and icon.
903 const char kGoogleProfileInfo[]             = "google-profile-info";
904
905 // Specifies an alternate URL to use for retrieving the search domain for
906 // Google. Useful for testing.
907 const char kGoogleSearchDomainCheckURL[]    = "google-search-domain-check-url";
908
909 // Specifies a custom name for the GSSAPI library to load.
910 const char kGSSAPILibraryName[]             = "gssapi-library-name";
911
912 // These flags show the man page on Linux. They are equivalent to each
913 // other.
914 const char kHelp[]                          = "help";
915 const char kHelpShort[]                     = "h";
916
917 // Makes Windows happy by allowing it to show "Enable access to this program"
918 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only
919 // shows an error box because the only way to hide Chrome is by uninstalling
920 // it.
921 const char kHideIcons[]                     = "hide-icons";
922
923 // Disables full history sync.
924 const char kHistoryDisableFullHistorySync[] = "disable-full-history-sync";
925
926 // Enables grouping websites by domain and filtering them by period.
927 const char kHistoryEnableGroupByDomain[]    = "enable-grouped-history";
928
929 // Specifies which page will be displayed in newly-opened tabs. We need this
930 // for testing purposes so that the UI tests don't depend on what comes up for
931 // http://google.com.
932 const char kHomePage[]                      = "homepage";
933
934 // Comma-separated list of rules that control how hostnames are mapped.
935 //
936 // For example:
937 //    "MAP * 127.0.0.1" --> Forces all hostnames to be mapped to 127.0.0.1
938 //    "MAP *.google.com proxy" --> Forces all google.com subdomains to be
939 //                                 resolved to "proxy".
940 //    "MAP test.com [::1]:77 --> Forces "test.com" to resolve to IPv6 loopback.
941 //                               Will also force the port of the resulting
942 //                               socket address to be 77.
943 //    "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz",
944 //                                            except for "www.google.com".
945 //
946 // These mappings apply to the endpoint host in a net::URLRequest (the TCP
947 // connect and host resolver in a direct connection, and the CONNECT in an http
948 // proxy connection, and the endpoint host in a SOCKS proxy connection).
949 const char kHostRules[]                     = "host-rules";
950
951 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow
952 // (not counting backup attempts which would also consume threads).
953 // --host-resolver-retry-attempts must be set to zero for this to be exact.
954 const char kHostResolverParallelism[]       = "host-resolver-parallelism";
955
956 // The maximum number of retry attempts to resolve the host. Set this to zero
957 // to disable host resolver retry attempts.
958 const char kHostResolverRetryAttempts[]     = "host-resolver-retry-attempts";
959
960 // Causes net::URLFetchers to ignore requests for SSL client certificates,
961 // causing them to attempt an unauthenticated SSL/TLS session. This is intended
962 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix,
963 // kSyncServiceURL, etc)
964 const char kIgnoreUrlFetcherCertRequests[]  =
965     "ignore-urlfetcher-cert-requests";
966
967 // Causes the browser to launch directly in incognito mode.
968 const char kIncognito[]                     = "incognito";
969
970 // Causes Chrome to attempt to get metadata from the webstore for the
971 // app/extension ID given, and then prompt the user to download and install it.
972 const char kInstallFromWebstore[]           = "install-from-webstore";
973
974 // Marks a renderer as an Instant process.
975 const char kInstantProcess[]                = "instant-process";
976
977 // Specifies the testcase used by the IPC fuzzer.
978 const char kIpcFuzzerTestcase[]             = "ipc-fuzzer-testcase";
979
980 // Used for testing - keeps browser alive after last browser window closes.
981 const char kKeepAliveForTest[]              = "keep-alive-for-test";
982
983 // Enable Kiosk mode.
984 const char kKioskMode[]                     = "kiosk";
985
986 // Print automatically in kiosk mode. |kKioskMode| must be set as well.
987 // See http://crbug.com/31395.
988 const char kKioskModePrinting[]             = "kiosk-printing";
989
990 // Causes Chrome to attempt to get metadata from the webstore for the
991 // given item, and then prompt the user to download and install it.
992 const char kLimitedInstallFromWebstore[]    = "limited-install-from-webstore";
993
994 // Comma-separated list of directories with component extensions to load.
995 const char kLoadComponentExtension[]        = "load-component-extension";
996
997 // Loads an extension from the specified directory.
998 const char kLoadExtension[]                 = "load-extension";
999
1000 // Makes Chrome default browser
1001 const char kMakeDefaultBrowser[]            = "make-default-browser";
1002
1003 // Sets the managed user ID for any loaded or newly created profile to the
1004 // given value. Pass an empty string to mark the profile as non-supervised.
1005 // Used for testing.
1006 const char kManagedUserId[]                 = "managed-user-id";
1007
1008 // Used to authenticate requests to the Sync service for managed users. Setting
1009 // this switch also causes Sync to be set up for a managed user.
1010 const char kManagedUserSyncToken[]          = "managed-user-sync-token";
1011
1012 // Use to opt-in user into Finch experiment group.
1013 const char kManualEnhancedBookmarks[] = "manual-enhanced-bookmarks";
1014
1015 // Forces the maximum disk space to be used by the media cache, in bytes.
1016 const char kMediaCacheSize[]                = "media-cache-size";
1017
1018 // Enables dynamic loading of the Memory Profiler DLL, which will trace all
1019 // memory allocations during the run.
1020 const char kMemoryProfiling[]               = "memory-profile";
1021
1022 // Enables histograming of tasks served by MessageLoop. See
1023 // about:histograms/Loop for results, which show frequency of messages on each
1024 // thread, including APC count, object signalling count, etc.
1025 const char kMessageLoopHistogrammer[]       = "message-loop-histogrammer";
1026
1027 // Enables the recording of metrics reports but disables reporting. In contrast
1028 // to kDisableMetrics, this executes all the code that a normal client would
1029 // use for reporting, except the report is dropped rather than sent to the
1030 // server. This is useful for finding issues in the metrics code during UI and
1031 // performance tests.
1032 const char kMetricsRecordingOnly[]          = "metrics-recording-only";
1033
1034 // Enables multiprofile Chrome.
1035 const char kMultiProfiles[]                 = "multi-profiles";
1036
1037 // List of native messaging hosts outside of the default location. Used for
1038 // tests. The value must be comma-separate lists of key-value pairs separated
1039 // equal sign. E.g. "host1=/path/to/host1/manifest.json,host2=/path/host2.json".
1040 const char kNativeMessagingHosts[]          = "native-messaging-hosts";
1041
1042 // Sets the base logging level for the net log. Log 0 logs the most data.
1043 // Intended primarily for use with --log-net-log.
1044 const char kNetLogLevel[]                   = "net-log-level";
1045
1046 // Use new profile management system, including profile sign-out and new
1047 // choosers.
1048 const char kNewProfileManagement[]          = "new-profile-management";
1049
1050 // Disables the default browser check. Useful for UI/browser tests where we
1051 // want to avoid having the default browser info-bar displayed.
1052 const char kNoDefaultBrowserCheck[]         = "no-default-browser-check";
1053
1054 // By default, an https page can load images, fonts or frames from an http
1055 // page. This switch overrides this to block this lesser mixed-content problem.
1056 const char kNoDisplayingInsecureContent[]   = "no-displaying-insecure-content";
1057
1058 // Don't record/playback events when using record & playback.
1059 const char kNoEvents[]                      = "no-events";
1060
1061 // Disables all experiments set on about:flags. Does not disable about:flags
1062 // itself. Useful if an experiment makes chrome crash at startup: One can start
1063 // chrome with --no-experiments, disable the problematic lab at about:flags and
1064 // then restart chrome without this switch again.
1065 const char kNoExperiments[]                 = "no-experiments";
1066
1067 // Skip First Run tasks, whether or not it's actually the First Run. Overridden
1068 // by kForceFirstRun. This does not drop the First Run sentinel and thus doesn't
1069 // prevent first run from occuring the next time chrome is launched without this
1070 // flag (see kCancelFirstRun for that).
1071 const char kNoFirstRun[]                    = "no-first-run";
1072
1073 // Support a separate switch that enables the v8 playback extension.
1074 // The extension causes javascript calls to Date.now() and Math.random()
1075 // to return consistent values, such that subsequent loads of the same
1076 // page will result in consistent js-generated data and XHR requests.
1077 // Pages may still be able to generate inconsistent data from plugins.
1078 const char kNoJsRandomness[]                = "no-js-randomness";
1079
1080 // Whether or not the browser should warn if the profile is on a network share.
1081 // This flag is only relevant for Windows currently.
1082 const char kNoNetworkProfileWarning[]       = "no-network-profile-warning";
1083
1084 // Don't send hyperlink auditing pings
1085 const char kNoPings[]                       = "no-pings";
1086
1087 // Don't use a proxy server, always make direct connections. Overrides any
1088 // other proxy server flags that are passed.
1089 const char kNoProxyServer[]                 = "no-proxy-server";
1090
1091 // Disables the service process from adding itself as an autorun process. This
1092 // does not delete existing autorun registrations, it just prevents the service
1093 // from registering a new one.
1094 const char kNoServiceAutorun[]              = "no-service-autorun";
1095
1096 // Does not automatically open a browser window on startup (used when
1097 // launching Chrome for the purpose of hosting background apps).
1098 const char kNoStartupWindow[]               = "no-startup-window";
1099
1100 // Disables checking whether we received an acknowledgment when registering
1101 // a supervised user. Also disables the timeout during registration that waits
1102 // for the ack. Useful when debugging against a server that does not
1103 // support notifications.
1104 const char kNoManagedUserAcknowledgmentCheck[]  =
1105     "no-managed-user-acknowledgment-check";
1106
1107 // Specifies the maximum number of threads to use for running the Proxy
1108 // Autoconfig (PAC) script.
1109 const char kNumPacThreads[]                 = "num-pac-threads";
1110
1111 // When the option to block third-party cookies is enabled, only block
1112 // third-party cookies from being set.
1113 const char kOnlyBlockSettingThirdPartyCookies[] =
1114     "only-block-setting-third-party-cookies";
1115
1116 // Launches URL in new browser window.
1117 const char kOpenInNewWindow[]               = "new-window";
1118
1119 // Simulates an organic Chrome install.
1120 const char kOrganicInstall[]                = "organic";
1121
1122 // Force use of QUIC for requests to the specified origin.
1123 const char kOriginToForceQuicOn[]           = "origin-to-force-quic-on";
1124
1125 // The time that a new chrome process which is delegating to an already running
1126 // chrome process started. (See ProcessSingleton for more details.)
1127 const char kOriginalProcessStartTime[]      = "original-process-start-time";
1128
1129 // Enable the out of process PDF plugin.
1130 const char kOutOfProcessPdf[] = "out-of-process-pdf";
1131
1132 // Packages an extension to a .crx installable file from a given directory.
1133 const char kPackExtension[]                 = "pack-extension";
1134
1135 // Optional PEM private key to use in signing packaged .crx.
1136 const char kPackExtensionKey[]              = "pack-extension-key";
1137
1138 // Specifies the path to the user data folder for the parent profile.
1139 const char kParentProfile[]                 = "parent-profile";
1140
1141 // Launches PerformanceMonitor at startup, which will gather statistics about
1142 // Chrome's CPU and memory usage, page load times, startup times, and network
1143 // usage, and will also store information about events which may be of interest,
1144 // such as extension-related occurrences and crashes. Optionally, this may be
1145 // run with an integer value representing the interval between the timed
1146 // metric gatherings, measured in seconds (if invalid or not provided, the
1147 // default interval is used).
1148 const char kPerformanceMonitorGathering[]   = "performance-monitor-gathering";
1149
1150 // Read previously recorded data from the cache. Only cached data is read.
1151 // See kRecordMode.
1152 const char kPlaybackMode[]                  = "playback-mode";
1153
1154 // Overrides the path to the location that PNaCl is installed.
1155 const char kPnaclDir[]                      = "pnacl-dir";
1156
1157 // Use the PPAPI (Pepper) Flash found at the given path.
1158 const char kPpapiFlashPath[]                = "ppapi-flash-path";
1159
1160 // Report the given version for the PPAPI (Pepper) Flash. The version should be
1161 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
1162 // defaults to "10.2.999.999".
1163 const char kPpapiFlashVersion[]             = "ppapi-flash-version";
1164
1165 // Triggers prerendering of search base page to prefetch results for the typed
1166 // omnibox query. Only has an effect when prerender is enabled.
1167 const char kPrefetchSearchResults[]         = "prefetch-search-results";
1168
1169 // Triggers prerendering of pages from suggestions in the omnibox. Only has an
1170 // effect when Instant is either disabled or restricted to search, and when
1171 // prerender is enabled.
1172 const char kPrerenderFromOmnibox[]          = "prerender-from-omnibox";
1173 // These are the values the kPrerenderFromOmnibox switch may have, as in
1174 // "--prerender-from-omnibox=auto". auto: Allow field trial selection.
1175 const char kPrerenderFromOmniboxSwitchValueAuto[] = "auto";
1176 //   disabled: No prerendering.
1177 const char kPrerenderFromOmniboxSwitchValueDisabled[] = "disabled";
1178 //   enabled: Guaranteed prerendering.
1179 const char kPrerenderFromOmniboxSwitchValueEnabled[] = "enabled";
1180 // Controls speculative prerendering of pages, and content prefetching. Both
1181 // are dispatched from <link rel=prefetch href=...> elements.
1182 const char kPrerenderMode[]                 = "prerender";
1183 // These are the values the kPrerenderMode switch may have, as in
1184 // "--prerender=auto".
1185 //   auto: Allow field trial selection for prerender.
1186 const char kPrerenderModeSwitchValueAuto[]  = "auto";
1187 //   disabled: No prerendering.
1188 const char kPrerenderModeSwitchValueDisabled[] = "disabled";
1189 //   enabled: Prerendering.
1190 const char kPrerenderModeSwitchValueEnabled[] = "enabled";
1191
1192 #if defined(OS_WIN)
1193 // Enable conversion from vector to raster for any page.
1194 const char kPrintRaster[]                   = "print-raster";
1195 #endif
1196
1197 // Use IPv6 only for privet HTTP.
1198 const char kPrivetIPv6Only[]                   = "privet-ipv6-only";
1199
1200 // Outputs the product version information and quit. Used as an internal api to
1201 // detect the installed version of Chrome on Linux.
1202 const char kProductVersion[]                = "product-version";
1203
1204 // Selects directory of profile to associate with the first browser launched.
1205 const char kProfileDirectory[]              = "profile-directory";
1206
1207 // Starts the sampling based profiler for the browser process at startup. This
1208 // will only work if chrome has been built with the gyp variable profiling=1.
1209 // The output will go to the value of kProfilingFile.
1210 const char kProfilingAtStart[]              = "profiling-at-start";
1211
1212 // Specifies a location for profiling output. This will only work if chrome has
1213 // been built with the gyp variable profiling=1.
1214 //
1215 //   {pid} if present will be replaced by the pid of the process.
1216 //   {count} if present will be incremented each time a profile is generated
1217 //           for this process.
1218 // The default is chrome-profile-{pid}.
1219 const char kProfilingFile[]                 = "profiling-file";
1220
1221 // Specifies a path for the output of task-level profiling which can be loaded
1222 // and viewed in about:profiler.
1223 const char kProfilingOutputFile[]           = "profiling-output-file";
1224
1225 // Controls whether profile data is periodically flushed to a file. Normally
1226 // the data gets written on exit but cases exist where chrome doesn't exit
1227 // cleanly (especially when using single-process). A time in seconds can be
1228 // specified.
1229 const char kProfilingFlush[]                = "profiling-flush";
1230
1231 // Specifies a custom URL for fetching NTP promo data.
1232 const char kPromoServerURL[]                = "promo-server-url";
1233
1234 // Forces proxy auto-detection.
1235 const char kProxyAutoDetect[]               = "proxy-auto-detect";
1236
1237 // Specifies a list of hosts for whom we bypass proxy settings and use direct
1238 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also
1239 // specified. This is a comma-separated list of bypass rules. See:
1240 // "net/proxy/proxy_bypass_rules.h" for the format of these rules.
1241 const char kProxyBypassList[]               = "proxy-bypass-list";
1242
1243 // Uses the pac script at the given URL
1244 const char kProxyPacUrl[]                   = "proxy-pac-url";
1245
1246 // Uses a specified proxy server, overrides system settings. This switch only
1247 // affects HTTP and HTTPS requests.
1248 const char kProxyServer[]                   = "proxy-server";
1249
1250 // Adds a "Purge memory" button to the Task Manager, which tries to dump as
1251 // much memory as possible. This is mostly useful for testing how well the
1252 // MemoryPurger functionality works.
1253 //
1254 // NOTE: This is only implemented for Views.
1255 const char kPurgeMemoryButton[]             = "purge-memory-button";
1256
1257 // Specifies the maximum length for a QUIC packet.
1258 const char kQuicMaxPacketLength[]           = "quic-max-packet-length";
1259
1260 // Specifies the version of QUIC to use.
1261 const char kQuicVersion[]                   = "quic-version";
1262
1263 // Chrome supports a playback and record mode.  Record mode saves *everything*
1264 // to the cache.  Playback mode reads data exclusively from the cache.  This
1265 // allows us to record a session into the cache and then replay it at will.
1266 // See also kPlaybackMode.
1267 const char kRecordMode[]                    = "record-mode";
1268
1269 // Uses custom front-end URL for the remote debugging.
1270 const char kRemoteDebuggingFrontend[]       = "remote-debugging-frontend";
1271
1272 // Enables print preview in the renderer. This flag is generated internally by
1273 // Chrome and does nothing when directly passed to the browser.
1274 const char kRendererPrintPreview[]          = "renderer-print-preview";
1275
1276 // If set, the app list will forget it has been installed on startup. Note this
1277 // doesn't prevent the app list from running, it just makes Chrome think the app
1278 // list hasn't been enabled (as in kEnableAppList) yet.
1279 const char kResetAppListInstallState[]      = "reset-app-list-install-state";
1280
1281 // Forces a reset of the one-time-randomized FieldTrials on this client, also
1282 // known as the Chrome Variations state.
1283 const char kResetVariationState[]           = "reset-variation-state";
1284
1285 // Indicates the last session should be restored on startup. This overrides the
1286 // preferences value and is primarily intended for testing. The value of this
1287 // switch is the number of tabs to wait until loaded before 'load completed' is
1288 // sent to the ui_test.
1289 const char kRestoreLastSession[]            = "restore-last-session";
1290
1291 // Disable saving pages as HTML-only, disable saving pages as HTML Complete
1292 // (with a directory of sub-resources). Enable only saving pages as MHTML.
1293 // See http://crbug.com/120416 for how to remove this switch.
1294 const char kSavePageAsMHTML[]               = "save-page-as-mhtml";
1295
1296 // URL prefix used by safebrowsing to fetch hash, download data and report
1297 // malware.
1298 const char kSbURLPrefix[]                   = "safebrowsing-url-prefix";
1299
1300 // If present, safebrowsing only performs update when
1301 // SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called.
1302 // This is used for testing only.
1303 const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update";
1304
1305 // TODO(lzheng): Remove this flag once the feature works fine
1306 // (http://crbug.com/74848).
1307 //
1308 // Disables safebrowsing feature that checks download url and downloads
1309 // content's hash to make sure the content are not malicious.
1310 const char kSbDisableDownloadProtection[] =
1311     "safebrowsing-disable-download-protection";
1312
1313 // Disables safebrowsing feature that checks for blacklisted extensions.
1314 const char kSbDisableExtensionBlacklist[] =
1315     "safebrowsing-disable-extension-blacklist";
1316
1317 // Disables safebrowsing feature that provides a side-effect free whitelist.
1318 const char kSbDisableSideEffectFreeWhitelist[] =
1319     "safebrowsing-disable-side-effect-free-whitelist";
1320
1321 // URL to send safebrowsing download feedback reports to.
1322 const char kSbDownloadFeedbackURL[] = "safebrowsing-download-feedback-url";
1323
1324 // Causes the process to run as a service process.
1325 const char kServiceProcess[]                = "service";
1326
1327 // Sets a token in the token service, for testing.
1328 const char kSetToken[]                      = "set-token";
1329
1330 // If true the app list will be shown.
1331 const char kShowAppList[]                   = "show-app-list";
1332
1333 // If true the app list will show the start page webui.
1334 const char kShowAppListStartPage[]          = "show-app-list-start-page";
1335
1336 // See kHideIcons.
1337 const char kShowIcons[]                     = "show-icons";
1338
1339 // Marks a renderer as the signin process.
1340 const char kSigninProcess[]                 = "signin-process";
1341
1342 // Does not show an infobar when an extension attaches to a page using
1343 // chrome.debugger page. Required to attach to extension background pages.
1344 const char kSilentDebuggerExtensionAPI[]    = "silent-debugger-extension-api";
1345
1346 // Changes the DCHECKS to dump memory and continue instead of displaying error
1347 // dialog. This is valid only in Release mode when --enable-dcheck is
1348 // specified.
1349 const char kSilentDumpOnDCHECK[]            = "silent-dump-on-dcheck";
1350
1351 // Causes Chrome to launch without opening any windows by default. Useful if
1352 // one wishes to use Chrome as an ash server.
1353 const char kSilentLaunch[]                  = "silent-launch";
1354
1355 // Simulates an update being available.
1356 const char kSimulateUpgrade[]               = "simulate-upgrade";
1357
1358 // Simulates a critical update being available.
1359 const char kSimulateCriticalUpdate[]        = "simulate-critical-update";
1360
1361 // Simulates that current version is outdated.
1362 const char kSimulateOutdated[]               = "simulate-outdated";
1363
1364 // Replaces the buffered data source for <audio> and <video> with a simplified
1365 // resource loader that downloads the entire resource into memory.
1366
1367 // Second origin that can be used for the spdy proxy.
1368 const char kSpdyProxyAuthFallback[]         = "spdy-proxy-auth-fallback";
1369
1370 // Origin for which SpdyProxy authentication is supported.
1371 const char kSpdyProxyAuthOrigin[]           = "spdy-proxy-auth-origin";
1372
1373 // Authentication string for the data reduction proxy.
1374 const char kSpdyProxyAuthValue[]            = "spdy-proxy-auth-value";
1375
1376 // Origin for which dev version of SpdyProxy authentication is supported.
1377 const char kSpdyProxyDevAuthOrigin[]        = "spdy-proxy-dev-auth-origin";
1378
1379 // Specifies the URL where spelling service feedback data will be sent instead
1380 // of the default URL. This switch is for temporary testing only.
1381 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1382 // August 2013.
1383 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url";
1384
1385 // Specifies the number of seconds between sending batches of feedback to
1386 // spelling service. The default is 30 minutes. The mininum is 5 seconds. This
1387 // switch is for temporary testing only.
1388 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by
1389 // August 2013.
1390 const char kSpellingServiceFeedbackIntervalSeconds[] =
1391     "spelling-service-feedback-interval-seconds";
1392
1393 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1394 // "tls1.2").
1395 const char kSSLVersionMax[]                 = "ssl-version-max";
1396
1397 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or
1398 // "tls1.2").
1399 const char kSSLVersionMin[]                 = "ssl-version-min";
1400
1401 // Starts the browser maximized, regardless of any previous settings.
1402 const char kStartMaximized[]                = "start-maximized";
1403
1404 // Controls the width of time-of-day filters on the 'suggested' ntp page, in
1405 // minutes.
1406 const char kSuggestionNtpFilterWidth[]      = "suggestion-ntp-filter-width";
1407
1408 // Enables a normal distribution dropoff to the relevancy of visits with respect
1409 // to the time of day.
1410 const char kSuggestionNtpGaussianFilter[]   = "suggestion-ntp-gaussian-filter";
1411
1412 // Enables a linear dropoff to the relevancy of visits with respect to the time
1413 // of day.
1414 const char kSuggestionNtpLinearFilter[]     = "suggestion-ntp-linear-filter";
1415
1416 // Allows insecure XMPP connections for sync (for testing).
1417 const char kSyncAllowInsecureXmppConnection[] =
1418     "sync-allow-insecure-xmpp-connection";
1419
1420 // Invalidates any login info passed into sync's XMPP connection.
1421 const char kSyncInvalidateXmppLogin[]       = "sync-invalidate-xmpp-login";
1422
1423 // This flag causes sync to retry very quickly (see polling_constants.h) the
1424 // when it encounters an error, as the first step towards exponential backoff.
1425 const char kSyncShortInitialRetryOverride[] =
1426     "sync-short-initial-retry-override";
1427
1428 // Overrides the default host:port used for sync notifications.
1429 const char kSyncNotificationHostPort[]      = "sync-notification-host-port";
1430
1431 // Overrides the default server used for profile sync.
1432 const char kSyncServiceURL[]                = "sync-url";
1433
1434 // Makes the sync code to throw an unrecoverable error after initialization.
1435 // Useful for testing unrecoverable error scenarios.
1436 const char kSyncThrowUnrecoverableError[]   = "sync-throw-unrecoverable-error";
1437
1438
1439 // Tries to connect to XMPP using SSLTCP first (for testing).
1440 const char kSyncTrySsltcpFirstForXmpp[]     = "sync-try-ssltcp-first-for-xmpp";
1441
1442 // Enables deferring sync backend initialization until user initiated changes
1443 // occur.
1444 const char kSyncEnableDeferredStartup[]     = "sync-enable-deferred-startup";
1445
1446 // Enables feature to avoid unnecessary GetUpdate requests.
1447 const char kSyncEnableGetUpdateAvoidance[]   =
1448     "sync-enable-get-update-avoidance";
1449
1450 // Enables directory support for sync filesystem
1451 const char kSyncfsEnableDirectoryOperation[] =
1452     "enable-syncfs-directory-operation";
1453
1454 // Passes the name of the current running automated test to Chrome.
1455 const char kTestName[]                      = "test-name";
1456
1457 // Type of the current test harness ("browser" or "ui").
1458 const char kTestType[]                      = "test-type";
1459
1460 // Tells the app to listen for and broadcast testing-related messages on IPC
1461 // channel with the given ID.
1462 const char kTestingChannelID[]              = "testing-channel";
1463
1464 // Disables same-origin check on HTTP resources pushed via a SPDY proxy.
1465 // The value is the host:port of the trusted proxy.
1466 const char kTrustedSpdyProxy[]              = "trusted-spdy-proxy";
1467
1468 // Experimental. Shows a dialog asking the user to try chrome. This flag is to
1469 // be used only by the upgrade process.
1470 const char kTryChromeAgain[]                = "try-chrome-again";
1471
1472 // Uninstalls an extension with the specified extension id.
1473 const char kUninstallExtension[]            = "uninstall-extension";
1474
1475 // Runs un-installation steps that were done by chrome first-run.
1476 const char kUninstall[]                     = "uninstall";
1477
1478 // Overrides per-origin quota settings to unlimited storage for any
1479 // apps/origins.  This should be used only for testing purpose.
1480 const char kUnlimitedStorage[]              = "unlimited-storage";
1481
1482 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1483 // testing flag.
1484 const char kUseSpdy[]                       = "use-spdy";
1485
1486 // Disables use of the spelling web service and only provides suggestions.
1487 // This will only work if asynchronous spell checking is not disabled.
1488 const char kUseSpellingSuggestions[]        = "use-spelling-suggestions";
1489
1490 // Sets the maximum concurrent streams over a SPDY session.
1491 const char kMaxSpdyConcurrentStreams[]      = "max-spdy-concurrent-streams";
1492
1493 // Specifies the user data directory, which is where the browser will look for
1494 // all of its state.
1495 const char kUserDataDir[]                   = "user-data-dir";
1496
1497 // Examines a .crx for validity and prints the result.
1498 const char kValidateCrx[]                   = "validate-crx";
1499
1500 // Uses experimental simple cache backend if possible.
1501 const char kUseSimpleCacheBackend[]         = "use-simple-cache-backend";
1502
1503 // Specifies a custom URL for the server which reports variation data to the
1504 // client. Specifying this switch enables the Variations service on
1505 // unofficial builds. See variations_service.cc.
1506 const char kVariationsServerURL[]           = "variations-server-url";
1507
1508 // Prints version information and quits.
1509 const char kVersion[]                       = "version";
1510
1511 // Adds the given extension ID to all the permission whitelists.
1512 const char kWhitelistedExtensionID[]        = "whitelisted-extension-id";
1513
1514 // Specify the initial window position: --window-position=x,y
1515 const char kWindowPosition[]                = "window-position";
1516
1517 // Specify the initial window size: --window-size=w,h
1518 const char kWindowSize[]                    = "window-size";
1519
1520 // Uses WinHTTP to fetch and evaluate PAC scripts. Otherwise the default is to
1521 // use Chromium's network stack to fetch, and V8 to evaluate.
1522 const char kWinHttpProxyResolver[]          = "winhttp-proxy-resolver";
1523
1524 #if defined(ENABLE_PLUGIN_INSTALLATION)
1525 // Specifies a custom URL for fetching plug-ins metadata. Used for testing.
1526 const char kPluginsMetadataServerURL[]      = "plugins-metadata-server-url";
1527 #endif
1528
1529 #if defined(OS_ANDROID) || defined(OS_IOS)
1530 // Enable SPDY proxy.
1531 const char kEnableSpdyProxyAuth[]           = "enable-spdy-proxy-auth";
1532 #endif  // defined(OS_ANDROID) || defined(OS_IOS)
1533
1534 #if defined(OS_ANDROID)
1535 // Disables the app banner <meta> tag.
1536 const char kDisableAppBanners[]              = "disable-app-banners";
1537
1538 // Disables the new NTP.
1539 const char kDisableNewNTP[]                  = "disable-new-ntp";
1540
1541 // Disables zero suggest experiment on Dev channel.
1542 const char kDisableZeroSuggest[] = "disable-zero-suggest";
1543
1544 // Enable the accessibility tab switcher.
1545 const char kEnableAccessibilityTabSwitcher[] =
1546     "enable-accessibility-tab-switcher";
1547
1548 // Enables support for playing videos on Chromecast devices.
1549 const char kEnableCast[]                    = "enable-cast";
1550
1551 // Enables Contextual Search
1552 const char kEnableContextualSearch[]        = "contextual-search";
1553
1554 // Enables the new NTP.
1555 const char kEnableNewNTP[]                  = "enable-new-ntp";
1556
1557 // Pops the translate infobar if possible.
1558 const char kEnableTranslate[]               = "enable-translate";
1559
1560 // Enables zero suggest functionality on Dev channel, showing contextual
1561 // suggestions (EtherSuggest) for http pages and google.com search queries.
1562 const char kEnableZeroSuggestEtherSerp[] =
1563     "enable-zero-suggest-ether-serp";
1564
1565 // Enables zero suggest functionality on Dev channel, showing contextual
1566 // suggestions (EtherSuggest) for http pages.
1567 const char kEnableZeroSuggestEtherNoSerp[] =
1568     "enable-zero-suggest-ether-noserp";
1569
1570 // Enables zero suggest functionality on Dev channel, showing most visited
1571 // sites as default suggestions.
1572 const char kEnableZeroSuggestMostVisited[] =
1573     "enable-zero-suggest-most-visited";
1574
1575 #endif
1576
1577 #if defined(USE_ASH)
1578 const char kOpenAsh[]                       = "open-ash";
1579 #endif
1580
1581 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
1582 // Specifies which password store to use (detect, default, gnome, kwallet).
1583 const char kPasswordStore[]                 = "password-store";
1584 #endif
1585
1586 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
1587 // Triggers migration of user data directory to another directory
1588 // specified as a parameter. The migration is done under singleton lock,
1589 // and sanity checks are made to avoid corrupting the profile.
1590 // The browser exits after migration is complete.
1591 const char kMigrateDataDirForSxS[]          = "migrate-data-dir-for-sxs";
1592 #endif  // defined(OS_LINUX) && !defined(OS_CHROMEOS)
1593
1594 #if defined(OS_MACOSX)
1595 // Disables the creation and launch of app shims for platform apps.
1596 const char kDisableAppShims[]               = "disable-app-shims";
1597
1598 // Forcibly disables Lion-style on newer OSes, to allow developers to test the
1599 // older, SnowLeopard-style fullscreen.
1600 const char kDisableSystemFullscreenForTesting[] =
1601     "disable-system-fullscreen-for-testing";
1602
1603 // Disable CoreAnimation layer squashing to debug issues that appear only
1604 // pre-10.9, since the API for it is only available in 10.9 and later.
1605 const char kDisableCoreAnimationLayerSquashing[] =
1606     "disable-core-animation-layer-squashing";
1607
1608 // Enables a simplified fullscreen UI on Mac.
1609 const char kEnableSimplifiedFullscreen[]    = "enable-simplified-fullscreen";
1610
1611 // Performs Keychain reauthorization from the command line on behalf of a
1612 // special Keychain reauthorization stub executable. Used during auto-update.
1613 const char kKeychainReauthorize[]           = "keychain-reauthorize";
1614
1615 // A process type (switches::kProcessType) that relaunches the browser. See
1616 // chrome/browser/mac/relauncher.h.
1617 const char kRelauncherProcess[]             = "relauncher";
1618
1619 // Uses mock keychain for testing purposes, which prevents blocking dialogs
1620 // from causing timeouts.
1621 const char kUseMockKeychain[]               = "use-mock-keychain";
1622 #endif
1623
1624 // Use bubbles for content permissions requests instead of infobars.
1625 const char kEnablePermissionsBubbles[]      = "enable-permissions-bubbles";
1626
1627 #if defined(OS_WIN)
1628 // Force-enables the profile shortcut manager. This is needed for tests since
1629 // they use a custom-user-data-dir which disables this.
1630 const char kEnableProfileShortcutManager[]  = "enable-profile-shortcut-manager";
1631
1632 // For the DelegateExecute verb handler to launch Chrome in metro mode on
1633 // Windows 8 and higher.  Used when relaunching metro Chrome.
1634 const char kForceImmersive[]                = "force-immersive";
1635
1636 // For the DelegateExecute verb handler to launch Chrome in desktop mode on
1637 // Windows 8 and higher.  Used when relaunching metro Chrome.
1638 const char kForceDesktop[]                  = "force-desktop";
1639
1640 // Relaunches metro Chrome on Windows 8 and higher using a given shortcut.
1641 const char kRelaunchShortcut[]              = "relaunch-shortcut";
1642
1643 // Requests that Chrome connect to the running Metro viewer process.
1644 const char kViewerConnect[]                 = "viewer-connect";
1645
1646 // Requests that Chrome launch the Metro viewer process via the given appid
1647 // (which is assumed to be registered as default browser) and synchronously
1648 // connect to it.
1649 const char kViewerLaunchViaAppId[]          = "viewer-launch-via-appid";
1650
1651 // Waits for the given handle to be signaled before relaunching metro Chrome on
1652 // Windows 8 and higher.
1653 const char kWaitForMutex[]                  = "wait-for-mutex";
1654
1655 // Indicates that chrome was launched to service a search request in Windows 8.
1656 const char kWindows8Search[]           = "windows8-search";
1657 #endif
1658
1659 #ifndef NDEBUG
1660 // Enables overriding the path of file manager extension.
1661 const char kFileManagerExtensionPath[]      = "filemgr-ext-path";
1662
1663 // Enables overriding the path of image loader extension.
1664 const char kImageLoaderExtensionPath[]      = "image-loader-ext-path";
1665 #endif  // NDEBUG
1666
1667 // Controls print preview in the browser process.
1668 #if defined(GOOGLE_CHROME_BUILD)
1669 // Disables print preview (For testing, and for users who don't like us. :[ )
1670 const char kDisablePrintPreview[]           = "disable-print-preview";
1671 #else
1672 // Enables print preview (Force enable on Chromium, which normally does not
1673 //                        have the PDF viewer required for print preview.)
1674 const char kEnablePrintPreview[]            = "enable-print-preview";
1675 #endif
1676
1677 // -----------------------------------------------------------------------------
1678 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1679 //
1680 // You were going to just dump your switches here, weren't you? Instead, please
1681 // put them in alphabetical order above, or in order inside the appropriate
1682 // ifdef at the bottom. The order should match the header.
1683 // -----------------------------------------------------------------------------
1684
1685 }  // namespace switches