Index: ash/system/status_area_widget.cc |
diff --git a/ash/system/status_area_widget.cc b/ash/system/status_area_widget.cc |
index 59f91a7a9ac50440e5f66282c0b237456580395c..afb086ab888aa1064ef3579197789f310090132f 100644 |
--- a/ash/system/status_area_widget.cc |
+++ b/ash/system/status_area_widget.cc |
@@ -351,7 +351,7 @@ bool StatusAreaWidget::ShouldShowLauncher() const { |
web_notification_tray_->IsMessageCenterBubbleVisible())) |
return true; |
- if (!Shell::GetInstance()->shelf()->IsVisible()) |
+ if (!RootWindowController::ForLauncher(GetNativeView())->shelf()->IsVisible()) |
return false; |
// If the launcher is currently visible, don't hide the launcher if the mouse |