Index: ash/wm/shelf_layout_manager.cc |
diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc |
index 46023ccb3abe65758c96947a0196fc13f4deaae8..9afbfc0412eac9500adc5bfe648be130da89ab44 100644 |
--- a/ash/wm/shelf_layout_manager.cc |
+++ b/ash/wm/shelf_layout_manager.cc |
@@ -867,7 +867,8 @@ ShelfLayoutManager::AutoHideState ShelfLayoutManager::CalculateAutoHideState( |
return AUTO_HIDE_HIDDEN; |
gfx::Rect shelf_region = launcher_widget()->GetWindowBoundsInScreen(); |
- if (Shell::GetInstance()->status_area_widget()->IsMessageBubbleShown() && |
+ if (shell->status_area_widget() && |
+ shell->status_area_widget()->IsMessageBubbleShown() && |
IsVisible()) { |
// Increase the the hit test area to prevent the shelf from disappearing |
// when the mouse is over the bubble gap. |