Index: ash/wm/gestures/system_pinch_handler.cc |
diff --git a/ash/wm/gestures/system_pinch_handler.cc b/ash/wm/gestures/system_pinch_handler.cc |
index 806f4f96b8b4696f0f2bf4fb5269614ebb50538c..39a733beffc65779164a72a0b1d3660c32146da0 100644 |
--- a/ash/wm/gestures/system_pinch_handler.cc |
+++ b/ash/wm/gestures/system_pinch_handler.cc |
@@ -6,6 +6,7 @@ |
#include "ash/launcher/launcher.h" |
#include "ash/screen_ash.h" |
+#include "ash/shelf/shelf_widget.h" |
#include "ash/shell.h" |
#include "ash/wm/property_util.h" |
#include "ash/wm/window_util.h" |
@@ -131,7 +132,7 @@ gfx::Rect SystemPinchHandler::GetPhantomWindowScreenBounds( |
Launcher* launcher = Launcher::ForWindow(window); |
gfx::Rect rect = launcher->GetScreenBoundsOfItemIconForWindow(target_); |
if (rect.IsEmpty()) |
- rect = launcher->widget()->GetWindowBoundsInScreen(); |
+ rect = launcher->shelf_widget()->GetWindowBoundsInScreen(); |
else |
rect.Inset(-8, -8); |
phantom_state_ = PHANTOM_WINDOW_MINIMIZED; |