Chromium Code Reviews| Index: ash/wm/panels/panel_window_resizer_unittest.cc |
| diff --git a/ash/wm/panels/panel_window_resizer_unittest.cc b/ash/wm/panels/panel_window_resizer_unittest.cc |
| index 1329dd73eb4cb7d9fecfe8a60adc8558aa9b3b22..f1d8f40270622b1bc1fb8983039829f34a74c521 100644 |
| --- a/ash/wm/panels/panel_window_resizer_unittest.cc |
| +++ b/ash/wm/panels/panel_window_resizer_unittest.cc |
| @@ -268,11 +268,9 @@ TEST_F(PanelWindowResizerTest, DetachThenHideShelf) { |
| // Hide the shelf. This minimizes all attached windows but should ignore |
| // the dragged window. |
| - ShelfLayoutManager* layout_manager = |
| - RootWindowController::ForWindow(window.get()) |
| - ->shelf_widget() |
| - ->shelf_layout_manager(); |
| - layout_manager->SetAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN); |
| + Shelf* shelf = RootWindowController::ForWindow(window.get())->GetShelf(); |
| + shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN); |
| + ShelfLayoutManager* layout_manager = shelf->shelf_layout_manager(); |
|
msw
2016/06/01 00:53:24
nit: inline below?
James Cook
2016/06/01 15:53:07
Done.
|
| layout_manager->UpdateVisibilityState(); |
| RunAllPendingInMessageLoop(); |
| EXPECT_FALSE(state->IsMinimized()); |