Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2429)

Unified Diff: ash/root_window_controller.cc

Issue 2907853002: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (Closed)
Patch Set: [mus+ash] Removes WmWindow from ash/shelf and ash/shell (removed some more wm_window.h) Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/shelf/shelf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « ash/root_window_controller.h ('k') | ash/shelf/shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698