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

Unified Diff: content/browser/media/media_internals.cc

Issue 2169013002: Change class VideoCaptureDevice::Name to struct VideoCaptureDeviceDescriptor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed emircan's comments Created 4 years, 5 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/media/media_internals.cc
diff --git a/content/browser/media/media_internals.cc b/content/browser/media/media_internals.cc
index 33df1a834fc3b6d18f9947b8372a5f26e900e05b..ad601c26a7bdc1bae8b2d31d6cb8d3e4553480ec 100644
--- a/content/browser/media/media_internals.cc
+++ b/content/browser/media/media_internals.cc
@@ -615,14 +615,15 @@ void MediaInternals::UpdateVideoCaptureDeviceCapabilities(
std::unique_ptr<base::DictionaryValue> device_dict(
new base::DictionaryValue());
- device_dict->SetString("id", video_capture_device_info.name.id());
- device_dict->SetString(
- "name", video_capture_device_info.name.GetNameAndModel());
+ device_dict->SetString("id",
+ video_capture_device_info.descriptor.device_id);
+ device_dict->SetString("name", video_capture_device_info.GetNameAndModel());
device_dict->Set("formats", format_list);
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \
defined(OS_ANDROID)
device_dict->SetString(
- "captureApi", video_capture_device_info.name.GetCaptureApiTypeString());
+ "captureApi",
+ video_capture_device_info.descriptor.GetCaptureApiTypeString());
#endif
video_capture_capabilities_cached_data_.Append(std::move(device_dict));
}
« no previous file with comments | « no previous file | content/browser/media/media_internals_unittest.cc » ('j') | content/browser/media/media_internals_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698