| 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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 "enable-extension-activity-log-testing"; | 530 "enable-extension-activity-log-testing"; |
| 531 | 531 |
| 532 // Enable the fast unload controller, which speeds up tab/window close by | 532 // Enable the fast unload controller, which speeds up tab/window close by |
| 533 // running a tab's onunload js handler independently of the GUI - | 533 // running a tab's onunload js handler independently of the GUI - |
| 534 // crbug.com/142458 . | 534 // crbug.com/142458 . |
| 535 const char kEnableFastUnload[] = "enable-fast-unload"; | 535 const char kEnableFastUnload[] = "enable-fast-unload"; |
| 536 | 536 |
| 537 // Enable HTTP/2 draft 04. This is a temporary testing flag. | 537 // Enable HTTP/2 draft 04. This is a temporary testing flag. |
| 538 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; | 538 const char kEnableHttp2Draft04[] = "enable-http2-draft-04"; |
| 539 | 539 |
| 540 // Enables the pure web-based flow for sign in on first run/NTP/wrench menu/ | |
| 541 // settings page. | |
| 542 const char kEnableWebBasedSignin[] = "enable-web-based-signin"; | |
| 543 | |
| 544 // Enables IPv6 support, even if probes suggest that it may not be fully | 540 // Enables IPv6 support, even if probes suggest that it may not be fully |
| 545 // supported. Some probes may require internet connections, and this flag will | 541 // supported. Some probes may require internet connections, and this flag will |
| 546 // allow support independent of application testing. This flag overrides | 542 // allow support independent of application testing. This flag overrides |
| 547 // "disable-ipv6" which appears elswhere in this file. | 543 // "disable-ipv6" which appears elswhere in this file. |
| 548 const char kEnableIPv6[] = "enable-ipv6"; | 544 const char kEnableIPv6[] = "enable-ipv6"; |
| 549 | 545 |
| 550 // Enables experimentation with launching ephemeral apps via hyperlinks. | 546 // Enables experimentation with launching ephemeral apps via hyperlinks. |
| 551 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; | 547 const char kEnableLinkableEphemeralApps[] = "enable-linkable-ephemeral-apps"; |
| 552 | 548 |
| 553 // Enables metrics recording and reporting in the browser startup sequence, as | 549 // Enables metrics recording and reporting in the browser startup sequence, as |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 // is to be used for testing only. Possible values are "stable", "beta", "dev" | 729 // is to be used for testing only. Possible values are "stable", "beta", "dev" |
| 734 // and "canary". Note that this only applies if the browser's reported channel | 730 // and "canary". Note that this only applies if the browser's reported channel |
| 735 // is UNKNOWN. | 731 // is UNKNOWN. |
| 736 const char kFakeVariationsChannel[] = "fake-variations-channel"; | 732 const char kFakeVariationsChannel[] = "fake-variations-channel"; |
| 737 | 733 |
| 738 // If this flag is present then this command line is being delegated to an | 734 // If this flag is present then this command line is being delegated to an |
| 739 // already running chrome process via the fast path, ie: before chrome.dll is | 735 // already running chrome process via the fast path, ie: before chrome.dll is |
| 740 // loaded. It is useful to tell the difference for tracking purposes. | 736 // loaded. It is useful to tell the difference for tracking purposes. |
| 741 const char kFastStart[] = "fast-start"; | 737 const char kFastStart[] = "fast-start"; |
| 742 | 738 |
| 743 // Allows displaying the list of existing profiles in the avatar bubble for | |
| 744 // fast switching between profiles. | |
| 745 const char kFastUserSwitching[] = "fast-user-switching"; | |
| 746 | |
| 747 // These two flags are added around the switches about:flags adds to the | 739 // These two flags are added around the switches about:flags adds to the |
| 748 // command line. This is useful to see which switches were added by about:flags | 740 // command line. This is useful to see which switches were added by about:flags |
| 749 // on about:version. They don't have any effect. | 741 // on about:version. They don't have any effect. |
| 750 const char kFlagSwitchesBegin[] = "flag-switches-begin"; | 742 const char kFlagSwitchesBegin[] = "flag-switches-begin"; |
| 751 const char kFlagSwitchesEnd[] = "flag-switches-end"; | 743 const char kFlagSwitchesEnd[] = "flag-switches-end"; |
| 752 | 744 |
| 753 // Alternative feedback server to use when submitting user feedback | 745 // Alternative feedback server to use when submitting user feedback |
| 754 const char kFeedbackServer[] = "feedback-server"; | 746 const char kFeedbackServer[] = "feedback-server"; |
| 755 | 747 |
| 756 // The file descriptor limit is set to the value of this switch, subject to the | 748 // The file descriptor limit is set to the value of this switch, subject to the |
| (...skipping 10 matching lines...) Expand all Loading... |
| 767 const char kForceFirstRun[] = "force-first-run"; | 759 const char kForceFirstRun[] = "force-first-run"; |
| 768 | 760 |
| 769 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data | 761 // Forces additional Chrome Variation Ids that will be sent in X-Client-Data |
| 770 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids | 762 // header, specified as a 64-bit encoded list of numeric experiment ids. Ids |
| 771 // prefixed with the character "t" will be treated as Trigger Variation Ids. | 763 // prefixed with the character "t" will be treated as Trigger Variation Ids. |
| 772 const char kForceVariationIds[] = "force-variation-ids"; | 764 const char kForceVariationIds[] = "force-variation-ids"; |
| 773 | 765 |
| 774 // Specifies an alternate URL to use for speaking to Google. Useful for testing. | 766 // Specifies an alternate URL to use for speaking to Google. Useful for testing. |
| 775 const char kGoogleBaseURL[] = "google-base-url"; | 767 const char kGoogleBaseURL[] = "google-base-url"; |
| 776 | 768 |
| 777 // Enables using GAIA information to populate profile name and icon. | |
| 778 const char kGoogleProfileInfo[] = "google-profile-info"; | |
| 779 | |
| 780 // Specifies a custom name for the GSSAPI library to load. | 769 // Specifies a custom name for the GSSAPI library to load. |
| 781 const char kGSSAPILibraryName[] = "gssapi-library-name"; | 770 const char kGSSAPILibraryName[] = "gssapi-library-name"; |
| 782 | 771 |
| 783 // These flags show the man page on Linux. They are equivalent to each | 772 // These flags show the man page on Linux. They are equivalent to each |
| 784 // other. | 773 // other. |
| 785 const char kHelp[] = "help"; | 774 const char kHelp[] = "help"; |
| 786 const char kHelpShort[] = "h"; | 775 const char kHelpShort[] = "h"; |
| 787 | 776 |
| 788 // Makes Windows happy by allowing it to show "Enable access to this program" | 777 // Makes Windows happy by allowing it to show "Enable access to this program" |
| 789 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only | 778 // checkbox in Add/Remove Programs->Set Program Access and Defaults. This only |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 908 // performance tests. | 897 // performance tests. |
| 909 const char kMetricsRecordingOnly[] = "metrics-recording-only"; | 898 const char kMetricsRecordingOnly[] = "metrics-recording-only"; |
| 910 | 899 |
| 911 // Enables multiprofile Chrome. | 900 // Enables multiprofile Chrome. |
| 912 const char kMultiProfiles[] = "multi-profiles"; | 901 const char kMultiProfiles[] = "multi-profiles"; |
| 913 | 902 |
| 914 // Sets the base logging level for the net log. Log 0 logs the most data. | 903 // Sets the base logging level for the net log. Log 0 logs the most data. |
| 915 // Intended primarily for use with --log-net-log. | 904 // Intended primarily for use with --log-net-log. |
| 916 const char kNetLogLevel[] = "net-log-level"; | 905 const char kNetLogLevel[] = "net-log-level"; |
| 917 | 906 |
| 918 // Use new profile management system, including profile sign-out and new | |
| 919 // choosers. | |
| 920 const char kNewProfileManagement[] = "new-profile-management"; | |
| 921 | |
| 922 // Disables the default browser check. Useful for UI/browser tests where we | 907 // Disables the default browser check. Useful for UI/browser tests where we |
| 923 // want to avoid having the default browser info-bar displayed. | 908 // want to avoid having the default browser info-bar displayed. |
| 924 const char kNoDefaultBrowserCheck[] = "no-default-browser-check"; | 909 const char kNoDefaultBrowserCheck[] = "no-default-browser-check"; |
| 925 | 910 |
| 926 // By default, an https page can load images, fonts or frames from an http | 911 // By default, an https page can load images, fonts or frames from an http |
| 927 // page. This switch overrides this to block this lesser mixed-content problem. | 912 // page. This switch overrides this to block this lesser mixed-content problem. |
| 928 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content"; | 913 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content"; |
| 929 | 914 |
| 930 // Don't record/playback events when using record & playback. | 915 // Don't record/playback events when using record & playback. |
| 931 const char kNoEvents[] = "no-events"; | 916 const char kNoEvents[] = "no-events"; |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1523 | 1508 |
| 1524 // ----------------------------------------------------------------------------- | 1509 // ----------------------------------------------------------------------------- |
| 1525 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1510 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1526 // | 1511 // |
| 1527 // You were going to just dump your switches here, weren't you? Instead, please | 1512 // You were going to just dump your switches here, weren't you? Instead, please |
| 1528 // put them in alphabetical order above, or in order inside the appropriate | 1513 // put them in alphabetical order above, or in order inside the appropriate |
| 1529 // ifdef at the bottom. The order should match the header. | 1514 // ifdef at the bottom. The order should match the header. |
| 1530 // ----------------------------------------------------------------------------- | 1515 // ----------------------------------------------------------------------------- |
| 1531 | 1516 |
| 1532 } // namespace switches | 1517 } // namespace switches |
| OLD | NEW |