Add localized default audio device names.
commit943e1b33dac970c6a970d085b66c5c526d6b9870
authorajm <ajm@chromium.org>
Tue, 22 Sep 2015 00:04:08 +0000 (21 17:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 22 Sep 2015 00:04:52 +0000 (22 00:04 +0000)
tree67423d0ed60e3ba1de207be3a3734dbdb74f9639
parent9b954862a514954eee708cb8e172905002324a0b
Add localized default audio device names.

Add localized strings for the default audio device, the communications
device on Windows and the beamforming virtual input devices on ChromeOS.

Since the media layer can't access Chrome's resource bundle directly,
this adds an indirect mechanism modeled on net/base/net_module.h.

BUG=497001
TEST=The correct "Default" name appears on Linux in Chrome settings. On
a Swanky (which has beamforming support), the correct virtual device
names appear in both Chrome settings and the Hangouts settings dialog.

Review URL: https://codereview.chromium.org/1339183002

Cr-Commit-Position: refs/heads/master@{#350070}
34 files changed:
chrome/app/generated_resources.grd
chrome/browser/chrome_browser_main.cc
chrome/chrome_common.gypi
chrome/chrome_renderer.gypi
chrome/common/BUILD.gn
chrome/common/media/media_resource_provider.cc [new file with mode: 0644]
chrome/common/media/media_resource_provider.h [new file with mode: 0644]
chrome/renderer/BUILD.gn
chrome/renderer/DEPS
chrome/renderer/chrome_render_process_observer.cc
content/browser/renderer_host/media/audio_output_device_enumerator.cc
media/BUILD.gn
media/audio/alsa/audio_manager_alsa.cc
media/audio/android/audio_android_unittest.cc
media/audio/android/audio_manager_android.cc
media/audio/audio_manager.cc
media/audio/audio_manager.h
media/audio/audio_manager_base.cc
media/audio/audio_manager_base.h
media/audio/audio_manager_unittest.cc
media/audio/audio_output_controller_unittest.cc
media/audio/cras/audio_manager_cras.cc
media/audio/cras/audio_manager_cras.h
media/audio/mac/audio_manager_mac.cc
media/audio/pulse/audio_manager_pulse.cc
media/audio/win/audio_manager_win.cc
media/base/BUILD.gn
media/base/fake_media_resources.cc [new file with mode: 0644]
media/base/fake_media_resources.h [new file with mode: 0644]
media/base/media_resources.cc [new file with mode: 0644]
media/base/media_resources.h [new file with mode: 0644]
media/base/run_all_unittests.cc
media/cast/cast_testing.gypi
media/media.gyp