Index: ash/shelf/shelf_window_watcher_unittest.cc |
diff --git a/ash/shelf/shelf_window_watcher_unittest.cc b/ash/shelf/shelf_window_watcher_unittest.cc |
index 14f3246586a1ec11e2efd1a0ce675a467845dce5..20ef792b3e02976be4ee026b060dcbb51f3eef6f 100644 |
--- a/ash/shelf/shelf_window_watcher_unittest.cc |
+++ b/ash/shelf/shelf_window_watcher_unittest.cc |
@@ -242,9 +242,9 @@ TEST_F(ShelfWindowWatcherTest, DragWindow) { |
EXPECT_EQ(STATUS_ACTIVE, model_->items()[index].status); |
// Simulate dragging of the window and check its item is not changed. |
- std::unique_ptr<WindowResizer> resizer(CreateWindowResizer( |
- WmWindow::Get(widget->GetNativeWindow()), gfx::Point(), HTCAPTION, |
- aura::client::WINDOW_MOVE_SOURCE_MOUSE)); |
+ std::unique_ptr<WindowResizer> resizer( |
+ CreateWindowResizer(widget->GetNativeWindow(), gfx::Point(), HTCAPTION, |
+ aura::client::WINDOW_MOVE_SOURCE_MOUSE)); |
ASSERT_TRUE(resizer.get()); |
resizer->Drag(gfx::Point(50, 50), 0); |
resizer->CompleteDrag(); |