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 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2112 SINGLE_VALUE_TYPE(switches::kEnablePotentiallyAnnoyingSecurityFeatures) | 2112 SINGLE_VALUE_TYPE(switches::kEnablePotentiallyAnnoyingSecurityFeatures) |
2113 }, | 2113 }, |
2114 #endif | 2114 #endif |
2115 { | 2115 { |
2116 "enable-delay-agnostic-aec", | 2116 "enable-delay-agnostic-aec", |
2117 IDS_FLAGS_ENABLE_DELAY_AGNOSTIC_AEC_NAME, | 2117 IDS_FLAGS_ENABLE_DELAY_AGNOSTIC_AEC_NAME, |
2118 IDS_FLAGS_ENABLE_DELAY_AGNOSTIC_AEC_DESCRIPTION, | 2118 IDS_FLAGS_ENABLE_DELAY_AGNOSTIC_AEC_DESCRIPTION, |
2119 kOsDesktop, | 2119 kOsDesktop, |
2120 SINGLE_VALUE_TYPE(switches::kEnableDelayAgnosticAec) | 2120 SINGLE_VALUE_TYPE(switches::kEnableDelayAgnosticAec) |
2121 }, | 2121 }, |
| 2122 #if defined(OS_ANDROID) |
| 2123 { |
| 2124 "enable-cursor-anchor-info", |
| 2125 IDS_FLAGS_ENABLE_CURSOR_ANCHOR_INFO_NAME, |
| 2126 IDS_FLAGS_ENABLE_CURSOR_ANCHOR_INFO_DESCRIPTION, |
| 2127 kOsAndroid, |
| 2128 SINGLE_VALUE_TYPE(switches::kEnableCursorAnchorInfo) |
| 2129 }, |
| 2130 #endif |
2122 | 2131 |
2123 // NOTE: Adding new command-line switches requires adding corresponding | 2132 // NOTE: Adding new command-line switches requires adding corresponding |
2124 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2133 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2125 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2134 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2126 }; | 2135 }; |
2127 | 2136 |
2128 const Experiment* experiments = kExperiments; | 2137 const Experiment* experiments = kExperiments; |
2129 size_t num_experiments = arraysize(kExperiments); | 2138 size_t num_experiments = arraysize(kExperiments); |
2130 | 2139 |
2131 // Stores and encapsulates the little state that about:flags has. | 2140 // Stores and encapsulates the little state that about:flags has. |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2691 } | 2700 } |
2692 | 2701 |
2693 const Experiment* GetExperiments(size_t* count) { | 2702 const Experiment* GetExperiments(size_t* count) { |
2694 *count = num_experiments; | 2703 *count = num_experiments; |
2695 return experiments; | 2704 return experiments; |
2696 } | 2705 } |
2697 | 2706 |
2698 } // namespace testing | 2707 } // namespace testing |
2699 | 2708 |
2700 } // namespace about_flags | 2709 } // namespace about_flags |
OLD | NEW |