| Index: ash/common/shelf/shelf_tooltip_manager.cc
|
| diff --git a/ash/common/shelf/shelf_tooltip_manager.cc b/ash/common/shelf/shelf_tooltip_manager.cc
|
| index b655cb7bac8557c98917429daea1028c9cdf3548..5e2c5a6dbc390fbcb848ba5ef3f94d3a0f7b104b 100644
|
| --- a/ash/common/shelf/shelf_tooltip_manager.cc
|
| +++ b/ash/common/shelf/shelf_tooltip_manager.cc
|
| @@ -250,8 +250,11 @@ void ShelfTooltipManager::OnAutoHideStateChanged(ShelfAutoHideState new_state) {
|
| }
|
|
|
| bool ShelfTooltipManager::ShouldShowTooltipForView(views::View* view) {
|
| - return shelf_view_ && shelf_view_->ShouldShowTooltipForView(view) &&
|
| - shelf_view_->wm_shelf()->GetVisibilityState() == SHELF_VISIBLE;
|
| + WmShelf* shelf = shelf_view_ ? shelf_view_->wm_shelf() : nullptr;
|
| + return shelf && shelf_view_->ShouldShowTooltipForView(view) &&
|
| + (shelf->GetVisibilityState() == SHELF_VISIBLE ||
|
| + (shelf->GetVisibilityState() == SHELF_AUTO_HIDE &&
|
| + shelf->GetAutoHideState() == SHELF_AUTO_HIDE_SHOWN));
|
| }
|
|
|
| } // namespace ash
|
|
|