Fix unit tests that use OmniboxViewViews in Refresh.
Some tests would create an instance of OmniboxViewViews, but without a location bar. Refresh tries to access the location bar to set the placeholder text, and this would crash. This patch moves that code into Init and guards it by checking that location_bar_view_ is defined. Bug: 846410 Change-Id: I0a1aec21f515dcc441e52c92c0c1adc58163348f Reviewed-on: https://chromium-review.googlesource.com/1098141Reviewed-by:Tommy Li <tommycli@chromium.org> Commit-Queue: Bret Sepulveda <bsep@chromium.org> Cr-Commit-Position: refs/heads/master@{#566682}
Showing
Please register or sign in to comment