| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 // Enables Google Now integration. | 620 // Enables Google Now integration. |
| 621 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; | 621 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; |
| 622 | 622 |
| 623 // Enable HTTP/2 draft 04. This is a temporary testing flag. | 623 // Enable HTTP/2 draft 04. This is a temporary testing flag. |
| 624 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; | 624 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; |
| 625 | 625 |
| 626 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ | 626 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ |
| 627 // settings page. | 627 // settings page. |
| 628 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; | 628 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; |
| 629 | 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 | 630 // 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, | 631 // is needed for a domain which shares an IP with an existing connection, |
| 638 // attempt to use the existing connection. | 632 // attempt to use the existing connection. |
| 639 const char kEnableIPPooling[] = "enable-ip-pooling"; | 633 const char kEnableIPPooling[] = "enable-ip-pooling"; |
| 640 | 634 |
| 641 // Enables experimentation with launching ephemeral apps via hyperlinks. | 635 // Enables experimentation with launching ephemeral apps via hyperlinks. |
| 642 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; | 636 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; |
| 643 | 637 |
| 644 // Enable always using the local NTP for the first NTP load of a new window. | 638 // Enable always using the local NTP for the first NTP load of a new window. |
| 645 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; | 639 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 // testing flag. This only has an effect if QUIC protocol is enabled. | 726 // testing flag. This only has an effect if QUIC protocol is enabled. |
| 733 const char kEnableQuicHttps[] = "enable-quic-https"; | 727 const char kEnableQuicHttps[] = "enable-quic-https"; |
| 734 | 728 |
| 735 // Enable use of Chromium's port selection for the ephemeral port via bind(). | 729 // Enable use of Chromium's port selection for the ephemeral port via bind(). |
| 736 // This only has an effect if QUIC protocol is enabled. | 730 // This only has an effect if QUIC protocol is enabled. |
| 737 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | 731 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; |
| 738 | 732 |
| 739 // Enables save password prompt bubble. | 733 // Enables save password prompt bubble. |
| 740 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; | 734 const char kEnableSavePasswordBubble[] = "enable-save-password-bubble"; |
| 741 | 735 |
| 742 // Controls the support for SDCH filtering (dictionary based expansion of | 736 // Enables SDCH for https schemes. |
| 743 // content). By default SDCH filtering is enabled. To disable SDCH filtering, | 737 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 | 738 |
| 748 // Controls which branch of the "search button in omnibox" experiment is | 739 // Controls which branch of the "search button in omnibox" experiment is |
| 749 // enabled. | 740 // enabled. |
| 750 // | 741 // |
| 751 // We're using independent flags here (as opposed to a common flag with | 742 // 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 | 743 // different values) to be able to enable/disable the entire experience |
| 753 // associated with this feature server-side from the FieldTrial (the complete | 744 // associated with this feature server-side from the FieldTrial (the complete |
| 754 // experience includes other flag changes as well). It is not currently possible | 745 // experience includes other flag changes as well). It is not currently possible |
| 755 // to do that with "flag=value" flags. | 746 // to do that with "flag=value" flags. |
| 756 const char kEnableSearchButtonInOmniboxAlways[] = | 747 const char kEnableSearchButtonInOmniboxAlways[] = |
| 757 "enable-search-button-in-omnibox-always"; | 748 "enable-search-button-in-omnibox-always"; |
| 758 const char kEnableSearchButtonInOmniboxForStr[] = | 749 const char kEnableSearchButtonInOmniboxForStr[] = |
| 759 "enable-search-button-in-omnibox-for-str"; | 750 "enable-search-button-in-omnibox-for-str"; |
| 760 const char kEnableSearchButtonInOmniboxForStrOrIip[] = | 751 const char kEnableSearchButtonInOmniboxForStrOrIip[] = |
| 761 "enable-search-button-in-omnibox-for-str-or-iip"; | 752 "enable-search-button-in-omnibox-for-str-or-iip"; |
| 762 | 753 |
| 763 // Certificate Transparency: Enable showing the SCT viewer when an SSL | 754 // Certificate Transparency: Enable showing the SCT viewer when an SSL |
| 764 // certificate is accompanied by, or contains, SCTs. | 755 // certificate is accompanied by, or contains, SCTs. |
| 765 const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer"; | 756 const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer"; |
| 766 | 757 |
| 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. | 758 // Enable SPDY/4 alpha 2. This is a temporary testing flag. |
| 772 const char kEnableSpdy4a2[] = "enable-spdy4a2"; | 759 const char kEnableSpdy4a2[] = "enable-spdy4a2"; |
| 773 | 760 |
| 774 // Enables auto correction for misspelled words. | 761 // Enables auto correction for misspelled words. |
| 775 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; | 762 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; |
| 776 | 763 |
| 777 // Enables participation in the field trial for user feedback to spelling | 764 // Enables participation in the field trial for user feedback to spelling |
| 778 // service. | 765 // service. |
| 779 const char kEnableSpellingFeedbackFieldTrial[] = | 766 const char kEnableSpellingFeedbackFieldTrial[] = |
| 780 "enable-spelling-feedback-field-trial"; | 767 "enable-spelling-feedback-field-trial"; |
| (...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1480 const char kUnlimitedStorage[] = "unlimited-storage"; | 1467 const char kUnlimitedStorage[] = "unlimited-storage"; |
| 1481 | 1468 |
| 1482 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary | 1469 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary |
| 1483 // testing flag. | 1470 // testing flag. |
| 1484 const char kUseSpdy[] = "use-spdy"; | 1471 const char kUseSpdy[] = "use-spdy"; |
| 1485 | 1472 |
| 1486 // Disables use of the spelling web service and only provides suggestions. | 1473 // Disables use of the spelling web service and only provides suggestions. |
| 1487 // This will only work if asynchronous spell checking is not disabled. | 1474 // This will only work if asynchronous spell checking is not disabled. |
| 1488 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; | 1475 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; |
| 1489 | 1476 |
| 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 | 1477 // Specifies the user data directory, which is where the browser will look for |
| 1494 // all of its state. | 1478 // all of its state. |
| 1495 const char kUserDataDir[] = "user-data-dir"; | 1479 const char kUserDataDir[] = "user-data-dir"; |
| 1496 | 1480 |
| 1497 // Examines a .crx for validity and prints the result. | 1481 // Examines a .crx for validity and prints the result. |
| 1498 const char kValidateCrx[] = "validate-crx"; | 1482 const char kValidateCrx[] = "validate-crx"; |
| 1499 | 1483 |
| 1500 // Uses experimental simple cache backend if possible. | 1484 // Uses experimental simple cache backend if possible. |
| 1501 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; | 1485 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; |
| 1502 | 1486 |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 | 1660 |
| 1677 // ----------------------------------------------------------------------------- | 1661 // ----------------------------------------------------------------------------- |
| 1678 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1662 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1679 // | 1663 // |
| 1680 // You were going to just dump your switches here, weren't you? Instead, please | 1664 // 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 | 1665 // put them in alphabetical order above, or in order inside the appropriate |
| 1682 // ifdef at the bottom. The order should match the header. | 1666 // ifdef at the bottom. The order should match the header. |
| 1683 // ----------------------------------------------------------------------------- | 1667 // ----------------------------------------------------------------------------- |
| 1684 | 1668 |
| 1685 } // namespace switches | 1669 } // namespace switches |
| OLD | NEW |