[AudioService] Fix audio sandbox policy knob.
http://crrev.com/c/1831763 introduced a policy to make sure that enterprises can explicitly control the audio sandbox. The CL assumed that all calls of IsAudioSandboxEnabled() would happen on the browser process. It was, however, noticed that this is not the case as IsAudioSandboxEnabled() is called on the audio utility process to configure the sandbox. This caused the sandbox to always be enabled, since the default value for g_audio_sandbox_enabled is true. This CL fixes the behavior by replacing the global static variable with a switch which is then copied over to the audio utility process. Bug: 1018580 Change-Id: I810ca1f0c9aed43b892c06960cd8a87fc6debd8b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1901029Reviewed-by:Will Harris <wfh@chromium.org> Reviewed-by:
Guido Urdaneta <guidou@chromium.org> Reviewed-by:
Olga Sharonova <olka@chromium.org> Reviewed-by:
Avi Drissman <avi@chromium.org> Commit-Queue: Armando Miraglia <armax@chromium.org> Cr-Commit-Position: refs/heads/master@{#713680}
Showing
Please register or sign in to comment