Fix invalid references to QuickAnswersPreTargetHandler
QuickAnswersPreTargetHandler is added as a ViewObserver to the QuickAnswersView. Since the view owns an instance of the handler, it must stop observing the view when it is deleted to prevent invalid references to it from ~QuickAnswersView() later. The issue was observed when a failing trybot reverted a related change in chromium/2212238. is_debug set to true. Bug: b:157182213 Test: Tested on Chrome OS VM and running ash:ash_unittests with Change-Id: If59e512a45faab65a99ed4e76a1e00c5e60550aa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2216816Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Commit-Queue: Abhijeet Singh <siabhijeet@google.com> Cr-Commit-Position: refs/heads/master@{#772430}
Showing
Please register or sign in to comment