| Index: ash/system/overview/overview_button_tray.cc
|
| diff --git a/ash/system/overview/overview_button_tray.cc b/ash/system/overview/overview_button_tray.cc
|
| index ec2912fa209d008cc62ac4496737993227e6a4e5..c960077d11107a602f18281c5b3657ab9b3a71cd 100644
|
| --- a/ash/system/overview/overview_button_tray.cc
|
| +++ b/ash/system/overview/overview_button_tray.cc
|
| @@ -114,9 +114,12 @@ void OverviewButtonTray::SetIconBorderForShelfAlignment() {
|
| }
|
|
|
| void OverviewButtonTray::UpdateIconVisibility() {
|
| - SetVisible(Shell::GetInstance()->maximize_mode_controller()->
|
| - IsMaximizeModeWindowManagerEnabled() &&
|
| - Shell::GetInstance()->window_selector_controller()->CanSelect());
|
| + SetVisible(Shell::GetInstance()
|
| + ->maximize_mode_controller()
|
| + ->IsMaximizeModeWindowManagerEnabled() &&
|
| + Shell::GetInstance()
|
| + ->window_selector_controller()
|
| + ->IsUserInActiveDesktopEnvironment());
|
| }
|
|
|
| } // namespace ash
|
|
|