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 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2229 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, | 2229 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, |
2230 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, | 2230 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, |
2231 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, | 2231 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, |
2232 | 2232 |
2233 #if defined(OS_WIN) | 2233 #if defined(OS_WIN) |
2234 {"new-usb-backend", IDS_FLAGS_NEW_USB_BACKEND_NAME, | 2234 {"new-usb-backend", IDS_FLAGS_NEW_USB_BACKEND_NAME, |
2235 IDS_FLAGS_NEW_USB_BACKEND_DESCRIPTION, kOsWin, | 2235 IDS_FLAGS_NEW_USB_BACKEND_DESCRIPTION, kOsWin, |
2236 FEATURE_VALUE_TYPE(device::kNewUsbBackend)}, | 2236 FEATURE_VALUE_TYPE(device::kNewUsbBackend)}, |
2237 #endif // defined(OS_WIN) | 2237 #endif // defined(OS_WIN) |
2238 | 2238 |
| 2239 #if defined(OS_CHROMEOS) |
| 2240 {"enable-touch-support-for-screen-magnifier", |
| 2241 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_NAME, |
| 2242 IDS_FLAGS_ENABLE_TOUCH_SUPPORT_FOR_SCREEN_MAGNIFIER_DESCRIPTION, kOsCrOS, |
| 2243 SINGLE_VALUE_TYPE( |
| 2244 chromeos::switches::kEnableTouchSupportForScreenMagnifier)}, |
| 2245 #endif // OS_CHROMEOS |
| 2246 |
2239 // NOTE: Adding new command-line switches requires adding corresponding | 2247 // NOTE: Adding new command-line switches requires adding corresponding |
2240 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2248 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2241 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2249 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2242 }; | 2250 }; |
2243 | 2251 |
2244 class FlagsStateSingleton { | 2252 class FlagsStateSingleton { |
2245 public: | 2253 public: |
2246 FlagsStateSingleton() | 2254 FlagsStateSingleton() |
2247 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2255 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
2248 ~FlagsStateSingleton() {} | 2256 ~FlagsStateSingleton() {} |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2437 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2445 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2438 | 2446 |
2439 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2447 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2440 *count = arraysize(kFeatureEntries); | 2448 *count = arraysize(kFeatureEntries); |
2441 return kFeatureEntries; | 2449 return kFeatureEntries; |
2442 } | 2450 } |
2443 | 2451 |
2444 } // namespace testing | 2452 } // namespace testing |
2445 | 2453 |
2446 } // namespace about_flags | 2454 } // namespace about_flags |
OLD | NEW |