| 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 const char kDisableExtensionsHttpThrottling[] = | 344 const char kDisableExtensionsHttpThrottling[] = |
| 345 "disable-extensions-http-throttling"; | 345 "disable-extensions-http-throttling"; |
| 346 | 346 |
| 347 // Disable mandatory enforcement of web_accessible_resources in extensions. | 347 // Disable mandatory enforcement of web_accessible_resources in extensions. |
| 348 const char kDisableExtensionsResourceWhitelist[] = | 348 const char kDisableExtensionsResourceWhitelist[] = |
| 349 "disable-extensions-resource-whitelist"; | 349 "disable-extensions-resource-whitelist"; |
| 350 | 350 |
| 351 // Disables Google Now integration. | 351 // Disables Google Now integration. |
| 352 const char kDisableGoogleNowIntegration[] = "disable-google-now-integration"; | 352 const char kDisableGoogleNowIntegration[] = "disable-google-now-integration"; |
| 353 | 353 |
| 354 // Disable Instant extended API. | |
| 355 const char kDisableInstantExtendedAPI[] = "disable-instant-extended-api"; | |
| 356 | |
| 357 // Disables improved SafeBrowsing download protection. | 354 // Disables improved SafeBrowsing download protection. |
| 358 const char kDisableImprovedDownloadProtection[] = | 355 const char kDisableImprovedDownloadProtection[] = |
| 359 "disable-improved-download-protection"; | 356 "disable-improved-download-protection"; |
| 360 | 357 |
| 361 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging | 358 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging |
| 362 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file | 359 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to file |
| 363 // bugs if something isn't working properly in the presence of IPv6. This flag | 360 // bugs if something isn't working properly in the presence of IPv6. This flag |
| 364 // can be overidden by the "enable-ipv6" flag. | 361 // can be overidden by the "enable-ipv6" flag. |
| 365 const char kDisableIPv6[] = "disable-ipv6"; | 362 const char kDisableIPv6[] = "disable-ipv6"; |
| 366 | 363 |
| 367 // Disables IP Pooling within the networks stack (SPDY only). When a connection | 364 // Disables IP Pooling within the networks stack (SPDY only). When a connection |
| 368 // is needed for a domain which shares an IP with an existing connection, | 365 // is needed for a domain which shares an IP with an existing connection, |
| 369 // attempt to use the existing connection. | 366 // attempt to use the existing connection. |
| 370 const char kDisableIPPooling[] = "disable-ip-pooling"; | 367 const char kDisableIPPooling[] = "disable-ip-pooling"; |
| 371 | 368 |
| 372 // Disable always using the local NTP for the first NTP load of a new window. | |
| 373 const char kDisableLocalFirstLoadNTP[] = "disable-local-first-load-ntp"; | |
| 374 | |
| 375 // Disable the behavior that the second click on a launcher item (the click when | 369 // Disable the behavior that the second click on a launcher item (the click when |
| 376 // the item is already active) minimizes the item. | 370 // the item is already active) minimizes the item. |
| 377 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 371 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
| 378 "disable-minimize-on-second-launcher-item-click"; | 372 "disable-minimize-on-second-launcher-item-click"; |
| 379 | 373 |
| 380 // Disables the menu on the NTP for accessing sessions from other devices. | 374 // Disables the menu on the NTP for accessing sessions from other devices. |
| 381 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; | 375 const char kDisableNTPOtherSessionsMenu[] = "disable-ntp-other-sessions-menu"; |
| 382 | 376 |
| 383 // Disables omnibox auto-completion when IME is active. | 377 // Disables omnibox auto-completion when IME is active. |
| 384 const char kDisableOmniboxAutoCompletionForIme[] = | 378 const char kDisableOmniboxAutoCompletionForIme[] = |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 | 616 |
| 623 // Enables Google Now integration. | 617 // Enables Google Now integration. |
| 624 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; | 618 const char kEnableGoogleNowIntegration[] = "enable-google-now-integration"; |
| 625 | 619 |
| 626 // Enable HTTP/2 draft 04. This is a temporary testing flag. | 620 // Enable HTTP/2 draft 04. This is a temporary testing flag. |
| 627 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; | 621 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; |
| 628 | 622 |
| 629 // Enables the inline sign in flow on Chrome desktop. | 623 // Enables the inline sign in flow on Chrome desktop. |
| 630 const char kEnableInlineSignin[] = "enable-inline-signin"; | 624 const char kEnableInlineSignin[] = "enable-inline-signin"; |
| 631 | 625 |
| 632 // Enable Instant extended API. On mobile, this merely enables query extraction, | |
| 633 // not the rest of the instant-extended functionality. | |
| 634 const char kEnableInstantExtendedAPI[] = "enable-instant-extended-api"; | |
| 635 | |
| 636 // Enables IPv6 support, even if probes suggest that it may not be fully | 626 // Enables IPv6 support, even if probes suggest that it may not be fully |
| 637 // supported. Some probes may require internet connections, and this flag will | 627 // supported. Some probes may require internet connections, and this flag will |
| 638 // allow support independent of application testing. This flag overrides | 628 // allow support independent of application testing. This flag overrides |
| 639 // "disable-ipv6" which appears elswhere in this file. | 629 // "disable-ipv6" which appears elswhere in this file. |
| 640 const char kEnableIPv6[] = "enable-ipv6"; | 630 const char kEnableIPv6[] = "enable-ipv6"; |
| 641 | 631 |
| 642 // Enables IP Pooling within the networks stack (SPDY only). When a connection | 632 // Enables IP Pooling within the networks stack (SPDY only). When a connection |
| 643 // is needed for a domain which shares an IP with an existing connection, | 633 // is needed for a domain which shares an IP with an existing connection, |
| 644 // attempt to use the existing connection. | 634 // attempt to use the existing connection. |
| 645 const char kEnableIPPooling[] = "enable-ip-pooling"; | 635 const char kEnableIPPooling[] = "enable-ip-pooling"; |
| 646 | 636 |
| 647 // Enable always using the local NTP for the first NTP load of a new window. | |
| 648 const char kEnableLocalFirstLoadNTP[] = "enable-local-first-load-ntp"; | |
| 649 | |
| 650 // Enables support for user profiles that are managed by another user and can | 637 // Enables support for user profiles that are managed by another user and can |
| 651 // have restrictions applied. | 638 // have restrictions applied. |
| 652 const char kEnableManagedUsers[] = "enable-managed-users"; | 639 const char kEnableManagedUsers[] = "enable-managed-users"; |
| 653 | 640 |
| 654 // Make the values returned to window.performance.memory more granular and more | 641 // Make the values returned to window.performance.memory more granular and more |
| 655 // up to date. Without this flag, the memory information is still available, but | 642 // up to date. Without this flag, the memory information is still available, but |
| 656 // it is bucketized and updated less frequently. | 643 // it is bucketized and updated less frequently. |
| 657 const char kEnableMemoryInfo[] = "enable-memory-info"; | 644 const char kEnableMemoryInfo[] = "enable-memory-info"; |
| 658 | 645 |
| 659 // Enables metrics recording and reporting in the browser startup sequence, as | 646 // Enables metrics recording and reporting in the browser startup sequence, as |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 // Enable Privet local printing. | 690 // Enable Privet local printing. |
| 704 const char kEnablePrivetLocalPrinting[] = "enable-privet-local-printing"; | 691 const char kEnablePrivetLocalPrinting[] = "enable-privet-local-printing"; |
| 705 | 692 |
| 706 // Enables tracking of tasks in profiler for viewing via about:profiler. | 693 // Enables tracking of tasks in profiler for viewing via about:profiler. |
| 707 // To predominantly disable tracking (profiling), use the command line switch: | 694 // To predominantly disable tracking (profiling), use the command line switch: |
| 708 // --enable-profiling=0 | 695 // --enable-profiling=0 |
| 709 // Some tracking will still take place at startup, but it will be turned off | 696 // Some tracking will still take place at startup, but it will be turned off |
| 710 // during chrome_browser_main. | 697 // during chrome_browser_main. |
| 711 const char kEnableProfiling[] = "enable-profiling"; | 698 const char kEnableProfiling[] = "enable-profiling"; |
| 712 | 699 |
| 700 // Enables query in the omnibox. |
| 701 const char kEnableQueryExtraction[] = "enable-query-extraction"; |
| 702 |
| 713 // Enables support for the QUIC protocol. This is a temporary testing flag. | 703 // Enables support for the QUIC protocol. This is a temporary testing flag. |
| 714 const char kEnableQuic[] = "enable-quic"; | 704 const char kEnableQuic[] = "enable-quic"; |
| 715 | 705 |
| 716 // Enables support for the HTTPS over QUIC protocol. This is a temporary | 706 // Enables support for the HTTPS over QUIC protocol. This is a temporary |
| 717 // testing flag. This only has an effect if QUIC protocol is enabled. | 707 // testing flag. This only has an effect if QUIC protocol is enabled. |
| 718 const char kEnableQuicHttps[] = "enable-quic-https"; | 708 const char kEnableQuicHttps[] = "enable-quic-https"; |
| 719 | 709 |
| 720 // Enables the Quickoffoce/Chrome document viewer rather than the editor. | 710 // Enables the Quickoffoce/Chrome document viewer rather than the editor. |
| 721 const char kEnableQuickofficeViewing[] = "enable-quickoffice-viewing"; | 711 const char kEnableQuickofficeViewing[] = "enable-quickoffice-viewing"; |
| 722 | 712 |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 // Uninstalls an extension with the specified extension id. | 1436 // Uninstalls an extension with the specified extension id. |
| 1447 const char kUninstallExtension[] = "uninstall-extension"; | 1437 const char kUninstallExtension[] = "uninstall-extension"; |
| 1448 | 1438 |
| 1449 // Runs un-installation steps that were done by chrome first-run. | 1439 // Runs un-installation steps that were done by chrome first-run. |
| 1450 const char kUninstall[] = "uninstall"; | 1440 const char kUninstall[] = "uninstall"; |
| 1451 | 1441 |
| 1452 // Overrides per-origin quota settings to unlimited storage for any | 1442 // Overrides per-origin quota settings to unlimited storage for any |
| 1453 // apps/origins. This should be used only for testing purpose. | 1443 // apps/origins. This should be used only for testing purpose. |
| 1454 const char kUnlimitedStorage[] = "unlimited-storage"; | 1444 const char kUnlimitedStorage[] = "unlimited-storage"; |
| 1455 | 1445 |
| 1456 // Use the cacheable New Tab page for Embedded Search. | |
| 1457 const char kUseCacheableNewTabPage[] = "use-cacheable-new-tab-page"; | |
| 1458 | |
| 1459 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary | 1446 // Uses Spdy for the transport protocol instead of HTTP. This is a temporary |
| 1460 // testing flag. | 1447 // testing flag. |
| 1461 const char kUseSpdy[] = "use-spdy"; | 1448 const char kUseSpdy[] = "use-spdy"; |
| 1462 | 1449 |
| 1463 // Disables use of the spelling web service and only provides suggestions. | 1450 // Disables use of the spelling web service and only provides suggestions. |
| 1464 // This will only work if asynchronous spell checking is not disabled. | 1451 // This will only work if asynchronous spell checking is not disabled. |
| 1465 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; | 1452 const char kUseSpellingSuggestions[] = "use-spelling-suggestions"; |
| 1466 | 1453 |
| 1467 // Sets the maximum concurrent streams over a SPDY session. | 1454 // Sets the maximum concurrent streams over a SPDY session. |
| 1468 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; | 1455 const char kMaxSpdyConcurrentStreams[] = "max-spdy-concurrent-streams"; |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1633 | 1620 |
| 1634 // ----------------------------------------------------------------------------- | 1621 // ----------------------------------------------------------------------------- |
| 1635 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1622 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1636 // | 1623 // |
| 1637 // You were going to just dump your switches here, weren't you? Instead, please | 1624 // You were going to just dump your switches here, weren't you? Instead, please |
| 1638 // put them in alphabetical order above, or in order inside the appropriate | 1625 // put them in alphabetical order above, or in order inside the appropriate |
| 1639 // ifdef at the bottom. The order should match the header. | 1626 // ifdef at the bottom. The order should match the header. |
| 1640 // ----------------------------------------------------------------------------- | 1627 // ----------------------------------------------------------------------------- |
| 1641 | 1628 |
| 1642 } // namespace switches | 1629 } // namespace switches |
| OLD | NEW |