| Index: chrome/browser/ui/views/detachable_toolbar_view.cc
|
| diff --git a/chrome/browser/ui/views/detachable_toolbar_view.cc b/chrome/browser/ui/views/detachable_toolbar_view.cc
|
| index f1f9a40a7094b5d168f3ee4a93e4a75108ba50eb..354af9fac055e5979e2853922d0d59e2e3a77f98 100644
|
| --- a/chrome/browser/ui/views/detachable_toolbar_view.cc
|
| +++ b/chrome/browser/ui/views/detachable_toolbar_view.cc
|
| @@ -65,12 +65,20 @@ void DetachableToolbarView::CalculateContentArea(
|
| // static
|
| void DetachableToolbarView::PaintHorizontalBorder(gfx::Canvas* canvas,
|
| DetachableToolbarView* view) {
|
| + PaintHorizontalBorderWithColor(canvas, view,
|
| + ThemeService::GetDefaultColor(ThemeService::COLOR_TOOLBAR_SEPARATOR));
|
| +}
|
| +
|
| +// static
|
| +void DetachableToolbarView::PaintHorizontalBorderWithColor(
|
| + gfx::Canvas* canvas,
|
| + DetachableToolbarView* view,
|
| + SkColor border_color) {
|
| // Border can be at the top or at the bottom of the view depending on whether
|
| // the view (bar/shelf) is attached or detached.
|
| int thickness = views::NonClientFrameView::kClientEdgeThickness;
|
| int y = view->IsDetached() ? 0 : (view->height() - thickness);
|
| - canvas->FillRect(gfx::Rect(0, y, view->width(), thickness),
|
| - ThemeService::GetDefaultColor(ThemeService::COLOR_TOOLBAR_SEPARATOR));
|
| + canvas->FillRect(gfx::Rect(0, y, view->width(), thickness), border_color);
|
| }
|
|
|
| // static
|
|
|