Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(145)

Side by Side Diff: chrome/browser/about_flags.cc

Issue 2688303002: Add a feature flag for the new Windows USB backend. (Closed)
Patch Set: Fix Android build. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | device/base/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | device/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698