[Omnibox] Fixing NPE when LocationBarLayout gets focus post destroy
In this fix we check for presence of mAutocompleteCoordinator when running a lambda handling focus change. We also need to prevent a case of double destroy, which happens in test. Alternative considered was to have a boolean: mIsDestroyed and check that where necessary. Choosing a more specific solution as that is more consistent with the other code we have. Bug: 1094242 Change-Id: Iba32f931e1ccec76357c551fddd72acddcd1d5df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2243258Reviewed-by:Patrick Noland <pnoland@chromium.org> Reviewed-by:
David Trainor <dtrainor@chromium.org> Commit-Queue: Filip Gorski <fgorski@chromium.org> Cr-Commit-Position: refs/heads/master@{#777941}
Showing
Please register or sign in to comment