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

Unified Diff: ash/accelerators/accelerator_controller_unittest.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/accelerators/accelerator_controller_unittest.cc
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc
index e982ddf29264ab34b5543a87daac6ac4815cb824..e9e518796db0529806450049593a8bea38130de8 100644
--- a/ash/accelerators/accelerator_controller_unittest.cc
+++ b/ash/accelerators/accelerator_controller_unittest.cc
@@ -1332,9 +1332,8 @@ class DeprecatedAcceleratorTester : public AcceleratorControllerTest {
}
void ResetStateIfNeeded() {
- Shell* shell = Shell::GetInstance();
- if (shell->session_state_delegate()->IsScreenLocked() ||
- shell->session_state_delegate()->IsUserSessionBlocked()) {
+ if (WmShell::Get()->GetSessionStateDelegate()->IsScreenLocked() ||
+ WmShell::Get()->GetSessionStateDelegate()->IsUserSessionBlocked()) {
UnblockUserSession();
}
}

Powered by Google App Engine
This is Rietveld 408576698