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