| 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..4fdc3dcf30b35fcd3e4fa62dac4f8c228099127b 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),
|
| + 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 ||
|
| + !separator_visible_) {
|
| return;
|
| }
|
| // In the given |canvas|, for a horizontal shelf draw a separator line to the
|
|
|