Index: ash/shelf/shelf_layout_manager.cc |
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc |
index d89ffb22ce78178bb9a30a3f6e0ad4d961969b40..7bda0c509c65a9412aad9a3bab845cd76cf88f5b 100644 |
--- a/ash/shelf/shelf_layout_manager.cc |
+++ b/ash/shelf/shelf_layout_manager.cc |
@@ -1031,10 +1031,9 @@ ShelfAutoHideState ShelfLayoutManager::CalculateAutoHideState( |
!shelf_widget_->shelf()) |
return SHELF_AUTO_HIDE_HIDDEN; |
- Shell* shell = Shell::GetInstance(); |
// Unhide the shelf only on the active screen when the AppList is shown |
// (crbug.com/312445). |
- if (shell->GetAppListTargetVisibility()) { |
+ if (WmShell::Get()->GetAppListTargetVisibility()) { |
aura::Window* active_window = wm::GetActiveWindow(); |
aura::Window* shelf_window = shelf_widget_->GetNativeWindow(); |
if (active_window && shelf_window && |