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

Unified Diff: content/browser/renderer_host/media/media_stream_manager.cc

Issue 2326623003: Make SystemMonitor report all audio device changes instead of just audio capture. (Closed)
Patch Set: Created 4 years, 3 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/browser/renderer_host/media/media_stream_manager.cc
diff --git a/content/browser/renderer_host/media/media_stream_manager.cc b/content/browser/renderer_host/media/media_stream_manager.cc
index b79792f41d4eda0a90bd982205a866320367e88c..096adcc525697a18daffbd21d5cbf55b79b58b15 100644
--- a/content/browser/renderer_host/media/media_stream_manager.cc
+++ b/content/browser/renderer_host/media/media_stream_manager.cc
@@ -2040,7 +2040,7 @@ void MediaStreamManager::OnDevicesChanged(
// changes (from the operating system).
MediaStreamType stream_type;
- if (device_type == base::SystemMonitor::DEVTYPE_AUDIO_CAPTURE) {
+ if (device_type == base::SystemMonitor::DEVTYPE_AUDIO) {
stream_type = MEDIA_DEVICE_AUDIO_CAPTURE;
} else if (device_type == base::SystemMonitor::DEVTYPE_VIDEO_CAPTURE) {
stream_type = MEDIA_DEVICE_VIDEO_CAPTURE;
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | content/browser/renderer_host/media/media_stream_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698