Simplify GetOpaqueBorderColor() by using GetThemeProvider().
This should be non-null because this function is only called during painting, when there should always be a widget. The behavioral effect is that the location bar border color should better reflect the theme toolbar color for popup windows. I believe when this code was originally written, popup windows were not themed, so this wasn't necessary. Bug: none Change-Id: Ie4b33531cae28ce9a72c7571ebb579345fef83d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1941189 Auto-Submit: Peter Kasting <pkasting@chromium.org> Commit-Queue: Evan Stade <estade@chromium.org> Reviewed-by:Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#720557}
Showing
Please register or sign in to comment