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

Unified Diff: content/renderer/media/media_stream_dispatcher.cc

Issue 2763743002: Android: not to pause screen capture when Chrome is put to background (Closed)
Patch Set: address comments on PS#1 Created 3 years, 9 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/renderer/media/media_stream_dispatcher.cc
diff --git a/content/renderer/media/media_stream_dispatcher.cc b/content/renderer/media/media_stream_dispatcher.cc
index 2ce2c83aa7c6caa362be84862407bac86d792100..7df660f75643bf1eb4243903c198893123fb355d 100644
--- a/content/renderer/media/media_stream_dispatcher.cc
+++ b/content/renderer/media/media_stream_dispatcher.cc
@@ -175,6 +175,16 @@ void MediaStreamDispatcher::OnStreamStarted(const std::string& label) {
Send(new MediaStreamHostMsg_StreamStarted(label));
}
+void MediaStreamDispatcher::GetVideoCaptureDevices(
+ StreamDeviceInfoArray* video_array) {
+ for (const auto& stream_it : label_stream_map_) {
+ for (const auto& video_device : stream_it.second.video_array) {
+ if (video_device.device.type == MEDIA_DEVICE_VIDEO_CAPTURE)
miu 2017/03/22 23:09:42 Please change this to: if (!IsScreenCaptureMedi
braveyao 2017/03/23 03:44:19 Done.
+ video_array->push_back(video_device);
+ }
+ }
+}
+
void MediaStreamDispatcher::OnDestruct() {
// Do not self-destruct. UserMediaClientImpl owns |this|.
}

Powered by Google App Engine
This is Rietveld 408576698