Gate voice search behind the AudioCaptureAllowed policy.
As we intend to merge this into 88, this check is controllable via the VoiceSearchAudioCapturePolicy feature. To keep this change small, hiding the mic is best-effort. There are cases where the user's profile is not yet available when layout decisions are being made. In those cases, we will continue to show the voice search mics, but will not initiate a voice search when the mics are pressed. Future CLs will add observers so the mic surfaces can be hidden as soon as the profile is available. Bug: 1161022 Change-Id: I772788288dc41b610f996c0b631e83e5cba117ef Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2598008 Commit-Queue: Josh Simmons <jds@google.com> Reviewed-by:Filip Gorski <fgorski@chromium.org> Cr-Commit-Position: refs/heads/master@{#839051}
Showing
Please register or sign in to comment