Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1406)

Unified Diff: ash/wm/panels/panel_window_resizer_unittest.cc

Issue 2017413002: ash: Fix variable names and setters in ShelfLayoutManager and tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@shellshelf
Patch Set: review comments 3 Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 cb02a79885b1ab2652a0bccf864d3db23a2aad55..fe5449a83d6dc6315c16bdbc22ead6707b322ba3 100644
--- a/ash/wm/panels/panel_window_resizer_unittest.cc
+++ b/ash/wm/panels/panel_window_resizer_unittest.cc
@@ -268,12 +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);
- layout_manager->UpdateVisibilityState();
+ Shelf* shelf = RootWindowController::ForWindow(window.get())->GetShelf();
+ shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_ALWAYS_HIDDEN);
+ shelf->shelf_layout_manager()->UpdateVisibilityState();
RunAllPendingInMessageLoop();
EXPECT_FALSE(state->IsMinimized());
EXPECT_EQ(kShellWindowId_PanelContainer, window->parent()->id());
« no previous file with comments | « ash/wm/panels/panel_layout_manager_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698