Index: ash/wm/shelf_layout_manager_unittest.cc |
diff --git a/ash/wm/shelf_layout_manager_unittest.cc b/ash/wm/shelf_layout_manager_unittest.cc |
index 4428c5d548973b09668fe80be503a71f87265b61..4fdfdb2938857ac31b319f5b33e9dff18fa2be57 100644 |
--- a/ash/wm/shelf_layout_manager_unittest.cc |
+++ b/ash/wm/shelf_layout_manager_unittest.cc |
@@ -440,12 +440,12 @@ TEST_F(ShelfLayoutManagerTest, SetAutoHideBehavior) { |
shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
EXPECT_EQ(ShelfLayoutManager::AUTO_HIDE, shelf->visibility_state()); |
EXPECT_EQ(display_bounds.bottom() - ShelfLayoutManager::kAutoHideSize, |
- shelf->GetMaximizedWindowBounds(window).bottom()); |
+ shelf->GetWorkAreaBounds(window).bottom()); |
shelf->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_NEVER); |
EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); |
EXPECT_GT(display_bounds.bottom() - ShelfLayoutManager::kAutoHideSize, |
- shelf->GetMaximizedWindowBounds(window).bottom()); |
+ shelf->GetWorkAreaBounds(window).bottom()); |
widget->Maximize(); |
EXPECT_EQ(ShelfLayoutManager::VISIBLE, shelf->visibility_state()); |