Index: ash/shelf/shelf_tooltip_manager_unittest.cc |
diff --git a/ash/shelf/shelf_tooltip_manager_unittest.cc b/ash/shelf/shelf_tooltip_manager_unittest.cc |
index 72dcaced973866571a5e23b78ca9796f8c7817cc..b3df6ed1081273f80ce900cfe0d077eca10cadb7 100644 |
--- a/ash/shelf/shelf_tooltip_manager_unittest.cc |
+++ b/ash/shelf/shelf_tooltip_manager_unittest.cc |
@@ -122,10 +122,9 @@ TEST_F(ShelfTooltipManagerTest, HideWhenShelfIsAutoHide) { |
ShowImmediately(); |
ASSERT_TRUE(TooltipIsVisible()); |
- ShelfLayoutManager* shelf_layout_manager = shelf_->shelf_layout_manager(); |
- shelf_layout_manager->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
- shelf_layout_manager->UpdateAutoHideState(); |
- ASSERT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf_layout_manager->auto_hide_state()); |
+ shelf_->SetAutoHideBehavior(SHELF_AUTO_HIDE_BEHAVIOR_ALWAYS); |
+ shelf_->shelf_layout_manager()->UpdateAutoHideState(); |
+ ASSERT_EQ(SHELF_AUTO_HIDE_HIDDEN, shelf_->GetAutoHideState()); |
// Tooltip visibility change for auto hide may take time. |
EXPECT_TRUE(TooltipIsVisible()); |