[EoC] Speculative crash fix for showing suggestions after destruction
This adds a speculative fix for a crash reported when tapping both the EoC toolbar button and clear tab button at the same time. This CL ignores clicks on the toolbar button if the model is not prepared (e.g. has been cleared before the click handler is invoked) and adds a null check before showing content. BUG=873052 Change-Id: I073919ce38f73046d9644523135d5b6cdbd42c59 Reviewed-on: https://chromium-review.googlesource.com/1172940 Commit-Queue: Theresa <twellington@chromium.org> Reviewed-by:Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#582684}
Showing
Please register or sign in to comment