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

Unified Diff: ash/common/shelf/shelf_widget.cc

Issue 2761373002: Move yet more from WmShell to Shell (Closed)
Patch Set: merge Created 3 years, 9 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/common/shelf/shelf_locking_manager.cc ('k') | ash/common/shelf/shelf_window_watcher_item_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_widget.cc
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc
index 55e51428c2b72b1f863e03178227fc05d63d87bb..256c532a8a9f539fac6705bb20b7d19d1f49240b 100644
--- a/ash/common/shelf/shelf_widget.cc
+++ b/ash/common/shelf/shelf_widget.cc
@@ -183,7 +183,7 @@ void ShelfWidget::CreateStatusAreaWidget(WmWindow* status_container) {
// TODO(jamescook): Move ownership to RootWindowController.
status_area_widget_ = new StatusAreaWidget(status_container, wm_shelf_);
status_area_widget_->CreateTrayViews();
- if (WmShell::Get()->session_controller()->IsActiveUserSessionStarted())
+ if (Shell::Get()->session_controller()->IsActiveUserSessionStarted())
status_area_widget_->Show();
Shell::Get()->focus_cycler()->AddWidget(status_area_widget_);
background_animator_.AddObserver(status_area_widget_);
@@ -231,9 +231,8 @@ void ShelfWidget::OnShelfAlignmentChanged() {
ShelfView* ShelfWidget::CreateShelfView() {
DCHECK(!shelf_view_);
- shelf_view_ =
- new ShelfView(WmShell::Get()->shelf_model(),
- WmShell::Get()->shelf_delegate(), wm_shelf_, this);
+ shelf_view_ = new ShelfView(Shell::Get()->shelf_model(),
+ Shell::Get()->shelf_delegate(), wm_shelf_, this);
shelf_view_->Init();
GetContentsView()->AddChildView(shelf_view_);
return shelf_view_;
@@ -252,7 +251,7 @@ void ShelfWidget::PostCreateShelf() {
// hidden because ShelfWidget is transparent. Some of the ShelfView visibility
// code could be simplified. http://crbug.com/674773
shelf_view_->SetVisible(
- WmShell::Get()->session_controller()->IsActiveUserSessionStarted());
+ Shell::Get()->session_controller()->IsActiveUserSessionStarted());
shelf_layout_manager_->LayoutShelf();
shelf_layout_manager_->UpdateAutoHideState();
Show();
« no previous file with comments | « ash/common/shelf/shelf_locking_manager.cc ('k') | ash/common/shelf/shelf_window_watcher_item_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698