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

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

Issue 2761063002: Move more from WmShell to Shell (Closed)
Patch Set: cleanup 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
Index: ash/common/shelf/shelf_widget.cc
diff --git a/ash/common/shelf/shelf_widget.cc b/ash/common/shelf/shelf_widget.cc
index 3b3a79785cffa29ed31384c98337b410b8828e8e..374273d93b1dd931bf4906304931dbd28a28a781 100644
--- a/ash/common/shelf/shelf_widget.cc
+++ b/ash/common/shelf/shelf_widget.cc
@@ -170,7 +170,7 @@ ShelfWidget::ShelfWidget(WmWindow* shelf_container, WmShelf* wm_shelf)
ShelfWidget::~ShelfWidget() {
// Must call Shutdown() before destruction.
DCHECK(!status_area_widget_);
- WmShell::Get()->focus_cycler()->RemoveWidget(this);
+ Shell::Get()->focus_cycler()->RemoveWidget(this);
SetFocusCycler(nullptr);
RemoveObserver(this);
background_animator_.RemoveObserver(delegate_view_);
@@ -185,7 +185,7 @@ void ShelfWidget::CreateStatusAreaWidget(WmWindow* status_container) {
status_area_widget_->CreateTrayViews();
if (WmShell::Get()->GetSessionStateDelegate()->IsActiveUserSessionStarted())
status_area_widget_->Show();
- WmShell::Get()->focus_cycler()->AddWidget(status_area_widget_);
+ Shell::Get()->focus_cycler()->AddWidget(status_area_widget_);
background_animator_.AddObserver(status_area_widget_);
status_container->SetLayoutManager(
base::MakeUnique<StatusAreaLayoutManager>(this));
@@ -240,7 +240,7 @@ ShelfView* ShelfWidget::CreateShelfView() {
}
void ShelfWidget::PostCreateShelf() {
- SetFocusCycler(WmShell::Get()->focus_cycler());
+ SetFocusCycler(Shell::Get()->focus_cycler());
// Ensure the newly created |shelf_| gets current values.
background_animator_.NotifyObserver(this);
@@ -294,7 +294,7 @@ void ShelfWidget::Shutdown() {
if (status_area_widget_) {
background_animator_.RemoveObserver(status_area_widget_);
- WmShell::Get()->focus_cycler()->RemoveWidget(status_area_widget_);
+ Shell::Get()->focus_cycler()->RemoveWidget(status_area_widget_);
status_area_widget_->Shutdown();
status_area_widget_ = nullptr;
}
« no previous file with comments | « ash/common/mojo_interface_factory.cc ('k') | ash/common/shelf/wm_shelf.cc » ('j') | ash/shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698