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

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

Issue 2703393007: Show meaningful name for cameras (Closed)
Patch Set: fix trybot Created 3 years, 10 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_stream_manager.cc
diff --git a/content/browser/renderer_host/media/media_stream_manager.cc b/content/browser/renderer_host/media/media_stream_manager.cc
index 12d5f829508bf1dcaa2e99ea465072b5f25af035..6173ff9c3e61a346e2995756f6ec5d0492fce501 100644
--- a/content/browser/renderer_host/media/media_stream_manager.cc
+++ b/content/browser/renderer_host/media/media_stream_manager.cc
@@ -1762,7 +1762,8 @@ MediaStreamDevices MediaStreamManager::ConvertToMediaStreamDevices(
const MediaDeviceInfoArray& device_infos) {
MediaStreamDevices devices;
for (const auto& info : device_infos)
- devices.emplace_back(stream_type, info.device_id, info.label);
+ devices.emplace_back(stream_type, info.device_id, info.label,
+ info.video_facing);
if (stream_type != MEDIA_DEVICE_VIDEO_CAPTURE)
return devices;
« no previous file with comments | « chrome/browser/ui/webui/settings/settings_media_devices_selection_handler.cc ('k') | content/common/media/media_devices.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698