• Xiaohui Chen's avatar
    assistant: refactor voice interaction controller · 3e6c55f2
    Xiaohui Chen authored
    * Introduce assistant_state_proxy as a convenient mojom proxy client for
      voice_interaction_controller.
    * Introduce assistant_state_base as POD that can be shared between
      assistant_state_proxy and voice_interaction_controller to store state
    * Change assistant state accessers to base::Optional to reflect the async
      nature of reading these values.
    * Remove async Is___Enabled(Callback). The observer now will initialize
      state after attach.
    * Fixes assistant_manager_service_impl start up sequence to avoid potential
      multiple restarts with async assistant pref queries
    * Fixes a potential race when restarting assistant_manager
    
    Bug: b/112281490
    Test: locally build and run
    Change-Id: I7c57adef0919583283f2fb1312f6d6e191bf266a
    Reviewed-on: https://chromium-review.googlesource.com/c/1303333
    Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
    Reviewed-by: default avatarSam McNally <sammc@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: default avatarTao Wu <wutao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#604678}
    3e6c55f2
assistant_state_proxy.cc 3.42 KB