| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 // Disables improved SafeBrowsing download protection. | 352 // Disables improved SafeBrowsing download protection. |
| 353 const char kDisableImprovedDownloadProtection[] = | 353 const char kDisableImprovedDownloadProtection[] = |
| 354 "disable-improved-download-protection"; | 354 "disable-improved-download-protection"; |
| 355 | 355 |
| 356 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging | 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 | 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 | 358 // bugs if something isn't working properly in the presence of IPv6. This flag |
| 359 // can be overidden by the "enable-ipv6" flag. | 359 // can be overidden by the "enable-ipv6" flag. |
| 360 const char kDisableIPv6[] = "disable-ipv6"; | 360 const char kDisableIPv6[] = "disable-ipv6"; |
| 361 | 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 | 362 // Disable the behavior that the second click on a launcher item (the click when |
| 368 // the item is already active) minimizes the item. | 363 // the item is already active) minimizes the item. |
| 369 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 364 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
| 370 "disable-minimize-on-second-launcher-item-click"; | 365 "disable-minimize-on-second-launcher-item-click"; |
| 371 | 366 |
| 372 // Disables the menu on the NTP for accessing sessions from other devices. | 367 // Disables the menu on the NTP for accessing sessions from other devices. |
| 373 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 368 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
| 374 | 369 |
| 375 // Disables omnibox auto-completion when IME is active. | 370 // Disables omnibox auto-completion when IME is active. |
| 376 const char kDisableOmniboxAutoCompletionForIme[] = | 371 const char kDisableOmniboxAutoCompletionForIme[] = |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ | 617 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ |
| 623 // settings page. | 618 // settings page. |
| 624 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; | 619 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; |
| 625 | 620 |
| 626 // Enables IPv6 support, even if probes suggest that it may not be fully | 621 // Enables IPv6 support, even if probes suggest that it may not be fully |
| 627 // supported. Some probes may require internet connections, and this flag will | 622 // supported. Some probes may require internet connections, and this flag will |
| 628 // allow support independent of application testing. This flag overrides | 623 // allow support independent of application testing. This flag overrides |
| 629 // "disable-ipv6" which appears elswhere in this file. | 624 // "disable-ipv6" which appears elswhere in this file. |
| 630 const char kEnableIPv6[] = "enable-ipv6"; | 625 const char kEnableIPv6[] = "enable-ipv6"; |
| 631 | 626 |
| 632 // Enables IP Pooling within the networks stack (SPDY only). When a connection | |
| 633 // is needed for a domain which shares an IP with an existing connection, | |
| 634 // attempt to use the existing connection. | |
| 635 const char kEnableIPPooling[] = "enable-ip-pooling"; | |
| 636 | |
| 637 // Enables experimentation with launching ephemeral apps via hyperlinks. | 627 // Enables experimentation with launching ephemeral apps via hyperlinks. |
| 638 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; | 628 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; |
| 639 | 629 |
| 640 // Enable always using the local NTP for the first NTP load of a new window. | 630 // Enable always using the local NTP for the first NTP load of a new window. |
| 641 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; | 631 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; |
| 642 | 632 |
| 643 // Make the values returned to window.performance.memory more granular and more | 633 // Make the values returned to window.performance.memory more granular and more |
| 644 // up to date. Without this flag, the memory information is still available, but | 634 // up to date. Without this flag, the memory information is still available, but |
| 645 // it is bucketized and updated less frequently. | 635 // it is bucketized and updated less frequently. |
| 646 const char kEnableMemoryInfo[] = "enable-memory-info"; | 636 const char kEnableMemoryInfo[] = "enable-memory-info"; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 // This only has an effect if QUIC protocol is enabled. | 722 // This only has an effect if QUIC protocol is enabled. |
| 733 const char kEnableQuicPacing[] = "enable-quic-pacing"; | 723 const char kEnableQuicPacing[] = "enable-quic-pacing"; |
| 734 | 724 |
| 735 // Enable use of Chromium's port selection for the ephemeral port via bind(). | 725 // Enable use of Chromium's port selection for the ephemeral port via bind(). |
| 736 // This only has an effect if QUIC protocol is enabled. | 726 // This only has an effect if QUIC protocol is enabled. |
| 737 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | 727 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; |
| 738 | 728 |
| 739 // Enables save password prompt bubble. | 729 // Enables save password prompt bubble. |
| 740 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; | 730 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; |
| 741 | 731 |
| 742 // Controls the support for SDCH filtering (dictionary based expansion of | 732 // Enables SDCH for https schemes. |
| 743 // content). By default SDCH filtering is enabled. To disable SDCH filtering, | 733 const char kEnableSdchOverHttps[] = "enable-sdch-over-https"; |
| 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 | 734 |
| 748 // Controls which branch of the "search button in omnibox" experiment is | 735 // Controls which branch of the "search button in omnibox" experiment is |
| 749 // enabled. | 736 // enabled. |
| 750 // | 737 // |
| 751 // We're using independent flags here (as opposed to a common flag with | 738 // 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 | 739 // different values) to be able to enable/disable the entire experience |
| 753 // associated with this feature server-side from the FieldTrial (the complete | 740 // associated with this feature server-side from the FieldTrial (the complete |
| 754 // experience includes other flag changes as well). It is not currently possible | 741 // experience includes other flag changes as well). It is not currently possible |
| 755 // to do that with "flag=value" flags. | 742 // to do that with "flag=value" flags. |
| 756 const char kEnableSearchButtonInOmniboxAlways[] = | 743 const char kEnableSearchButtonInOmniboxAlways[] = |
| 757 "enable-search-button-in-omnibox-always"; | 744 "enable-search-button-in-omnibox-always"; |
| 758 const char kEnableSearchButtonInOmniboxForStr[] = | 745 const char kEnableSearchButtonInOmniboxForStr[] = |
| 759 "enable-search-button-in-omnibox-for-str"; | 746 "enable-search-button-in-omnibox-for-str"; |
| 760 const char kEnableSearchButtonInOmniboxForStrOrIip[] = | 747 const char kEnableSearchButtonInOmniboxForStrOrIip[] = |
| 761 "enable-search-button-in-omnibox-for-str-or-iip"; | 748 "enable-search-button-in-omnibox-for-str-or-iip"; |
| 762 | 749 |
| 763 // Enable SPDY/2. This is a temporary testing flag. See | 750 // Certificate Transparency: Enable showing the SCT viewer when an SSL |
| 764 // http://crbug.com/303957 . | 751 // certificate is accompanied by, or contains, SCTs. |
| 765 const char kEnableSpdy2[] = "enable-spdy2"; | 752 const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer"; |
| 766 | 753 |
| 767 // Enable SPDY/4 alpha 2. This is a temporary testing flag. | 754 // Enable SPDY/4 alpha 2. This is a temporary testing flag. |
| 768 const char kEnableSpdy4a2[] = "enable-spdy4a2"; | 755 const char kEnableSpdy4a2[] = "enable-spdy4a2"; |
| 769 | 756 |
| 770 // Enables auto correction for misspelled words. | 757 // Enables auto correction for misspelled words. |
| 771 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; | 758 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; |
| 772 | 759 |
| 773 // Enables participation in the field trial for user feedback to spelling | 760 // Enables participation in the field trial for user feedback to spelling |
| 774 // service. | 761 // service. |
| 775 const char kEnableSpellingFeedbackFieldTrial[] = | 762 const char kEnableSpellingFeedbackFieldTrial[] = |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1465 const char kUnlimitedStorage[] = "unlimited-storage"; | 1452 const char kUnlimitedStorage[] = "unlimited-storage"; |
| 1466 | 1453 |
| 1467 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary | 1454 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary |
| 1468 // testing flag. | 1455 // testing flag. |
| 1469 const char kUseSpdy[] = "use-spdy"; | 1456 const char kUseSpdy[] = "use-spdy"; |
| 1470 | 1457 |
| 1471 // Disables use of the spelling web service and only provides suggestions. | 1458 // Disables use of the spelling web service and only provides suggestions. |
| 1472 // This will only work if asynchronous spell checking is not disabled. | 1459 // This will only work if asynchronous spell checking is not disabled. |
| 1473 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; | 1460 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; |
| 1474 | 1461 |
| 1475 // Sets the maximum concurrent streams over a SPDY session. | |
| 1476 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; | |
| 1477 | |
| 1478 // Specifies the user data directory, which is where the browser will look for | 1462 // Specifies the user data directory, which is where the browser will look for |
| 1479 // all of its state. | 1463 // all of its state. |
| 1480 const char kUserDataDir[] = "user-data-dir"; | 1464 const char kUserDataDir[] = "user-data-dir"; |
| 1481 | 1465 |
| 1482 // Examines a .crx for validity and prints the result. | 1466 // Examines a .crx for validity and prints the result. |
| 1483 const char kValidateCrx[] = "validate-crx"; | 1467 const char kValidateCrx[] = "validate-crx"; |
| 1484 | 1468 |
| 1485 // Uses experimental simple cache backend if possible. | 1469 // Uses experimental simple cache backend if possible. |
| 1486 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; | 1470 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; |
| 1487 | 1471 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 | 1651 |
| 1668 // ----------------------------------------------------------------------------- | 1652 // ----------------------------------------------------------------------------- |
| 1669 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1653 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1670 // | 1654 // |
| 1671 // You were going to just dump your switches here, weren't you? Instead, please | 1655 // You were going to just dump your switches here, weren't you? Instead, please |
| 1672 // put them in alphabetical order above, or in order inside the appropriate | 1656 // put them in alphabetical order above, or in order inside the appropriate |
| 1673 // ifdef at the bottom. The order should match the header. | 1657 // ifdef at the bottom. The order should match the header. |
| 1674 // ----------------------------------------------------------------------------- | 1658 // ----------------------------------------------------------------------------- |
| 1675 | 1659 |
| 1676 } // namespace switches | 1660 } // namespace switches |
| OLD | NEW |