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 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2039 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) | 2039 SINGLE_VALUE_TYPE(chromeos::switches::kDisableNewZIPUnpacker) |
2040 }, | 2040 }, |
2041 #endif // defined(OS_CHROMEOS) | 2041 #endif // defined(OS_CHROMEOS) |
2042 { | 2042 { |
2043 "ssl-version-min", | 2043 "ssl-version-min", |
2044 IDS_FLAGS_SSL_VERSION_MIN_NAME, | 2044 IDS_FLAGS_SSL_VERSION_MIN_NAME, |
2045 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, | 2045 IDS_FLAGS_SSL_VERSION_MIN_DESCRIPTION, |
2046 kOsAll, | 2046 kOsAll, |
2047 MULTI_VALUE_TYPE(kSSLVersionMinChoices) | 2047 MULTI_VALUE_TYPE(kSSLVersionMinChoices) |
2048 }, | 2048 }, |
| 2049 { |
| 2050 "enable-fill-on-account-select", |
| 2051 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_NAME, |
| 2052 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, |
| 2053 kOsAll, |
| 2054 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect, |
| 2055 autofill::switches::kDisableFillOnAccountSelect) |
| 2056 }, |
2049 // NOTE: Adding new command-line switches requires adding corresponding | 2057 // NOTE: Adding new command-line switches requires adding corresponding |
2050 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2058 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2051 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2059 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2052 }; | 2060 }; |
2053 | 2061 |
2054 const Experiment* experiments = kExperiments; | 2062 const Experiment* experiments = kExperiments; |
2055 size_t num_experiments = arraysize(kExperiments); | 2063 size_t num_experiments = arraysize(kExperiments); |
2056 | 2064 |
2057 // Stores and encapsulates the little state that about:flags has. | 2065 // Stores and encapsulates the little state that about:flags has. |
2058 class FlagsState { | 2066 class FlagsState { |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 } | 2632 } |
2625 | 2633 |
2626 const Experiment* GetExperiments(size_t* count) { | 2634 const Experiment* GetExperiments(size_t* count) { |
2627 *count = num_experiments; | 2635 *count = num_experiments; |
2628 return experiments; | 2636 return experiments; |
2629 } | 2637 } |
2630 | 2638 |
2631 } // namespace testing | 2639 } // namespace testing |
2632 | 2640 |
2633 } // namespace about_flags | 2641 } // namespace about_flags |
OLD | NEW |