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

Unified Diff: ash/shelf/shelf_layout_manager.cc

Issue 2166043003: mash: Migrate ShelfLockingManager to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move ShelfLockingManager test access to Shelf. Created 4 years, 5 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/shelf/shelf_layout_manager.cc
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc
index d89ffb22ce78178bb9a30a3f6e0ad4d961969b40..293477de40a3860ce43893c4a05e32b25394b474 100644
--- a/ash/shelf/shelf_layout_manager.cc
+++ b/ash/shelf/shelf_layout_manager.cc
@@ -34,7 +34,6 @@
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
#include "ash/wm/gestures/shelf_gesture_handler.h"
-#include "ash/wm/lock_state_controller.h"
#include "ash/wm/window_animations.h"
#include "ash/wm/window_state_aura.h"
#include "ash/wm/window_util.h"
@@ -222,7 +221,7 @@ ShelfLayoutManager::ShelfLayoutManager(ShelfWidget* shelf_widget)
->GetRootWindowController()
->AddObserver(root_window_controller_observer_.get());
}
- Shell::GetInstance()->lock_state_controller()->AddObserver(this);
+ WmShell::Get()->AddLockStateObserver(this);
aura::client::GetActivationClient(root_window_)->AddObserver(this);
WmShell::Get()->GetSessionStateDelegate()->AddSessionStateObserver(this);
}
@@ -234,7 +233,7 @@ ShelfLayoutManager::~ShelfLayoutManager() {
FOR_EACH_OBSERVER(ShelfLayoutManagerObserver, observers_,
WillDeleteShelfLayoutManager());
WmShell::Get()->RemoveShellObserver(this);
- Shell::GetInstance()->lock_state_controller()->RemoveObserver(this);
+ WmShell::Get()->RemoveLockStateObserver(this);
WmShell::Get()->GetSessionStateDelegate()->RemoveSessionStateObserver(
this);
if (root_window_controller_observer_) {

Powered by Google App Engine
This is Rietveld 408576698