summaryrefslogtreecommitdiffstats
path: root/ash/wm/gestures/shelf_gesture_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/gestures/shelf_gesture_handler.cc')
-rw-r--r--ash/wm/gestures/shelf_gesture_handler.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/wm/gestures/shelf_gesture_handler.cc b/ash/wm/gestures/shelf_gesture_handler.cc
index a4e8737..2fa7905 100644
--- a/ash/wm/gestures/shelf_gesture_handler.cc
+++ b/ash/wm/gestures/shelf_gesture_handler.cc
@@ -5,11 +5,11 @@
#include "ash/wm/gestures/shelf_gesture_handler.h"
#include "ash/root_window_controller.h"
+#include "ash/session_state_delegate.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_types.h"
#include "ash/shelf/shelf_widget.h"
#include "ash/shell.h"
-#include "ash/shell_delegate.h"
#include "ash/system/status_area_widget.h"
#include "ash/wm/gestures/tray_gesture_handler.h"
#include "ash/wm/window_util.h"
@@ -31,8 +31,8 @@ ShelfGestureHandler::~ShelfGestureHandler() {
bool ShelfGestureHandler::ProcessGestureEvent(const ui::GestureEvent& event) {
Shell* shell = Shell::GetInstance();
- if (!shell->delegate()->IsUserLoggedIn() ||
- shell->delegate()->IsScreenLocked()) {
+ if (!shell->session_state_delegate()->HasActiveUser() ||
+ shell->session_state_delegate()->IsScreenLocked()) {
// The gestures are disabled in the lock/login screen.
return false;
}