| 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 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2195 IDS_FLAGS_AIA_FETCHING_DESCRIPTION, kOsAndroid, | 2195 IDS_FLAGS_AIA_FETCHING_DESCRIPTION, kOsAndroid, |
| 2196 FEATURE_VALUE_TYPE(net::CertVerifyProcAndroid::kAIAFetchingFeature)}, | 2196 FEATURE_VALUE_TYPE(net::CertVerifyProcAndroid::kAIAFetchingFeature)}, |
| 2197 #endif | 2197 #endif |
| 2198 | 2198 |
| 2199 #if defined(OS_CHROMEOS) | 2199 #if defined(OS_CHROMEOS) |
| 2200 {"force-enable-stylus-tools", IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_NAME, | 2200 {"force-enable-stylus-tools", IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_NAME, |
| 2201 IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_DESCRIPTION, kOsCrOS, | 2201 IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_DESCRIPTION, kOsCrOS, |
| 2202 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, | 2202 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, |
| 2203 #endif // defined(OS_CHROMEOS) | 2203 #endif // defined(OS_CHROMEOS) |
| 2204 | 2204 |
| 2205 {"enable-midi-manager-dynamic-instantiation", |
| 2206 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, |
| 2207 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, |
| 2208 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)} |
| 2209 |
| 2205 // NOTE: Adding new command-line switches requires adding corresponding | 2210 // NOTE: Adding new command-line switches requires adding corresponding |
| 2206 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2211 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
| 2207 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2212 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
| 2208 }; | 2213 }; |
| 2209 | 2214 |
| 2210 class FlagsStateSingleton { | 2215 class FlagsStateSingleton { |
| 2211 public: | 2216 public: |
| 2212 FlagsStateSingleton() | 2217 FlagsStateSingleton() |
| 2213 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2218 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
| 2214 ~FlagsStateSingleton() {} | 2219 ~FlagsStateSingleton() {} |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2403 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2408 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
| 2404 | 2409 |
| 2405 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2410 const FeatureEntry* GetFeatureEntries(size_t* count) { |
| 2406 *count = arraysize(kFeatureEntries); | 2411 *count = arraysize(kFeatureEntries); |
| 2407 return kFeatureEntries; | 2412 return kFeatureEntries; |
| 2408 } | 2413 } |
| 2409 | 2414 |
| 2410 } // namespace testing | 2415 } // namespace testing |
| 2411 | 2416 |
| 2412 } // namespace about_flags | 2417 } // namespace about_flags |
| OLD | NEW |