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

Unified Diff: content/common/media/media_devices.cc

Issue 2703393007: Show meaningful name for cameras (Closed)
Patch Set: rebase 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
« no previous file with comments | « no previous file | extensions/strings/extensions_strings.grd » ('j') | media/capture/video/DEPS » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/media/media_devices.cc
diff --git a/content/common/media/media_devices.cc b/content/common/media/media_devices.cc
index 80661916fe8d8e8a30c3fb77b439ab53dfe61467..63d082647f9be784a18fc58bfdde364f7d6ebfe0 100644
--- a/content/common/media/media_devices.cc
+++ b/content/common/media/media_devices.cc
@@ -27,7 +27,8 @@ MediaDeviceInfo::MediaDeviceInfo(
MediaDeviceInfo::MediaDeviceInfo(
const media::VideoCaptureDeviceDescriptor& descriptor)
- : device_id(descriptor.device_id), label(descriptor.GetNameAndModel()) {}
+ : device_id(descriptor.device_id),
+ label(descriptor.GetHumanReadableName()) {}
MediaDeviceInfo::~MediaDeviceInfo() = default;
« no previous file with comments | « no previous file | extensions/strings/extensions_strings.grd » ('j') | media/capture/video/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698