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

Unified Diff: content/browser/renderer_host/media/media_devices_manager.h

Issue 2368213002: Remove AudioOutputDeviceEnumerator. Replace usage with MediaDevicesManager. (Closed)
Patch Set: Remove BoolDeviceTypes std::array literals Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/media_devices_manager.h
diff --git a/content/browser/renderer_host/media/media_devices_manager.h b/content/browser/renderer_host/media/media_devices_manager.h
index 98494214212ac3af1cca8872ecd489f6c71bed25..55acd9ac8d099219e60f9f134de3399ff42cb15e 100644
--- a/content/browser/renderer_host/media/media_devices_manager.h
+++ b/content/browser/renderer_host/media/media_devices_manager.h
@@ -40,8 +40,13 @@ using MediaDeviceEnumeration =
class CONTENT_EXPORT MediaDevicesManager
: public base::SystemMonitor::DevicesChangedObserver {
public:
- // Use MediaDeviceType values to index on this type.
- using BoolDeviceTypes = std::array<bool, NUM_MEDIA_DEVICE_TYPES>;
+ // Use MediaDeviceType values to index on this type. By default all device
+ // types are false.
+ class BoolDeviceTypes final
+ : public std::array<bool, NUM_MEDIA_DEVICE_TYPES> {
+ public:
+ BoolDeviceTypes() { fill(false); }
+ };
using EnumerationCallback =
base::Callback<void(const MediaDeviceEnumeration&)>;

Powered by Google App Engine
This is Rietveld 408576698