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

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

Issue 2462383002: Revert "Enable MidiManagerWinrt by default on Windows 10" (Closed)
Patch Set: rebase Created 4 years, 1 month 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') | media/midi/midi_manager_win.cc » ('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 1682 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 SINGLE_VALUE_TYPE(switches::kUseAndroidMidiApi)}, 1693 SINGLE_VALUE_TYPE(switches::kUseAndroidMidiApi)},
1694 #endif // OS_ANDROID 1694 #endif // OS_ANDROID
1695 #if defined(OS_WIN) 1695 #if defined(OS_WIN)
1696 {"trace-export-events-to-etw", IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, 1696 {"trace-export-events-to-etw", IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME,
1697 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, kOsWin, 1697 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, kOsWin,
1698 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, 1698 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)},
1699 {"merge-key-char-events", IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_NAME, 1699 {"merge-key-char-events", IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_NAME,
1700 IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_DESCRIPTION, kOsWin, 1700 IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_DESCRIPTION, kOsWin,
1701 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMergeKeyCharEvents, 1701 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMergeKeyCharEvents,
1702 switches::kDisableMergeKeyCharEvents)}, 1702 switches::kDisableMergeKeyCharEvents)},
1703 {"use-winrt-midi-api", IDS_FLAGS_USE_WINRT_MIDI_API_NAME,
1704 IDS_FLAGS_USE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
1705 FEATURE_VALUE_TYPE(media::midi::features::kMidiManagerWinrt)},
1703 #endif // OS_WIN 1706 #endif // OS_WIN
1704 #if BUILDFLAG(ENABLE_BACKGROUND) 1707 #if BUILDFLAG(ENABLE_BACKGROUND)
1705 {"enable-push-api-background-mode", IDS_FLAGS_PUSH_API_BACKGROUND_MODE_NAME, 1708 {"enable-push-api-background-mode", IDS_FLAGS_PUSH_API_BACKGROUND_MODE_NAME,
1706 IDS_FLAGS_PUSH_API_BACKGROUND_MODE_DESCRIPTION, kOsMac | kOsWin | kOsLinux, 1709 IDS_FLAGS_PUSH_API_BACKGROUND_MODE_DESCRIPTION, kOsMac | kOsWin | kOsLinux,
1707 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePushApiBackgroundMode, 1710 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePushApiBackgroundMode,
1708 switches::kDisablePushApiBackgroundMode)}, 1711 switches::kDisablePushApiBackgroundMode)},
1709 #endif // BUILDFLAG(ENABLE_BACKGROUND) 1712 #endif // BUILDFLAG(ENABLE_BACKGROUND)
1710 #if defined(OS_CHROMEOS) 1713 #if defined(OS_CHROMEOS)
1711 {"cros-regions-mode", IDS_FLAGS_CROS_REGIONS_MODE_NAME, 1714 {"cros-regions-mode", IDS_FLAGS_CROS_REGIONS_MODE_NAME,
1712 IDS_FLAGS_CROS_REGIONS_MODE_DESCRIPTION, kOsCrOS, 1715 IDS_FLAGS_CROS_REGIONS_MODE_DESCRIPTION, kOsCrOS,
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 #endif // OS_CHROMEOS 2052 #endif // OS_CHROMEOS
2050 {"material-security-verbose", IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_NAME, 2053 {"material-security-verbose", IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_NAME,
2051 IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_DESCRIPTION, kOsDesktop, 2054 IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_DESCRIPTION, kOsDesktop,
2052 MULTI_VALUE_TYPE(kSecurityVerboseChoices)}, 2055 MULTI_VALUE_TYPE(kSecurityVerboseChoices)},
2053 #if defined(OS_CHROMEOS) 2056 #if defined(OS_CHROMEOS)
2054 {"arc-boot-completed-broadcast", 2057 {"arc-boot-completed-broadcast",
2055 IDS_FLAGS_ARC_BOOT_COMPLETED, 2058 IDS_FLAGS_ARC_BOOT_COMPLETED,
2056 IDS_FLAGS_ARC_BOOT_COMPLETED_DESCRIPTION, kOsCrOS, 2059 IDS_FLAGS_ARC_BOOT_COMPLETED_DESCRIPTION, kOsCrOS,
2057 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)}, 2060 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)},
2058 #endif 2061 #endif
2059 #if defined(OS_WIN)
2060 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME,
2061 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
2062 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)},
2063 #endif // OS_WIN
2064 // NOTE: Adding new command-line switches requires adding corresponding 2062 // NOTE: Adding new command-line switches requires adding corresponding
2065 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2063 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2066 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2064 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2067 }; 2065 };
2068 2066
2069 class FlagsStateSingleton { 2067 class FlagsStateSingleton {
2070 public: 2068 public:
2071 FlagsStateSingleton() 2069 FlagsStateSingleton()
2072 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2070 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2073 ~FlagsStateSingleton() {} 2071 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2262 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2260 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2263 2261
2264 const FeatureEntry* GetFeatureEntries(size_t* count) { 2262 const FeatureEntry* GetFeatureEntries(size_t* count) {
2265 *count = arraysize(kFeatureEntries); 2263 *count = arraysize(kFeatureEntries);
2266 return kFeatureEntries; 2264 return kFeatureEntries;
2267 } 2265 }
2268 2266
2269 } // namespace testing 2267 } // namespace testing
2270 2268
2271 } // namespace about_flags 2269 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | media/midi/midi_manager_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698