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

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

Issue 2392263002: Enable MidiManagerWinrt by default on Windows 10 (Closed)
Patch Set: rebase Created 4 years, 2 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') | 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 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1744 SINGLE_VALUE_TYPE(switches::kUseAndroidMidiApi)}, 1744 SINGLE_VALUE_TYPE(switches::kUseAndroidMidiApi)},
1745 #endif // OS_ANDROID 1745 #endif // OS_ANDROID
1746 #if defined(OS_WIN) 1746 #if defined(OS_WIN)
1747 {"trace-export-events-to-etw", IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME, 1747 {"trace-export-events-to-etw", IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_NAME,
1748 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, kOsWin, 1748 IDS_FLAGS_TRACE_EXPORT_EVENTS_TO_ETW_DESRIPTION, kOsWin,
1749 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)}, 1749 SINGLE_VALUE_TYPE(switches::kTraceExportEventsToETW)},
1750 {"merge-key-char-events", IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_NAME, 1750 {"merge-key-char-events", IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_NAME,
1751 IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_DESCRIPTION, kOsWin, 1751 IDS_FLAGS_MERGE_KEY_CHAR_EVENTS_DESCRIPTION, kOsWin,
1752 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMergeKeyCharEvents, 1752 ENABLE_DISABLE_VALUE_TYPE(switches::kEnableMergeKeyCharEvents,
1753 switches::kDisableMergeKeyCharEvents)}, 1753 switches::kDisableMergeKeyCharEvents)},
1754 {"use-winrt-midi-api", IDS_FLAGS_USE_WINRT_MIDI_API_NAME,
1755 IDS_FLAGS_USE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
1756 FEATURE_VALUE_TYPE(media::midi::features::kMidiManagerWinrt)},
1757 #endif // OS_WIN 1754 #endif // OS_WIN
1758 #if BUILDFLAG(ENABLE_BACKGROUND) 1755 #if BUILDFLAG(ENABLE_BACKGROUND)
1759 {"enable-push-api-background-mode", IDS_FLAGS_PUSH_API_BACKGROUND_MODE_NAME, 1756 {"enable-push-api-background-mode", IDS_FLAGS_PUSH_API_BACKGROUND_MODE_NAME,
1760 IDS_FLAGS_PUSH_API_BACKGROUND_MODE_DESCRIPTION, kOsMac | kOsWin | kOsLinux, 1757 IDS_FLAGS_PUSH_API_BACKGROUND_MODE_DESCRIPTION, kOsMac | kOsWin | kOsLinux,
1761 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePushApiBackgroundMode, 1758 ENABLE_DISABLE_VALUE_TYPE(switches::kEnablePushApiBackgroundMode,
1762 switches::kDisablePushApiBackgroundMode)}, 1759 switches::kDisablePushApiBackgroundMode)},
1763 #endif // BUILDFLAG(ENABLE_BACKGROUND) 1760 #endif // BUILDFLAG(ENABLE_BACKGROUND)
1764 #if defined(OS_CHROMEOS) 1761 #if defined(OS_CHROMEOS)
1765 {"cros-regions-mode", IDS_FLAGS_CROS_REGIONS_MODE_NAME, 1762 {"cros-regions-mode", IDS_FLAGS_CROS_REGIONS_MODE_NAME,
1766 IDS_FLAGS_CROS_REGIONS_MODE_DESCRIPTION, kOsCrOS, 1763 IDS_FLAGS_CROS_REGIONS_MODE_DESCRIPTION, kOsCrOS,
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 #endif // OS_CHROMEOS 2103 #endif // OS_CHROMEOS
2107 {"material-security-verbose", IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_NAME, 2104 {"material-security-verbose", IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_NAME,
2108 IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_DESCRIPTION, kOsDesktop, 2105 IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_DESCRIPTION, kOsDesktop,
2109 MULTI_VALUE_TYPE(kSecurityVerboseChoices)}, 2106 MULTI_VALUE_TYPE(kSecurityVerboseChoices)},
2110 #if defined(OS_CHROMEOS) 2107 #if defined(OS_CHROMEOS)
2111 {"arc-boot-completed-broadcast", 2108 {"arc-boot-completed-broadcast",
2112 IDS_FLAGS_ARC_BOOT_COMPLETED, 2109 IDS_FLAGS_ARC_BOOT_COMPLETED,
2113 IDS_FLAGS_ARC_BOOT_COMPLETED_DESCRIPTION, kOsCrOS, 2110 IDS_FLAGS_ARC_BOOT_COMPLETED_DESCRIPTION, kOsCrOS,
2114 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)}, 2111 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)},
2115 #endif 2112 #endif
2113 #if defined(OS_WIN)
2114 {"disable-winrt-midi-api", IDS_FLAGS_DISABLE_WINRT_MIDI_API_NAME,
2115 IDS_FLAGS_DISABLE_WINRT_MIDI_API_DESCRIPTION, kOsWin,
2116 SINGLE_DISABLE_VALUE_TYPE(switches::kDisableWinrtMidiApi)},
2117 #endif // OS_WIN
2116 // NOTE: Adding new command-line switches requires adding corresponding 2118 // NOTE: Adding new command-line switches requires adding corresponding
2117 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2119 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2118 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2120 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2119 }; 2121 };
2120 2122
2121 class FlagsStateSingleton { 2123 class FlagsStateSingleton {
2122 public: 2124 public:
2123 FlagsStateSingleton() 2125 FlagsStateSingleton()
2124 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2126 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2125 ~FlagsStateSingleton() {} 2127 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2316 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2315 2317
2316 const FeatureEntry* GetFeatureEntries(size_t* count) { 2318 const FeatureEntry* GetFeatureEntries(size_t* count) {
2317 *count = arraysize(kFeatureEntries); 2319 *count = arraysize(kFeatureEntries);
2318 return kFeatureEntries; 2320 return kFeatureEntries;
2319 } 2321 }
2320 2322
2321 } // namespace testing 2323 } // namespace testing
2322 2324
2323 } // namespace about_flags 2325 } // 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