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

Unified Diff: ash/aura/wm_shell_aura.cc

Issue 2041233004: mash: Move //ash/session to //ash/common/session (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/session/session_state_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 34d97a4091afb6023dbee57bf552fb0d5d7d8e2a..7b6e2e16c515db54371d5058c1b336f624a2fc82 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -5,12 +5,12 @@
#include "ash/aura/wm_shell_aura.h"
#include "ash/aura/wm_window_aura.h"
+#include "ash/common/session/session_state_delegate.h"
#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm_activation_observer.h"
#include "ash/common/wm_display_observer.h"
#include "ash/common/wm_overview_mode_observer.h"
#include "ash/display/window_tree_host_manager.h"
-#include "ash/session/session_state_delegate.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/wm/drag_window_resizer.h"
@@ -87,14 +87,6 @@ bool WmShellAura::IsForceMaximizeOnFirstRun() {
return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
}
-bool WmShellAura::IsUserSessionBlocked() {
- return Shell::GetInstance()->session_state_delegate()->IsUserSessionBlocked();
-}
-
-bool WmShellAura::IsScreenLocked() {
- return Shell::GetInstance()->session_state_delegate()->IsScreenLocked();
-}
-
bool WmShellAura::CanShowWindowForUser(WmWindow* window) {
return Shell::GetInstance()->delegate()->CanShowWindowForUser(
WmWindowAura::GetAuraWindow(window));
@@ -141,6 +133,10 @@ bool WmShellAura::IsOverviewModeRestoringMinimizedWindows() {
window_selector_controller->IsRestoringMinimizedWindows();
}
+SessionStateDelegate* WmShellAura::GetSessionStateDelegate() {
+ return Shell::GetInstance()->session_state_delegate();
+}
+
void WmShellAura::AddActivationObserver(WmActivationObserver* observer) {
if (!added_activation_observer_) {
added_activation_observer_ = true;
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/session/session_state_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698