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

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

Issue 2650153003: Add constructors and operators to MediaDeviceInfo. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | content/common/media/media_devices.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/media/media_devices_manager.cc
diff --git a/content/browser/renderer_host/media/media_devices_manager.cc b/content/browser/renderer_host/media/media_devices_manager.cc
index ccc3b4d4e2ea3f5bbf0e3f6a0865f14bf1f71bf8..e8d7f7de3f06b7cc7a147ad292cf6559be1c0072 100644
--- a/content/browser/renderer_host/media/media_devices_manager.cc
+++ b/content/browser/renderer_host/media/media_devices_manager.cc
@@ -385,8 +385,7 @@ void MediaDevicesManager::VideoInputDevicesEnumerated(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
MediaDeviceInfoArray snapshot;
for (const auto& descriptor : descriptors) {
- snapshot.emplace_back(descriptor.device_id, descriptor.GetNameAndModel(),
- std::string());
+ snapshot.emplace_back(descriptor);
}
DevicesEnumerated(MEDIA_DEVICE_TYPE_VIDEO_INPUT, snapshot);
}
« no previous file with comments | « no previous file | content/common/media/media_devices.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698