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

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

Issue 2609863004: Pass camera facing to WebKit (Closed)
Patch Set: modify settings names 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..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);
miu 2017/01/05 21:55:33 nit: push_back() would be more appropriate here.
shenghao 2017/01/06 09:43:01 Why? If using push_back(), I will need to create a
miu 2017/01/10 22:14:23 push_back() takes a const-ref argument (or an rval
shenghao 2017/01/11 12:00:53 Actually, |snapshot| is a vector of MediaDeviceInf
miu 2017/01/11 21:08:44 OIC! Okay then, sounds good to me. :)
}
mcasas 2017/01/05 20:26:37 No {} for one-line bodies.
shenghao 2017/01/06 09:43:01 Done.
DevicesEnumerated(MEDIA_DEVICE_TYPE_VIDEO_INPUT, snapshot);
}

Powered by Google App Engine
This is Rietveld 408576698