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

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

Issue 1339183002: Add localized default audio device names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix descriptions. Created 5 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/audio_output_device_enumerator.cc
diff --git a/content/browser/renderer_host/media/audio_output_device_enumerator.cc b/content/browser/renderer_host/media/audio_output_device_enumerator.cc
index 516cde09ba31ba85a9bae2a8b4ec49b32357a514..9b40024637dbca2a0d555c31e4aa68d4efcd3d39 100644
--- a/content/browser/renderer_host/media/audio_output_device_enumerator.cc
+++ b/content/browser/renderer_host/media/audio_output_device_enumerator.cc
@@ -26,7 +26,7 @@ AudioOutputDeviceEnumeration EnumerateDevicesOnDeviceThread(
// If no devices in enumeration, return a list with a default device
if (device_names.empty()) {
snapshot.push_back({media::AudioManagerBase::kDefaultDeviceId,
- media::AudioManagerBase::kDefaultDeviceName,
+ audio_manager->GetDefaultDeviceName(),
audio_manager->GetDefaultOutputStreamParameters()});
return snapshot;
}

Powered by Google App Engine
This is Rietveld 408576698