| 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 722 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 // The time in seconds that an extension event page has between being notified | 733 // The time in seconds that an extension event page has between being notified |
| 734 // of its impending unload and that unload happening. | 734 // of its impending unload and that unload happening. |
| 735 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; | 735 const char kEventPageSuspendingTime[] = "event-page-unloading-time"; |
| 736 | 736 |
| 737 // Marks a renderer as extension process. | 737 // Marks a renderer as extension process. |
| 738 const char kExtensionProcess[] = "extension-process"; | 738 const char kExtensionProcess[] = "extension-process"; |
| 739 | 739 |
| 740 // Frequency in seconds for Extensions auto-update. | 740 // Frequency in seconds for Extensions auto-update. |
| 741 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; | 741 const char kExtensionsUpdateFrequency[] = "extensions-update-frequency"; |
| 742 | 742 |
| 743 // Additional query params to insert in the search and instant URLs. |
| 744 const char kExtraSearchQueryParams[] = "extra-search-query-params"; |
| 745 |
| 743 // Fakes the channel of the browser for purposes of Variations filtering. This | 746 // Fakes the channel of the browser for purposes of Variations filtering. This |
| 744 // is to be used for testing only. Possible values are "stable", "beta", "dev" | 747 // is to be used for testing only. Possible values are "stable", "beta", "dev" |
| 745 // and "canary". Note that this only applies if the browser's reported channel | 748 // and "canary". Note that this only applies if the browser's reported channel |
| 746 // is UNKNOWN. | 749 // is UNKNOWN. |
| 747 const char kFakeVariationsChannel[] = "fake-variations-channel"; | 750 const char kFakeVariationsChannel[] = "fake-variations-channel"; |
| 748 | 751 |
| 749 // These two flags are added around the switches about:flags adds to the | 752 // These two flags are added around the switches about:flags adds to the |
| 750 // command line. This is useful to see which switches were added by about:flags | 753 // command line. This is useful to see which switches were added by about:flags |
| 751 // on about:version. They don't have any effect. | 754 // on about:version. They don't have any effect. |
| 752 const char kFlagSwitchesBegin[] = "flag-switches-begin"; | 755 const char kFlagSwitchesBegin[] = "flag-switches-begin"; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 769 const char kForceFirstRun[] = "force-first-run"; | 772 const char kForceFirstRun[] = "force-first-run"; |
| 770 | 773 |
| 771 // Tries to load cloud policy for every signed in user, regardless of whether | 774 // Tries to load cloud policy for every signed in user, regardless of whether |
| 772 // they are a dasher user or not. Used to allow any GAIA account to be used for | 775 // they are a dasher user or not. Used to allow any GAIA account to be used for |
| 773 // testing the cloud policy framework. | 776 // testing the cloud policy framework. |
| 774 const char kForceLoadCloudPolicy[] = "force-load-cloud-policy"; | 777 const char kForceLoadCloudPolicy[] = "force-load-cloud-policy"; |
| 775 | 778 |
| 776 // Enables using GAIA information to populate profile name and icon. | 779 // Enables using GAIA information to populate profile name and icon. |
| 777 const char kGaiaProfileInfo[] = "gaia-profile-info"; | 780 const char kGaiaProfileInfo[] = "gaia-profile-info"; |
| 778 | 781 |
| 779 // Specifies an alternate URL to use for retrieving suggestions. Useful for | 782 // Specifies an alternate URL to use for speaking to Google. Useful for testing. |
| 780 // testing. | 783 const char kGoogleBaseURL[] = "google-base-url"; |
| 781 const char kGoogleBaseSuggestURL[] = "google-base-suggest-url"; | |
| 782 | 784 |
| 783 // Specifies an alternate URL to use for retrieving the search domain for | 785 // Specifies an alternate URL to use for retrieving the search domain for |
| 784 // Google. Useful for testing. | 786 // Google. Useful for testing. |
| 785 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url"; | 787 const char kGoogleSearchDomainCheckURL[] = "google-search-domain-check-url"; |
| 786 | 788 |
| 787 // Specifies a custom name for the GSSAPI library to load. | 789 // Specifies a custom name for the GSSAPI library to load. |
| 788 const char kGSSAPILibraryName[] = "gssapi-library-name"; | 790 const char kGSSAPILibraryName[] = "gssapi-library-name"; |
| 789 | 791 |
| 790 // These flags show the man page on Linux. They are equivalent to each | 792 // These flags show the man page on Linux. They are equivalent to each |
| 791 // other. | 793 // other. |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 830 // (not counting backup attempts which would also consume threads). | 832 // (not counting backup attempts which would also consume threads). |
| 831 // --host-resolver-retry-attempts must be set to zero for this to be exact. | 833 // --host-resolver-retry-attempts must be set to zero for this to be exact. |
| 832 const char kHostResolverParallelism[] = "host-resolver-parallelism"; | 834 const char kHostResolverParallelism[] = "host-resolver-parallelism"; |
| 833 | 835 |
| 834 // The maximum number of retry attempts to resolve the host. Set this to zero | 836 // The maximum number of retry attempts to resolve the host. Set this to zero |
| 835 // to disable host resolver retry attempts. | 837 // to disable host resolver retry attempts. |
| 836 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; | 838 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; |
| 837 | 839 |
| 838 // Causes net::URLFetchers to ignore requests for SSL client certificates, | 840 // Causes net::URLFetchers to ignore requests for SSL client certificates, |
| 839 // causing them to attempt an unauthenticated SSL/TLS session. This is intended | 841 // causing them to attempt an unauthenticated SSL/TLS session. This is intended |
| 840 // for use when testing various service URLs (eg: kPromoServerURL, kInstantURL, | 842 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, |
| 841 // kSbURLPrefix, kSyncServiceURL, etc) | 843 // kSyncServiceURL, etc) |
| 842 const char kIgnoreUrlFetcherCertRequests[] = | 844 const char kIgnoreUrlFetcherCertRequests[] = |
| 843 "ignore-urlfetcher-cert-requests"; | 845 "ignore-urlfetcher-cert-requests"; |
| 844 | 846 |
| 845 // Causes the browser to launch directly in incognito mode. | 847 // Causes the browser to launch directly in incognito mode. |
| 846 const char kIncognito[] = "incognito"; | 848 const char kIncognito[] = "incognito"; |
| 847 | 849 |
| 848 // Causes Chrome to attempt to get metadata from the webstore for the | 850 // Causes Chrome to attempt to get metadata from the webstore for the |
| 849 // app/extension ID given, and then prompt the user to download and install it. | 851 // app/extension ID given, and then prompt the user to download and install it. |
| 850 const char kInstallFromWebstore[] = "install-from-webstore"; | 852 const char kInstallFromWebstore[] = "install-from-webstore"; |
| 851 | 853 |
| 852 // Marks a renderer as an Instant process. | 854 // Marks a renderer as an Instant process. |
| 853 const char kInstantProcess[] = "instant-process"; | 855 const char kInstantProcess[] = "instant-process"; |
| 854 | 856 |
| 855 // URL to use for instant. If specified this overrides the url from the | |
| 856 // TemplateURL. | |
| 857 const char kInstantURL[] = "instant-url"; | |
| 858 | |
| 859 // Used for testing - keeps browser alive after last browser window closes. | 857 // Used for testing - keeps browser alive after last browser window closes. |
| 860 const char kKeepAliveForTest[] = "keep-alive-for-test"; | 858 const char kKeepAliveForTest[] = "keep-alive-for-test"; |
| 861 | 859 |
| 862 // Enable Kiosk mode. | 860 // Enable Kiosk mode. |
| 863 const char kKioskMode[] = "kiosk"; | 861 const char kKioskMode[] = "kiosk"; |
| 864 | 862 |
| 865 // Print automatically in kiosk mode. |kKioskMode| must be set as well. | 863 // Print automatically in kiosk mode. |kKioskMode| must be set as well. |
| 866 // See http://crbug.com/31395. | 864 // See http://crbug.com/31395. |
| 867 const char kKioskModePrinting[] = "kiosk-printing"; | 865 const char kKioskModePrinting[] = "kiosk-printing"; |
| 868 | 866 |
| (...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1601 | 1599 |
| 1602 // ----------------------------------------------------------------------------- | 1600 // ----------------------------------------------------------------------------- |
| 1603 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1601 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1604 // | 1602 // |
| 1605 // You were going to just dump your switches here, weren't you? Instead, please | 1603 // You were going to just dump your switches here, weren't you? Instead, please |
| 1606 // put them in alphabetical order above, or in order inside the appropriate | 1604 // put them in alphabetical order above, or in order inside the appropriate |
| 1607 // ifdef at the bottom. The order should match the header. | 1605 // ifdef at the bottom. The order should match the header. |
| 1608 // ----------------------------------------------------------------------------- | 1606 // ----------------------------------------------------------------------------- |
| 1609 | 1607 |
| 1610 } // namespace switches | 1608 } // namespace switches |
| OLD | NEW |