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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 #include "components/sync/driver/sync_driver_switches.h" | 64 #include "components/sync/driver/sync_driver_switches.h" |
65 #include "components/tracing/common/tracing_switches.h" | 65 #include "components/tracing/common/tracing_switches.h" |
66 #include "components/translate/core/browser/translate_manager.h" | 66 #include "components/translate/core/browser/translate_manager.h" |
67 #include "components/translate/core/browser/translate_prefs.h" | 67 #include "components/translate/core/browser/translate_prefs.h" |
68 #include "components/version_info/version_info.h" | 68 #include "components/version_info/version_info.h" |
69 #include "content/public/browser/user_metrics.h" | 69 #include "content/public/browser/user_metrics.h" |
70 #include "content/public/common/content_features.h" | 70 #include "content/public/common/content_features.h" |
71 #include "content/public/common/content_switches.h" | 71 #include "content/public/common/content_switches.h" |
72 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" | 72 #include "content/public/common/feature_h264_with_openh264_ffmpeg.h" |
73 #include "content/public/common/features.h" | 73 #include "content/public/common/features.h" |
| 74 #include "device/base/features.h" |
74 #include "extensions/features/features.h" | 75 #include "extensions/features/features.h" |
75 #include "gin/public/gin_features.h" | 76 #include "gin/public/gin_features.h" |
76 #include "gpu/config/gpu_switches.h" | 77 #include "gpu/config/gpu_switches.h" |
77 #include "media/audio/audio_features.h" | 78 #include "media/audio/audio_features.h" |
78 #include "media/base/media_switches.h" | 79 #include "media/base/media_switches.h" |
79 #include "media/media_features.h" | 80 #include "media/media_features.h" |
80 #include "media/midi/midi_switches.h" | 81 #include "media/midi/midi_switches.h" |
81 #include "net/cert/cert_verify_proc_android.h" | 82 #include "net/cert/cert_verify_proc_android.h" |
82 #include "ppapi/features/features.h" | 83 #include "ppapi/features/features.h" |
83 #include "printing/features/features.h" | 84 #include "printing/features/features.h" |
(...skipping 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2200 | 2201 |
2201 #if defined(OS_CHROMEOS) | 2202 #if defined(OS_CHROMEOS) |
2202 {"force-enable-stylus-tools", IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_NAME, | 2203 {"force-enable-stylus-tools", IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_NAME, |
2203 IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_DESCRIPTION, kOsCrOS, | 2204 IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_DESCRIPTION, kOsCrOS, |
2204 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, | 2205 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, |
2205 #endif // defined(OS_CHROMEOS) | 2206 #endif // defined(OS_CHROMEOS) |
2206 | 2207 |
2207 {"enable-midi-manager-dynamic-instantiation", | 2208 {"enable-midi-manager-dynamic-instantiation", |
2208 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, | 2209 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, |
2209 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, | 2210 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, |
2210 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)} | 2211 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, |
| 2212 |
| 2213 #if defined(OS_WIN) |
| 2214 {"new-usb-backend", IDS_FLAGS_NEW_USB_BACKEND_NAME, |
| 2215 IDS_FLAGS_NEW_USB_BACKEND_DESCRIPTION, kOsWin, |
| 2216 FEATURE_VALUE_TYPE(device::kNewUsbBackend)}, |
| 2217 #endif // defined(OS_WIN) |
2211 | 2218 |
2212 // NOTE: Adding new command-line switches requires adding corresponding | 2219 // NOTE: Adding new command-line switches requires adding corresponding |
2213 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2220 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2214 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2221 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2215 }; | 2222 }; |
2216 | 2223 |
2217 class FlagsStateSingleton { | 2224 class FlagsStateSingleton { |
2218 public: | 2225 public: |
2219 FlagsStateSingleton() | 2226 FlagsStateSingleton() |
2220 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2227 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2410 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2417 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2411 | 2418 |
2412 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2419 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2413 *count = arraysize(kFeatureEntries); | 2420 *count = arraysize(kFeatureEntries); |
2414 return kFeatureEntries; | 2421 return kFeatureEntries; |
2415 } | 2422 } |
2416 | 2423 |
2417 } // namespace testing | 2424 } // namespace testing |
2418 | 2425 |
2419 } // namespace about_flags | 2426 } // namespace about_flags |
OLD | NEW |