| 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 | 348 |
| 349 // Disable the net::URLRequestThrottlerManager functionality for | 349 // Disable the net::URLRequestThrottlerManager functionality for |
| 350 // requests originating from extensions. | 350 // requests originating from extensions. |
| 351 const char kDisableExtensionsHttpThrottling[] = | 351 const char kDisableExtensionsHttpThrottling[] = |
| 352 "disable-extensions-http-throttling"; | 352 "disable-extensions-http-throttling"; |
| 353 | 353 |
| 354 // Disable mandatory enforcement of web_accessible_resources in extensions. | 354 // Disable mandatory enforcement of web_accessible_resources in extensions. |
| 355 const char kDisableExtensionsResourceWhitelist[] = | 355 const char kDisableExtensionsResourceWhitelist[] = |
| 356 "disable-extensions-resource-whitelist"; | 356 "disable-extensions-resource-whitelist"; |
| 357 | 357 |
| 358 // Disable Instant extended API. | |
| 359 const char kDisableInstantExtendedAPI[] = "disable-instant-extended-api"; | |
| 360 | |
| 361 // Disables improved SafeBrowsing download protection. | 358 // Disables improved SafeBrowsing download protection. |
| 362 const char kDisableImprovedDownloadProtection[] = | 359 const char kDisableImprovedDownloadProtection[] = |
| 363 "disable-improved-download-protection"; | 360 "disable-improved-download-protection"; |
| 364 | 361 |
| 365 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging | 362 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging |
| 366 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file | 363 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file |
| 367 // bugs if something isn't working properly in the presence of IPv6. This flag | 364 // bugs if something isn't working properly in the presence of IPv6. This flag |
| 368 // can be overidden by the "enable-ipv6" flag. | 365 // can be overidden by the "enable-ipv6" flag. |
| 369 const char kDisableIPv6[] = "disable-ipv6"; | 366 const char kDisableIPv6[] = "disable-ipv6"; |
| 370 | 367 |
| 371 // Disables IP Pooling within the networks stack (SPDY only). When a connection | 368 // Disables IP Pooling within the networks stack (SPDY only). When a connection |
| 372 // is needed for a domain which shares an IP with an existing connection, | 369 // is needed for a domain which shares an IP with an existing connection, |
| 373 // attempt to use the existing connection. | 370 // attempt to use the existing connection. |
| 374 const char kDisableIPPooling[] = "disable-ip-pooling"; | 371 const char kDisableIPPooling[] = "disable-ip-pooling"; |
| 375 | 372 |
| 376 // Disable always using the local NTP for the first NTP load of a new window. | |
| 377 const char kDisableLocalFirstLoadNTP[] = "disable-local-first-load-ntp"; | |
| 378 | |
| 379 // Disable the behavior that the second click on a launcher item (the click when | 373 // Disable the behavior that the second click on a launcher item (the click when |
| 380 // the item is already active) minimizes the item. | 374 // the item is already active) minimizes the item. |
| 381 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 375 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
| 382 "disable-minimize-on-second-launcher-item-click"; | 376 "disable-minimize-on-second-launcher-item-click"; |
| 383 | 377 |
| 384 // Disables the menu on the NTP for accessing sessions from other devices. | 378 // Disables the menu on the NTP for accessing sessions from other devices. |
| 385 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 379 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
| 386 | 380 |
| 387 // Disables omnibox auto-completion when IME is active. | 381 // Disables omnibox auto-completion when IME is active. |
| 388 const char kDisableOmniboxAutoCompletionForIme[] = | 382 const char kDisableOmniboxAutoCompletionForIme[] = |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 // By default, cookies are not allowed on file://. They are needed for testing, | 611 // By default, cookies are not allowed on file://. They are needed for testing, |
| 618 // for example page cycler and layout tests. See bug 1157243. | 612 // for example page cycler and layout tests. See bug 1157243. |
| 619 const char kEnableFileCookies[] = "enable-file-cookies"; | 613 const char kEnableFileCookies[] = "enable-file-cookies"; |
| 620 | 614 |
| 621 // Enables Google Now integration. | 615 // Enables Google Now integration. |
| 622 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; | 616 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; |
| 623 | 617 |
| 624 // Enable HTTP/2 draft 04. This is a temporary testing flag. | 618 // Enable HTTP/2 draft 04. This is a temporary testing flag. |
| 625 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; | 619 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; |
| 626 | 620 |
| 627 // Enable Instant extended API. On mobile, this merely enables query extraction, | |
| 628 // not the rest of the instant-extended functionality. | |
| 629 const char kEnableInstantExtendedAPI[] = "enable-instant-extended-api"; | |
| 630 | |
| 631 // 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 |
| 632 // supported. Some probes may require internet connections, and this flag will | 622 // supported. Some probes may require internet connections, and this flag will |
| 633 // allow support independent of application testing. This flag overrides | 623 // allow support independent of application testing. This flag overrides |
| 634 // "disable-ipv6" which appears elswhere in this file. | 624 // "disable-ipv6" which appears elswhere in this file. |
| 635 const char kEnableIPv6[] = "enable-ipv6"; | 625 const char kEnableIPv6[] = "enable-ipv6"; |
| 636 | 626 |
| 637 /// Enables the IPC fuzzer for reliability testing | 627 /// Enables the IPC fuzzer for reliability testing |
| 638 const char kEnableIPCFuzzing[] = "enable-ipc-fuzzing"; | 628 const char kEnableIPCFuzzing[] = "enable-ipc-fuzzing"; |
| 639 | 629 |
| 640 // 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 |
| 641 // 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, |
| 642 // attempt to use the existing connection. | 632 // attempt to use the existing connection. |
| 643 const char kEnableIPPooling[] = "enable-ip-pooling"; | 633 const char kEnableIPPooling[] = "enable-ip-pooling"; |
| 644 | 634 |
| 645 // Enable always using the local NTP for the first NTP load of a new window. | |
| 646 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; | |
| 647 | |
| 648 // Enables support for user profiles that are managed by another user and can | 635 // Enables support for user profiles that are managed by another user and can |
| 649 // have restrictions applied. | 636 // have restrictions applied. |
| 650 const char kEnableManagedUsers[] = "enable-managed-users"; | 637 const char kEnableManagedUsers[] = "enable-managed-users"; |
| 651 | 638 |
| 652 // Make the values returned to window.performance.memory more granular and more | 639 // Make the values returned to window.performance.memory more granular and more |
| 653 // up to date. Without this flag, the memory information is still available, but | 640 // up to date. Without this flag, the memory information is still available, but |
| 654 // it is bucketized and updated less frequently. | 641 // it is bucketized and updated less frequently. |
| 655 const char kEnableMemoryInfo[] = "enable-memory-info"; | 642 const char kEnableMemoryInfo[] = "enable-memory-info"; |
| 656 | 643 |
| 657 // Enables metrics recording and reporting in the browser startup sequence, as | 644 // Enables metrics recording and reporting in the browser startup sequence, as |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 // Disables the installation of Portable Native Client. | 688 // Disables the installation of Portable Native Client. |
| 702 const char kDisablePnaclInstall[] = "disable-pnacl-install"; | 689 const char kDisablePnaclInstall[] = "disable-pnacl-install"; |
| 703 | 690 |
| 704 // Enables tracking of tasks in profiler for viewing via about:profiler. | 691 // Enables tracking of tasks in profiler for viewing via about:profiler. |
| 705 // To predominantly disable tracking (profiling), use the command line switch: | 692 // To predominantly disable tracking (profiling), use the command line switch: |
| 706 // --enable-profiling=0 | 693 // --enable-profiling=0 |
| 707 // Some tracking will still take place at startup, but it will be turned off | 694 // Some tracking will still take place at startup, but it will be turned off |
| 708 // during chrome_browser_main. | 695 // during chrome_browser_main. |
| 709 const char kEnableProfiling[] = "enable-profiling"; | 696 const char kEnableProfiling[] = "enable-profiling"; |
| 710 | 697 |
| 698 // Enables query in the omnibox. |
| 699 const char kEnableQueryExtraction[] = "enable-query-extraction"; |
| 700 |
| 711 // Enables support for the QUIC protocol. This is a temporary testing flag. | 701 // Enables support for the QUIC protocol. This is a temporary testing flag. |
| 712 const char kEnableQuic[] = "enable-quic"; | 702 const char kEnableQuic[] = "enable-quic"; |
| 713 | 703 |
| 714 // Enables support for the HTTPS over QUIC protocol. This is a temporary | 704 // Enables support for the HTTPS over QUIC protocol. This is a temporary |
| 715 // testing flag. This only has an effect if QUIC protocol is enabled. | 705 // testing flag. This only has an effect if QUIC protocol is enabled. |
| 716 const char kEnableQuicHttps[] = "enable-quic-https"; | 706 const char kEnableQuicHttps[] = "enable-quic-https"; |
| 717 | 707 |
| 718 // Enables the Quickoffoce/Chrome document viewer rather than the editor. | 708 // Enables the Quickoffoce/Chrome document viewer rather than the editor. |
| 719 const char kEnableQuickofficeViewing[] = "enable-quickoffice-viewing"; | 709 const char kEnableQuickofficeViewing[] = "enable-quickoffice-viewing"; |
| 720 | 710 |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1657 | 1647 |
| 1658 // ----------------------------------------------------------------------------- | 1648 // ----------------------------------------------------------------------------- |
| 1659 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1649 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1660 // | 1650 // |
| 1661 // You were going to just dump your switches here, weren't you? Instead, please | 1651 // You were going to just dump your switches here, weren't you? Instead, please |
| 1662 // put them in alphabetical order above, or in order inside the appropriate | 1652 // put them in alphabetical order above, or in order inside the appropriate |
| 1663 // ifdef at the bottom. The order should match the header. | 1653 // ifdef at the bottom. The order should match the header. |
| 1664 // ----------------------------------------------------------------------------- | 1654 // ----------------------------------------------------------------------------- |
| 1665 | 1655 |
| 1666 } // namespace switches | 1656 } // namespace switches |
| OLD | NEW |