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

Unified Diff: ash/wm/event_client_impl.cc

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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/wm/event_client_impl.cc
diff --git a/ash/wm/event_client_impl.cc b/ash/wm/event_client_impl.cc
index 5bfb13ac5fb8d6874b9043aaedec36f0559a4f93..39ce4ac67d45b4bfb354cd3b654727f4ca25d11c 100644
--- a/ash/wm/event_client_impl.cc
+++ b/ash/wm/event_client_impl.cc
@@ -6,6 +6,7 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shell_window_ids.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ui/aura/window.h"
#include "ui/keyboard/keyboard_util.h"
@@ -22,7 +23,7 @@ bool EventClientImpl::CanProcessEventsWithinSubtree(
// remove this.
const aura::Window* root_window = window ? window->GetRootWindow() : NULL;
if (!root_window ||
- !Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked()) {
+ !WmShell::Get()->GetSessionStateDelegate()->IsUserSessionBlocked()) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698