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

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 nits 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..b1f905325d07a59a3535fba605dc7cf1ac766df8 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::GetNonScreenCaptureDevices(
+ StreamDeviceInfoArray* video_array) {
+ for (const auto& stream_it : label_stream_map_) {
+ for (const auto& video_device : stream_it.second.video_array) {
+ if (!IsScreenCaptureMediaType(video_device.device.type))
+ 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