Commit 9d250d4e authored by Yu-Hsuan Hsu's avatar Yu-Hsuan Hsu Committed by Commit Bot

Lacros: Use CRAS when running on ChromeOS

Add --use-cras flag when it is running on ChromeOS.

BUG=b:151905045

Change-Id: I336a928b512fb1489a82c90a7fd1b776107ef0a8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2374487
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Reviewed-by: default avatarHidehiko Abe <hidehiko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801456}
parent 67cf2569
......@@ -196,6 +196,10 @@ bool BrowserManager::Start() {
"--enable-crashpad",
"--breakpad-dump-location=" + crash_dir};
// CrAS is the default audio server in Chrome OS.
if (base::SysInfo::IsRunningOnChromeOS())
argv.push_back("--use-cras");
std::string additional_flags =
base::CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
chromeos::switches::kLacrosChromeAdditionalArgs);
......
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