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

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

Issue 1607923002: Correctly handle enumerations for AudioManagers that report only the default audio output device. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2623
Patch Set: Created 4 years, 11 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/audio_renderer_host.cc
diff --git a/content/browser/renderer_host/media/audio_renderer_host.cc b/content/browser/renderer_host/media/audio_renderer_host.cc
index 49e395bd0edd694d600d280b7a72eb9568c1c043..d469d3424332a05f895eabe9299278d244c0fbea 100644
--- a/content/browser/renderer_host/media/audio_renderer_host.cc
+++ b/content/browser/renderer_host/media/audio_renderer_host.cc
@@ -840,9 +840,9 @@ void AudioRendererHost::TranslateDeviceID(
const std::string& device_id,
const GURL& security_origin,
const OutputDeviceInfoCB& callback,
- const AudioOutputDeviceEnumeration& device_infos) {
+ const AudioOutputDeviceEnumeration& enumeration) {
DCHECK_CURRENTLY_ON(BrowserThread::IO);
- for (const AudioOutputDeviceInfo& device_info : device_infos) {
+ for (const AudioOutputDeviceInfo& device_info : enumeration.devices) {
if (device_id.empty()) {
if (device_info.unique_id == media::AudioManagerBase::kDefaultDeviceId) {
callback.Run(true, device_info);
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.h ('k') | content/browser/renderer_host/media/media_stream_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698