[ToolbarMVC] Clean up LocationBar destruction and re-creation
Testing a smaller (included) fix for a crash in updateMicButtonState revealed a few other post-destruction issues that were previously hidden by LocationBarLayout never being nulled out. So this CL * Null checks VoiceRecognitionHandler in updateMicButtonState * Guards against post-destruction callback/delegate invocation in URLBar * Prevents a post-destruction call to onSuggestionsReceived in AutocompleteMediator (and fixes incorrect documentation) Bug: 1151225, 1151080, 1146585 Change-Id: Iae295a7629c35aeae8ce357e414b05e6847d62e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2552570Reviewed-by:Filip Gorski <fgorski@chromium.org> Reviewed-by:
Tomasz Wiszkowski <ender@google.com> Commit-Queue: Patrick Noland <pnoland@chromium.org> Cr-Commit-Position: refs/heads/master@{#829885}
Showing
Please register or sign in to comment