Index: ash/root_window_controller.cc |
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc |
index 857e6e920b7ed49f0b1cdbbfe498338bfd039022..89d913ce0be155a154a4b968d2a505735cc3f3a5 100644 |
--- a/ash/root_window_controller.cc |
+++ b/ash/root_window_controller.cc |
@@ -364,7 +364,7 @@ void RootWindowController::InitializeShelf() { |
// TODO(jamescook): Eliminate this. Refactor AttachedPanelWidgetTargeter's |
// access to Shelf. |
- Shell::Get()->NotifyShelfCreatedForRootWindow(WmWindow::Get(GetRootWindow())); |
+ Shell::Get()->NotifyShelfCreatedForRootWindow(GetRootWindow()); |
shelf_->shelf_widget()->PostCreateShelf(); |
} |
@@ -773,9 +773,9 @@ void RootWindowController::Init(RootWindowType root_window_type) { |
void RootWindowController::InitLayoutManagers() { |
// Create the shelf and status area widgets. |
DCHECK(!shelf_->shelf_widget()); |
- GetShelf()->CreateShelfWidget(GetWindow()); |
- |
aura::Window* root = GetRootWindow(); |
+ GetShelf()->CreateShelfWidget(root); |
+ |
root_window_layout_manager_ = new wm::RootWindowLayoutManager(root); |
root->SetLayoutManager(root_window_layout_manager_); |