Prevent translate infobar crash in touchless mode

This patch adds a null check to the overridden close logic in the
compact translate infobar. If the infobar is not properly initialized
the custom logic will crash when blocked.

Bug: 964538
Change-Id: I171beae9e406ed415ca3d4a20d621a150d1454e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1618152
Commit-Queue: Matthew Jones <mdjones@chromium.org>
Reviewed-by: Theresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#661415}
1 file changed