Commit 62d1b5d0 authored by Max Morin's avatar Max Morin Committed by Commit Bot

Add audio switches to utility process whitelist.

This CL adds the audio related switches which are used by the audio
service to the whitelisted switches for utility processes. This is
needed when running the audio service out of process.

Also moves all the ifdefed switches to the bottom.

Bug: 843103
Change-Id: I2172d02b28f5011a915c89d9509dd15ccb166950
Reviewed-on: https://chromium-review.googlesource.com/1059624
Commit-Queue: Max Morin <maxmorin@chromium.org>
Reviewed-by: default avatarKinuko Yasuda <kinuko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#559472}
parent 7ad7e759
...@@ -284,6 +284,23 @@ bool UtilityProcessHost::StartProcess() { ...@@ -284,6 +284,23 @@ bool UtilityProcessHost::StartProcess() {
switches::kUseGL, switches::kUseGL,
#if defined(OS_ANDROID) #if defined(OS_ANDROID)
switches::kOrderfileMemoryOptimization, switches::kOrderfileMemoryOptimization,
#endif
// These flags are used by the audio service:
switches::kAudioBufferSize,
switches::kAudioServiceQuitTimeoutMs,
switches::kDisableAudioOutput,
switches::kFailAudioStreamCreation,
switches::kMuteAudio,
switches::kUseFileForFakeAudioCapture,
#if defined(OS_LINUX) || defined(OS_FREEBSD) || defined(OS_SOLARIS)
switches::kAlsaInputDevice,
switches::kAlsaOutputDevice,
#endif
#if defined(OS_WIN)
switches::kEnableExclusiveAudio,
switches::kForceWaveAudio,
switches::kTrySupportedChannelLayouts,
switches::kWaveOutBuffers,
#endif #endif
}; };
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames,
......
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