Commit 72323ebd authored by Emircan Uysaler's avatar Emircan Uysaler Committed by Commit Bot

Handle getDisplayMedia case in MediaStreamCaptureIndicator

This CL adds getDisplayMedia() calls going through MediaStreamCaptureIndicator
into the existing |desktop_stream_count_|.

Bug: 326740
Change-Id: I4c16e41c281d96bd9012b4bb66381d5c81d351ca
Reviewed-on: https://chromium-review.googlesource.com/1180097Reviewed-by: default avatarWeiyong Yao <braveyao@chromium.org>
Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Emircan Uysaler <emircan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#584228}
parent 6472da3f
...@@ -235,9 +235,11 @@ int& MediaStreamCaptureIndicator::WebContentsDeviceUsage::GetStreamCount( ...@@ -235,9 +235,11 @@ int& MediaStreamCaptureIndicator::WebContentsDeviceUsage::GetStreamCount(
case content::MEDIA_GUM_DESKTOP_VIDEO_CAPTURE: case content::MEDIA_GUM_DESKTOP_VIDEO_CAPTURE:
case content::MEDIA_GUM_DESKTOP_AUDIO_CAPTURE: case content::MEDIA_GUM_DESKTOP_AUDIO_CAPTURE:
case content::MEDIA_DISPLAY_VIDEO_CAPTURE:
return desktop_stream_count_; return desktop_stream_count_;
default: case content::MEDIA_NO_SERVICE:
case content::NUM_MEDIA_TYPES:
NOTREACHED(); NOTREACHED();
return video_stream_count_; return video_stream_count_;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment