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

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

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: fix trybot errors 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
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..26bdf8947b6c0767536bb704c0d971d0ebbfb8ea 100644
--- a/content/browser/renderer_host/media/media_devices_manager.cc
+++ b/content/browser/renderer_host/media/media_devices_manager.cc
@@ -384,10 +384,8 @@ void MediaDevicesManager::VideoInputDevicesEnumerated(
const media::VideoCaptureDeviceDescriptors& descriptors) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
MediaDeviceInfoArray snapshot;
- for (const auto& descriptor : descriptors) {
- snapshot.emplace_back(descriptor.device_id, descriptor.GetNameAndModel(),
- std::string());
- }
+ for (const auto& descriptor : descriptors)
+ snapshot.emplace_back(descriptor);
DevicesEnumerated(MEDIA_DEVICE_TYPE_VIDEO_INPUT, snapshot);
}

Powered by Google App Engine
This is Rietveld 408576698