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

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

Issue 2323913007: Add constructor taking group ID to MediaStreamDevice and StreamDeviceInfo (Closed)
Patch Set: Fix constructor Created 4 years, 3 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 b79792f41d4eda0a90bd982205a866320367e88c..66f0eb7e001439028fb9bcbe06db2df69e40c2b2 100644
--- a/content/browser/renderer_host/media/media_stream_manager.cc
+++ b/content/browser/renderer_host/media/media_stream_manager.cc
@@ -765,10 +765,8 @@ void MediaStreamManager::AudioOutputDevicesEnumerated(
if (device_enumeration.has_actual_devices) {
for (const auto& entry : device_enumeration.devices) {
- StreamDeviceInfo device_info(MEDIA_DEVICE_AUDIO_OUTPUT, entry.device_name,
- entry.unique_id);
- device_info.device.group_id = entry.group_id;
- device_infos.push_back(device_info);
+ device_infos.emplace_back(MEDIA_DEVICE_AUDIO_OUTPUT, entry.device_name,
+ entry.unique_id, entry.group_id);
}
}

Powered by Google App Engine
This is Rietveld 408576698