Index: ash/wm/window_animations.cc |
diff --git a/ash/wm/window_animations.cc b/ash/wm/window_animations.cc |
index 66831b27469b20f4c13e2fe74575932383d149d9..e04c4b1ea9029e07ed5ce1160b29ec0ae8827ba7 100644 |
--- a/ash/wm/window_animations.cc |
+++ b/ash/wm/window_animations.cc |
@@ -397,7 +397,7 @@ void AnimateHideWindow_Workspace(aura::Window* window) { |
} |
gfx::Rect GetMinimizeRectForWindow(aura::Window* window) { |
- gfx::Rect target_bounds = Shell::GetInstance()->launcher()-> |
+ gfx::Rect target_bounds = Launcher::ForWindow(window)-> |
GetScreenBoundsOfItemIconForWindow(window); |
if (target_bounds.IsEmpty()) { |
// Assume the launcher is overflowed, zoom off to the bottom right of the |