Index: ash/system/status_area_widget_delegate.cc |
diff --git a/ash/system/status_area_widget_delegate.cc b/ash/system/status_area_widget_delegate.cc |
index 603f64d3f5aeabc8bf7b13d46db719ef00dab051..85074867c62d7152beb6e99ec7e2c0159d0f36e8 100644 |
--- a/ash/system/status_area_widget_delegate.cc |
+++ b/ash/system/status_area_widget_delegate.cc |
@@ -104,8 +104,7 @@ const views::Widget* StatusAreaWidgetDelegate::GetWidget() const { |
void StatusAreaWidgetDelegate::OnGestureEvent(ui::GestureEvent* event) { |
views::Widget* target_widget = |
static_cast<views::View*>(event->target())->GetWidget(); |
- WmWindow* target_window = WmWindow::Get(target_widget->GetNativeWindow()); |
- WmShelf* shelf = target_window->GetRootWindowController()->GetShelf(); |
+ WmShelf* shelf = WmShelf::ForWindow(target_widget->GetNativeWindow()); |
if (shelf->ProcessGestureEvent(*event)) |
event->StopPropagation(); |
else |