File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 8
8
#include " content/nw/src/media/media_capture_devices_dispatcher.h"
9
9
#include " content/nw/src/media/media_internals.h"
10
10
#include " content/public/browser/browser_thread.h"
11
+ #include " content/public/common/desktop_media_id.h"
11
12
#include " content/public/common/media_stream_request.h"
12
13
13
14
using content::BrowserThread;
@@ -226,8 +227,10 @@ void MediaStreamDevicesController::HandleTapMediaRequest() {
226
227
content::MEDIA_TAB_AUDIO_CAPTURE, " " , " " ));
227
228
}
228
229
if (request_.video_type == content::MEDIA_DESKTOP_VIDEO_CAPTURE) {
230
+ content::DesktopMediaID media_id =
231
+ content::DesktopMediaID::Parse (request_.requested_video_device_id );
229
232
devices.push_back (content::MediaStreamDevice (
230
- content::MEDIA_DESKTOP_VIDEO_CAPTURE, std::string (), " Screen" ));
233
+ content::MEDIA_DESKTOP_VIDEO_CAPTURE, media_id. ToString (), " Screen" ));
231
234
}
232
235
233
236
callback_.Run (devices, scoped_ptr<content::MediaStreamUI>());
You can’t perform that action at this time.
0 commit comments