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

Unified Diff: chrome/browser/media/media_stream_capture_indicator.cc

Issue 312773002: Support for audio output devices for getMediaDevices. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/media_stream_capture_indicator.cc
diff --git a/chrome/browser/media/media_stream_capture_indicator.cc b/chrome/browser/media/media_stream_capture_indicator.cc
index 244a645bff07c3bdb7b9a3bf5a4ca33d9ab71b0e..2522a651a9f52acdd55997cd2673d24273556ed0 100644
--- a/chrome/browser/media/media_stream_capture_indicator.cc
+++ b/chrome/browser/media/media_stream_capture_indicator.cc
@@ -230,7 +230,7 @@ void MediaStreamCaptureIndicator::WebContentsDeviceUsage::AddDevices(
if (it->type == content::MEDIA_TAB_AUDIO_CAPTURE ||
it->type == content::MEDIA_TAB_VIDEO_CAPTURE) {
++mirroring_ref_count_;
- } else if (content::IsAudioMediaType(it->type)) {
+ } else if (content::IsAudioInputMediaType(it->type)) {
++audio_ref_count_;
} else if (content::IsVideoMediaType(it->type)) {
++video_ref_count_;
@@ -252,7 +252,7 @@ void MediaStreamCaptureIndicator::WebContentsDeviceUsage::RemoveDevices(
if (it->type == content::MEDIA_TAB_AUDIO_CAPTURE ||
it->type == content::MEDIA_TAB_VIDEO_CAPTURE) {
--mirroring_ref_count_;
- } else if (content::IsAudioMediaType(it->type)) {
+ } else if (content::IsAudioInputMediaType(it->type)) {
--audio_ref_count_;
} else if (content::IsVideoMediaType(it->type)) {
--video_ref_count_;
« no previous file with comments | « no previous file | content/browser/renderer_host/media/media_stream_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698