-
Jeroen Dhollander authored
The crash happened if the Android app list was updated while the Assistant was stopped. To solve this we now stop observing Android app list updates when the Assistant is stopped. Notes: - I also renamed |AddAppListEventSubscriber| to |AddAndFireAppListEventSubscriber| to better describe its behavior. - I also changed |ScopedObserver| to |ScopedObservation|, as |ScopedObserver| is deprecated. - I looked into adding unittests for this but decided against it as it won't be trivial and the code will be reworked in the near future during the Libassistant V2 migration. Bug: 1136387 Test: chromeos_unittests Change-Id: Icf536c9aad54af3e9ab306464c2a47075076e60d Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2600448Reviewed-by:
Yue Li <updowndota@chromium.org> Reviewed-by:
Meilin Wang <meilinw@chromium.org> Commit-Queue: Yue Li <updowndota@chromium.org> Commit-Queue: Jeroen Dhollander <jeroendh@chromium.org> Cr-Commit-Position: refs/heads/master@{#839486}
caa00604