Index: ash/common/system/tray/tray_background_view.cc |
diff --git a/ash/common/system/tray/tray_background_view.cc b/ash/common/system/tray/tray_background_view.cc |
index 3da2d1b35243478513dce07313447ed283c80ac6..ac25f147a2625604759a1102d9cf8716019ca3df 100644 |
--- a/ash/common/system/tray/tray_background_view.cc |
+++ b/ash/common/system/tray/tray_background_view.cc |
@@ -291,6 +291,7 @@ TrayBackgroundView::TrayBackgroundView(WmShelf* wm_shelf) |
shelf_alignment_(SHELF_ALIGNMENT_BOTTOM), |
background_(NULL), |
is_active_(false), |
+ is_separator_visible_(true), |
widget_observer_(new TrayWidgetObserver(this)) { |
DCHECK(wm_shelf_); |
set_notify_enter_exit_on_child(true); |
@@ -581,7 +582,8 @@ void TrayBackgroundView::OnPaint(gfx::Canvas* canvas) { |
ActionableView::OnPaint(canvas); |
if (!MaterialDesignController::IsShelfMaterial() || |
shelf()->GetBackgroundType() == |
- ShelfBackgroundType::SHELF_BACKGROUND_DEFAULT) { |
+ ShelfBackgroundType::SHELF_BACKGROUND_DEFAULT || |
+ !is_separator_visible_) { |
return; |
} |
// In the given |canvas|, for a horizontal shelf draw a separator line to the |