| Index: ash/wm/dock/docked_window_resizer_unittest.cc
|
| diff --git a/ash/wm/dock/docked_window_resizer_unittest.cc b/ash/wm/dock/docked_window_resizer_unittest.cc
|
| index cbb86b3329700ddd85e0d87c59f38e55843033fb..8bf4e94cf218ccef69cf3327ed57f781f263ffe1 100644
|
| --- a/ash/wm/dock/docked_window_resizer_unittest.cc
|
| +++ b/ash/wm/dock/docked_window_resizer_unittest.cc
|
| @@ -1371,8 +1371,8 @@ TEST_P(DockedWindowResizerTest, DragToShelf) {
|
| EXPECT_EQ(DOCKED_ALIGNMENT_NONE, docked_alignment(manager));
|
|
|
| // Drag down almost to shelf. A panel will snap, a regular window won't.
|
| - ShelfWidget* shelf = GetPrimaryShelf()->GetShelfWidgetForTesting();
|
| - const int shelf_y = shelf->GetWindowBoundsInScreen().y();
|
| + const int shelf_y =
|
| + GetPrimaryShelf()->shelf_widget()->GetWindowBoundsInScreen().y();
|
| const int kDistanceFromShelf = 10;
|
| ASSERT_NO_FATAL_FAILURE(DragStart(w1.get()));
|
| DragMove(0, -kDistanceFromShelf + shelf_y - w1->bounds().bottom());
|
|
|