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

Unified Diff: ash/common/shelf/shelf_locking_manager.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_layout_manager.cc ('k') | ash/common/shelf/shelf_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_locking_manager.cc
diff --git a/ash/common/shelf/shelf_locking_manager.cc b/ash/common/shelf/shelf_locking_manager.cc
index a897049466de0dbbf4ea90c4f40114219b95f09c..84bfcbfa9c1cc4d10fe53cd100bbf2eef16731e5 100644
--- a/ash/common/shelf/shelf_locking_manager.cc
+++ b/ash/common/shelf/shelf_locking_manager.cc
@@ -15,7 +15,7 @@ ShelfLockingManager::ShelfLockingManager(WmShelf* shelf)
: shelf_(shelf), stored_alignment_(shelf->GetAlignment()) {
DCHECK(shelf_);
WmShell::Get()->AddLockStateObserver(this);
- SessionController* controller = WmShell::Get()->session_controller();
+ SessionController* controller = Shell::Get()->session_controller();
session_locked_ =
controller->GetSessionState() != session_manager::SessionState::ACTIVE;
screen_locked_ = controller->IsScreenLocked();
@@ -25,7 +25,7 @@ ShelfLockingManager::ShelfLockingManager(WmShelf* shelf)
ShelfLockingManager::~ShelfLockingManager() {
WmShell::Get()->RemoveLockStateObserver(this);
- WmShell::Get()->session_controller()->RemoveSessionStateObserver(this);
+ Shell::Get()->session_controller()->RemoveSessionStateObserver(this);
Shell::GetInstance()->RemoveShellObserver(this);
}
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698