Commit 17b85116 authored by Tomasz Wiszkowski's avatar Tomasz Wiszkowski Committed by Commit Bot

Cancel all pending Autocomplete operations on destroy.

Ensures that no suggestion updates are received after destroy() is called.

Bug: 1119805
Change-Id: I431fb60038274a8c6f54eb89d034822d77b08d09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2373383Reviewed-by: default avatarTed Choc <tedchoc@chromium.org>
Commit-Queue: Tomasz Wiszkowski <ender@google.com>
Cr-Commit-Position: refs/heads/master@{#801242}
parent cff35e1a
......@@ -194,6 +194,7 @@ class AutocompleteMediator implements OnSuggestionsReceivedListener, StartStopWi
}
public void destroy() {
stopAutocomplete(true);
mDropdownViewInfoListBuilder.destroy();
if (mTabObserver != null) {
mTabObserver.destroy();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment