Commit a24a1a0c authored by Yu-Hsuan Hsu's avatar Yu-Hsuan Hsu Committed by Chromium LUCI CQ

Use empty ID if the default device is given on LaCrOS

Not use the specific device ID if the default device is given on
ChromeOS LaCrOS. It should have the same behavior as ChromeOS Ash.

BUG=b:176570413

Change-Id: I7b60e0829e3cc68df2d0d51451564e15d38e9ef2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606877Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#841827}
parent 30f27383
...@@ -343,7 +343,7 @@ AudioOutputStream* AudioManagerBase::MakeAudioOutputStreamProxy( ...@@ -343,7 +343,7 @@ AudioOutputStream* AudioManagerBase::MakeAudioOutputStreamProxy(
std::string output_device_id = std::string output_device_id =
AudioDeviceDescription::IsDefaultDevice(device_id) AudioDeviceDescription::IsDefaultDevice(device_id)
? ?
#if BUILDFLAG(IS_CHROMEOS_ASH) #if BUILDFLAG(IS_CHROMEOS_ASH) || BUILDFLAG(IS_CHROMEOS_LACROS)
// On ChromeOS, it is expected that, if the default device is given, // On ChromeOS, it is expected that, if the default device is given,
// no specific device ID should be used since the actual output device // no specific device ID should be used since the actual output device
// should change dynamically if the system default device changes. // should change dynamically if the system default device changes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment