Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
diff --git a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
index 15966f5efc0877b0acd4e2e83ae031fade92526e..ff4c0b8aa2bb9def9e7a1c015ee861da526a020e 100644 |
--- a/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
+++ b/chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
@@ -666,6 +666,8 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) { |
int y = toolbar_bounds.y(); |
int h = toolbar_bounds.height(); |
+ const bool mode_material = ui::MaterialDesignController::IsModeMaterial(); |
+ |
// Gross hack: We split the toolbar images into two pieces, since sometimes |
// (popup mode) the toolbar isn't tall enough to show the whole image. The |
// split happens between the top shadow section and the bottom gradient |
@@ -737,7 +739,8 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) { |
bottom_edge_height, false); |
gfx::ImageSkia* toolbar_center = |
- tp->GetImageSkiaNamed(IDR_CONTENT_TOP_CENTER); |
+ tp->GetImageSkiaNamed(mode_material ? |
+ IDR_THEME_TOOLBAR : IDR_CONTENT_TOP_CENTER); |
canvas->TileImageInt(*toolbar_center, 0, 0, left_x + toolbar_left->width(), |
y, right_x - (left_x + toolbar_left->width()), |
split_point); |
@@ -752,7 +755,7 @@ void OpaqueBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) { |
bottom_edge_height, false); |
// Draw the content/toolbar separator. |
- if (ui::MaterialDesignController::IsModeMaterial()) { |
+ if (mode_material) { |
toolbar_bounds.Inset(kClientEdgeThickness, 0); |
BrowserView::Paint1pxHorizontalLine( |
canvas, |