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 2059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2070 SINGLE_VALUE_TYPE(switches::kEnableSeccompFilterSandbox) | 2070 SINGLE_VALUE_TYPE(switches::kEnableSeccompFilterSandbox) |
2071 }, | 2071 }, |
2072 #endif | 2072 #endif |
2073 { | 2073 { |
2074 "enable-touch-hover", | 2074 "enable-touch-hover", |
2075 IDS_FLAGS_ENABLE_TOUCH_HOVER_NAME, | 2075 IDS_FLAGS_ENABLE_TOUCH_HOVER_NAME, |
2076 IDS_FLAGS_ENABLE_TOUCH_HOVER_DESCRIPTION, | 2076 IDS_FLAGS_ENABLE_TOUCH_HOVER_DESCRIPTION, |
2077 kOsAndroid, | 2077 kOsAndroid, |
2078 SINGLE_VALUE_TYPE("enable-touch-hover") | 2078 SINGLE_VALUE_TYPE("enable-touch-hover") |
2079 }, | 2079 }, |
| 2080 { |
| 2081 "enable-fill-on-account-select", |
| 2082 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_NAME, |
| 2083 IDS_ENABLE_FILL_ON_ACCOUNT_SELECT_DESCRIPTION, |
| 2084 kOsAll, |
| 2085 ENABLE_DISABLE_VALUE_TYPE(autofill::switches::kEnableFillOnAccountSelect, |
| 2086 autofill::switches::kDisableFillOnAccountSelect) |
| 2087 }, |
2080 | 2088 |
2081 // NOTE: Adding new command-line switches requires adding corresponding | 2089 // NOTE: Adding new command-line switches requires adding corresponding |
2082 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2090 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2083 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2091 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2084 }; | 2092 }; |
2085 | 2093 |
2086 const Experiment* experiments = kExperiments; | 2094 const Experiment* experiments = kExperiments; |
2087 size_t num_experiments = arraysize(kExperiments); | 2095 size_t num_experiments = arraysize(kExperiments); |
2088 | 2096 |
2089 // Stores and encapsulates the little state that about:flags has. | 2097 // Stores and encapsulates the little state that about:flags has. |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2649 } | 2657 } |
2650 | 2658 |
2651 const Experiment* GetExperiments(size_t* count) { | 2659 const Experiment* GetExperiments(size_t* count) { |
2652 *count = num_experiments; | 2660 *count = num_experiments; |
2653 return experiments; | 2661 return experiments; |
2654 } | 2662 } |
2655 | 2663 |
2656 } // namespace testing | 2664 } // namespace testing |
2657 | 2665 |
2658 } // namespace about_flags | 2666 } // namespace about_flags |
OLD | NEW |