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

Unified Diff: ash/common/shelf/shelf_layout_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/session/session_state_observer.cc ('k') | ash/common/shelf/shelf_locking_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_layout_manager.cc
diff --git a/ash/common/shelf/shelf_layout_manager.cc b/ash/common/shelf/shelf_layout_manager.cc
index bfc9dd4f6154fa21447bddeef4996e3611cc83db..f145a7ec82f3f9eb14bb1c981143f7e798aa261a 100644
--- a/ash/common/shelf/shelf_layout_manager.cc
+++ b/ash/common/shelf/shelf_layout_manager.cc
@@ -160,9 +160,8 @@ ShelfLayoutManager::ShelfLayoutManager(ShelfWidget* shelf_widget,
Shell::GetInstance()->AddShellObserver(this);
WmShell::Get()->AddLockStateObserver(this);
Shell::GetInstance()->activation_client()->AddObserver(this);
- WmShell::Get()->session_controller()->AddSessionStateObserver(this);
- state_.session_state =
- WmShell::Get()->session_controller()->GetSessionState();
+ Shell::Get()->session_controller()->AddSessionStateObserver(this);
+ state_.session_state = Shell::Get()->session_controller()->GetSessionState();
}
ShelfLayoutManager::~ShelfLayoutManager() {
@@ -173,7 +172,7 @@ ShelfLayoutManager::~ShelfLayoutManager() {
observer.WillDeleteShelfLayoutManager();
Shell::GetInstance()->RemoveShellObserver(this);
WmShell::Get()->RemoveLockStateObserver(this);
- WmShell::Get()->session_controller()->RemoveSessionStateObserver(this);
+ Shell::Get()->session_controller()->RemoveSessionStateObserver(this);
}
void ShelfLayoutManager::PrepareForShutdown() {
@@ -340,7 +339,7 @@ void ShelfLayoutManager::RemoveObserver(ShelfLayoutManagerObserver* observer) {
bool ShelfLayoutManager::ProcessGestureEvent(const ui::GestureEvent& event) {
// The gestures are disabled in the lock/login screen.
- SessionController* controller = WmShell::Get()->session_controller();
+ SessionController* controller = Shell::Get()->session_controller();
if (!controller->NumberOfLoggedInUsers() || controller->IsScreenLocked())
return false;
@@ -437,7 +436,7 @@ void ShelfLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) {
// On login screen if keyboard has been just hidden, update bounds just once
// but ignore target_bounds.work_area_insets since shelf overlaps with login
// window.
- if (WmShell::Get()->session_controller()->IsUserSessionBlocked() &&
+ if (Shell::Get()->session_controller()->IsUserSessionBlocked() &&
keyboard_is_about_to_hide) {
WmWindow* window = WmWindow::Get(shelf_widget_->GetNativeWindow());
WmShell::Get()->SetDisplayWorkAreaInsets(window, gfx::Insets());
« no previous file with comments | « ash/common/session/session_state_observer.cc ('k') | ash/common/shelf/shelf_locking_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698