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

Pass switch --use-cras to new process

We need to pass switch --use-cras to the audio service so that chrome
will be able to use CRAS on linux.

Bug: 151905045
Change-Id: I7c8acf0f3c976ba40bf492a85a53c56a3254fcfe
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2332057Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Reviewed-by: default avatarBo <boliu@chromium.org>
Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Commit-Queue: Yu-Hsuan Hsu <yuhsuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#797769}
parent b3f071b4
...@@ -2731,6 +2731,10 @@ source_set("browser") { ...@@ -2731,6 +2731,10 @@ source_set("browser") {
deps += [ "//ui/ozone" ] deps += [ "//ui/ozone" ]
} }
if (use_cras) {
defines += [ "USE_CRAS" ]
}
if (enable_ipc_fuzzer) { if (enable_ipc_fuzzer) {
configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ] configs += [ "//tools/ipc_fuzzer:ipc_fuzzer_config" ]
} }
......
...@@ -274,6 +274,9 @@ bool UtilityProcessHost::StartProcess() { ...@@ -274,6 +274,9 @@ bool UtilityProcessHost::StartProcess() {
switches::kAlsaInputDevice, switches::kAlsaInputDevice,
switches::kAlsaOutputDevice, switches::kAlsaOutputDevice,
#endif #endif
#if defined(USE_CRAS)
switches::kUseCras,
#endif
#if defined(OS_WIN) #if defined(OS_WIN)
switches::kDisableHighResTimer, switches::kDisableHighResTimer,
switches::kEnableExclusiveAudio, switches::kEnableExclusiveAudio,
......
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