Fix OmniboxViewTest Crash
commit5af02f56a271ef100cfd8abfe1079b4a35534e2c
authorjonross <jonross@chromium.org>
Wed, 29 Jul 2015 19:21:31 +0000 (29 12:21 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Jul 2015 19:22:17 +0000 (29 19:22 +0000)
tree1ee50c3ad61e79b468505fd92f5e593fd9317f2e
parent9e898d4c6d9728b65b7f3d66920afa575303c016
Fix OmniboxViewTest Crash
Prevent a segfault during shutdown of interactive_ui_tests.

OmniboxResultView will exit layout early if there is no ThemeProvider. This can
occur when animations are running during shutdown, after OmniboxResultView has
been removed from the tree of Views.

TEST=OmniboxViewTest.AcceptKeywordBySpace
BUG=514934

Review URL: https://codereview.chromium.org/1257533003

Cr-Commit-Position: refs/heads/master@{#340945}
chrome/browser/ui/views/omnibox/omnibox_result_view.cc