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 "media/audio/audio_features.h" | 77 #include "media/audio/audio_features.h" |
77 #include "media/base/media_switches.h" | 78 #include "media/base/media_switches.h" |
78 #include "media/media_features.h" | 79 #include "media/media_features.h" |
79 #include "media/midi/midi_switches.h" | 80 #include "media/midi/midi_switches.h" |
80 #include "net/cert/cert_verify_proc_android.h" | 81 #include "net/cert/cert_verify_proc_android.h" |
81 #include "ppapi/features/features.h" | 82 #include "ppapi/features/features.h" |
82 #include "printing/features/features.h" | 83 #include "printing/features/features.h" |
83 #include "ui/base/ui_base_switches.h" | 84 #include "ui/base/ui_base_switches.h" |
(...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2201 | 2202 |
2202 #if defined(OS_CHROMEOS) | 2203 #if defined(OS_CHROMEOS) |
2203 {"force-enable-stylus-tools", IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_NAME, | 2204 {"force-enable-stylus-tools", IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_NAME, |
2204 IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_DESCRIPTION, kOsCrOS, | 2205 IDS_FLAGS_FORCE_ENABLE_STYLUS_TOOLS_DESCRIPTION, kOsCrOS, |
2205 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, | 2206 SINGLE_VALUE_TYPE(ash::switches::kAshForceEnablePalette)}, |
2206 #endif // defined(OS_CHROMEOS) | 2207 #endif // defined(OS_CHROMEOS) |
2207 | 2208 |
2208 {"enable-midi-manager-dynamic-instantiation", | 2209 {"enable-midi-manager-dynamic-instantiation", |
2209 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, | 2210 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_NAME, |
2210 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, | 2211 IDS_FLAGS_ENABLE_MIDI_MANAGER_DYNAMIC_INSTANTIATION_DESCRIPTION, kOsAll, |
2211 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)} | 2212 FEATURE_VALUE_TYPE(midi::features::kMidiManagerDynamicInstantiation)}, |
2213 | |
2214 #if defined(OS_WIN) | |
scheib
2017/02/11 01:45:18
Are these #if defined required? IIRC the logic of
Reilly Grant (use Gerrit)
2017/02/11 01:48:55
The base::Feature instance is defined within #if g
| |
2215 {"new-usb-backend", IDS_FLAGS_NEW_USB_BACKEND_NAME, | |
2216 IDS_FLAGS_NEW_USB_BACKEND_DESCRIPTION, kOsWin, | |
2217 FEATURE_VALUE_TYPE(device::kNewUsbBackend)}, | |
2218 #endif // defined(OS_WIN) | |
2212 | 2219 |
2213 // NOTE: Adding new command-line switches requires adding corresponding | 2220 // NOTE: Adding new command-line switches requires adding corresponding |
2214 // entries to enum "LoginCustomFlags" in histograms.xml. See note in | 2221 // entries to enum "LoginCustomFlags" in histograms.xml. See note in |
2215 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. | 2222 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. |
2216 }; | 2223 }; |
2217 | 2224 |
2218 class FlagsStateSingleton { | 2225 class FlagsStateSingleton { |
2219 public: | 2226 public: |
2220 FlagsStateSingleton() | 2227 FlagsStateSingleton() |
2221 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} | 2228 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2411 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; | 2418 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; |
2412 | 2419 |
2413 const FeatureEntry* GetFeatureEntries(size_t* count) { | 2420 const FeatureEntry* GetFeatureEntries(size_t* count) { |
2414 *count = arraysize(kFeatureEntries); | 2421 *count = arraysize(kFeatureEntries); |
2415 return kFeatureEntries; | 2422 return kFeatureEntries; |
2416 } | 2423 } |
2417 | 2424 |
2418 } // namespace testing | 2425 } // namespace testing |
2419 | 2426 |
2420 } // namespace about_flags | 2427 } // namespace about_flags |
OLD | NEW |