Fix null-dereference in GetOmniboxColor
GetThemeProvider() will return nullptr before the view is added to the widget, so avoid using it in OmniboxTabSwitchButton and instead obtain the theme from OmniboxResultView. BUG=1004012 R=pkasting Change-Id: I464b7a81b73df06fb18d6c2f6a9a9180f0d79079 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1804820 Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#696629}
Showing
Please register or sign in to comment