Index: ash/common/wm_root_window_controller.cc |
diff --git a/ash/common/wm_root_window_controller.cc b/ash/common/wm_root_window_controller.cc |
index f2851f6ac646bf4e8585bb61907f301b00bdac32..ebe7418df96caa8f552ba27737336cb5fe0a84dd 100644 |
--- a/ash/common/wm_root_window_controller.cc |
+++ b/ash/common/wm_root_window_controller.cc |
@@ -215,6 +215,15 @@ void WmRootWindowController::CreateShelf() { |
shelf->shelf_widget()->PostCreateShelf(); |
} |
+void WmRootWindowController::ShowShelf() { |
+ WmShelf* shelf = GetShelf(); |
+ if (!shelf->IsShelfInitialized()) |
+ return; |
+ // TODO(jamescook): Move this into WmShelf. |
+ shelf->shelf_widget()->SetShelfVisibility(true); |
+ shelf->shelf_widget()->status_area_widget()->Show(); |
+} |
+ |
SystemTray* WmRootWindowController::GetSystemTray() { |
ShelfWidget* shelf_widget = GetShelf()->shelf_widget(); |
if (!shelf_widget || !shelf_widget->status_area_widget()) |