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/browser/about_flags.h" | 5 #include "chrome/browser/about_flags.h" |
6 | 6 |
7 #include <iterator> | 7 #include <iterator> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
(...skipping 2077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2088 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) | 2088 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) |
2089 }, | 2089 }, |
2090 #endif // defined(OS_CHROMEOS) | 2090 #endif // defined(OS_CHROMEOS) |
2091 { | 2091 { |
2092 "ssl-version-min", | 2092 "ssl-version-min", |
2093 IDS_FLAGS_SSL_VERSION_MIN_NAME, | 2093 IDS_FLAGS_SSL_VERSION_MIN_NAME, |
2094 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, | 2094 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, |
2095 kOsAll, | 2095 kOsAll, |
2096 MULTI_VALUE_TYPE(kSSLVersionMinChoices) | 2096 MULTI_VALUE_TYPE(kSSLVersionMinChoices) |
2097 }, | 2097 }, |
| 2098 { |
| 2099 "enable-fill-on-account-select", |
| 2100 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_NAME, |
| 2101 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, |
| 2102 kOsAll, |
| 2103 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect, |
| 2104 autofill::switches::kDisableFillOnAccountSelect) |
| 2105 }, |
2098 // NOTE: Adding new command-line switches requires adding corresponding | 2106 // NOTE: Adding new command-line switches requires adding corresponding |
2099 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2107 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2100 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2108 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2101 }; | 2109 }; |
2102 | 2110 |
2103 const Experiment* experiments = kExperiments; | 2111 const Experiment* experiments = kExperiments; |
2104 size_t num_experiments = arraysize(kExperiments); | 2112 size_t num_experiments = arraysize(kExperiments); |
2105 | 2113 |
2106 // Stores and encapsulates the little state that about:flags has. | 2114 // Stores and encapsulates the little state that about:flags has. |
2107 class FlagsState { | 2115 class FlagsState { |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2673 } | 2681 } |
2674 | 2682 |
2675 const Experiment* GetExperiments(size_t* count) { | 2683 const Experiment* GetExperiments(size_t* count) { |
2676 *count = num_experiments; | 2684 *count = num_experiments; |
2677 return experiments; | 2685 return experiments; |
2678 } | 2686 } |
2679 | 2687 |
2680 } // namespace testing | 2688 } // namespace testing |
2681 | 2689 |
2682 } // namespace about_flags | 2690 } // namespace about_flags |
OLD | NEW |