Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 169053004: Remove a bunch of unused network flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Bring back IPv6 flags, remove IP pooling flags Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ 621 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/
627 // settings page. 622 // settings page.
628 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; 623 const char kEnableWebBasedSignin[] = "enable-web-based-signin";
629 624
630 // Enables IPv6 support, even if probes suggest that it may not be fully 625 // 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 626 // supported. Some probes may require internet connections, and this flag will
632 // allow support independent of application testing. This flag overrides 627 // allow support independent of application testing. This flag overrides
633 // "disable-ipv6" which appears elswhere in this file. 628 // "disable-ipv6" which appears elswhere in this file.
634 const char kEnableIPv6[] = "enable-ipv6"; 629 const char kEnableIPv6[] = "enable-ipv6";
635 630
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. 631 // Enables experimentation with launching ephemeral apps via hyperlinks.
642 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; 632 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps";
643 633
644 // Enable always using the local NTP for the first NTP load of a new window. 634 // Enable always using the local NTP for the first NTP load of a new window.
645 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; 635 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp";
646 636
647 // Make the values returned to window.performance.memory more granular and more 637 // 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 638 // up to date. Without this flag, the memory information is still available, but
649 // it is bucketized and updated less frequently. 639 // it is bucketized and updated less frequently.
650 const char kEnableMemoryInfo[] = "enable-memory-info"; 640 const char kEnableMemoryInfo[] = "enable-memory-info";
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 // testing flag. This only has an effect if QUIC protocol is enabled. 722 // testing flag. This only has an effect if QUIC protocol is enabled.
733 const char kEnableQuicHttps[] = "enable-quic-https"; 723 const char kEnableQuicHttps[] = "enable-quic-https";
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 // Certificate Transparency: Enable showing the SCT viewer when an SSL 750 // Certificate Transparency: Enable showing the SCT viewer when an SSL
764 // certificate is accompanied by, or contains, SCTs. 751 // certificate is accompanied by, or contains, SCTs.
765 const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer"; 752 const char kEnableSignedCertificateTimestampsViewer[] = "enable-sct-viewer";
766 753
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. 754 // Enable SPDY/4 alpha 2. This is a temporary testing flag.
772 const char kEnableSpdy4a2[] = "enable-spdy4a2"; 755 const char kEnableSpdy4a2[] = "enable-spdy4a2";
773 756
774 // Enables auto correction for misspelled words. 757 // Enables auto correction for misspelled words.
775 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; 758 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct";
776 759
777 // Enables participation in the field trial for user feedback to spelling 760 // Enables participation in the field trial for user feedback to spelling
778 // service. 761 // service.
779 const char kEnableSpellingFeedbackFieldTrial[] = 762 const char kEnableSpellingFeedbackFieldTrial[] =
780 "enable-spelling-feedback-field-trial"; 763 "enable-spelling-feedback-field-trial";
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 const char kUnlimitedStorage[] = "unlimited-storage"; 1463 const char kUnlimitedStorage[] = "unlimited-storage";
1481 1464
1482 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary 1465 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary
1483 // testing flag. 1466 // testing flag.
1484 const char kUseSpdy[] = "use-spdy"; 1467 const char kUseSpdy[] = "use-spdy";
1485 1468
1486 // Disables use of the spelling web service and only provides suggestions. 1469 // Disables use of the spelling web service and only provides suggestions.
1487 // This will only work if asynchronous spell checking is not disabled. 1470 // This will only work if asynchronous spell checking is not disabled.
1488 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; 1471 const char kUseSpellingSuggestions[] = "use-spelling-suggestions";
1489 1472
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 1473 // Specifies the user data directory, which is where the browser will look for
1494 // all of its state. 1474 // all of its state.
1495 const char kUserDataDir[] = "user-data-dir"; 1475 const char kUserDataDir[] = "user-data-dir";
1496 1476
1497 // Examines a .crx for validity and prints the result. 1477 // Examines a .crx for validity and prints the result.
1498 const char kValidateCrx[] = "validate-crx"; 1478 const char kValidateCrx[] = "validate-crx";
1499 1479
1500 // Uses experimental simple cache backend if possible. 1480 // Uses experimental simple cache backend if possible.
1501 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend"; 1481 const char kUseSimpleCacheBackend[] = "use-simple-cache-backend";
1502 1482
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 1656
1677 // ----------------------------------------------------------------------------- 1657 // -----------------------------------------------------------------------------
1678 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1658 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1679 // 1659 //
1680 // You were going to just dump your switches here, weren't you? Instead, please 1660 // 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 1661 // put them in alphabetical order above, or in order inside the appropriate
1682 // ifdef at the bottom. The order should match the header. 1662 // ifdef at the bottom. The order should match the header.
1683 // ----------------------------------------------------------------------------- 1663 // -----------------------------------------------------------------------------
1684 1664
1685 } // namespace switches 1665 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698