Revert "Consolidate interactions with |CrasAudioHandler|."
This reverts commit ccba8bc4. Reason for revert: Causes Chrome to crash on Chrome OS: crbug.com/1164258 Original change's description: > Consolidate interactions with |CrasAudioHandler|. > > Previously 2 places in the code were interacting with |CrasAudioHandler|: > - |PlatformApiImpl| subscribes to device changes, and passes this > information to |AudioInputHost|. > - |AudioInputHost| posts the new hotword model to |CrasAudioHandler|. > > This made it hard/impossible to split |AudioInputHost| from > |PlatformApiImpl|, which is needed to handle audio input in the > Libassistant mojom service. > > To solve this I moved all interactions with |CrasAudioHandler| inside a > new class |AudioDevices|, of which an instance is owned by > |AudioInputHost|. > > This also allowed me to add a bunch of new unittests. > > deployed on real hardware. > > Bug: b/171748795 > Test: chromeos_unittests --gtest_filter="Assistant*:Audio*" and manually > Change-Id: I8ec9cec6672236f6365345b292efbe828518be69 > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2610953 > Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org> > Reviewed-by: Xiaohui Chen <xiaohuic@chromium.org> > Auto-Submit: Jeroen Dhollander <jeroendh@chromium.org> > Cr-Commit-Position: refs/heads/master@{#841155} TBR=xiaohuic@chromium.org,meilinw@chromium.org,chromium-scoped@luci-project-accounts.iam.gserviceaccount.com,jeroendh@chromium.org Change-Id: I1f11ed9e14063f91e7f734caf0696748b3d3b7de No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: b/171748795 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2615734 Commit-Queue: Sergei Datsenko <dats@chromium.org> Reviewed-by:Sergei Datsenko <dats@chromium.org> Cr-Commit-Position: refs/heads/master@{#841458}
Showing
Please register or sign in to comment