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

Unified Diff: ash/test/ash_test_base.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/test/ash_test_base.cc
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc
index 7d6becb9c003f5a6911502b308240049a4b00031..c6d860953b8f5cef0f6a158067340660b43f6b05 100644
--- a/ash/test/ash_test_base.cc
+++ b/ash/test/ash_test_base.cc
@@ -137,7 +137,7 @@ void AshTestBase::SetUp() {
// Move the mouse cursor to far away so that native events doesn't
// interfere test expectations.
Shell::GetPrimaryRootWindow()->MoveCursorTo(gfx::Point(-1000, -1000));
- ash::Shell::GetInstance()->cursor_manager()->EnableMouseEvents();
+ Shell::GetInstance()->cursor_manager()->EnableMouseEvents();
// Changing GestureConfiguration shouldn't make tests fail. These values
// prevent unexpected events from being generated during tests. Such as
@@ -149,8 +149,8 @@ void AshTestBase::SetUp() {
gesture_config->set_max_touch_move_in_pixels_for_click(5);
#if defined(OS_WIN)
- if (!command_line->HasSwitch(ash::switches::kForceAshToDesktop))
- ash::WindowPositioner::SetMaximizeFirstWindow(true);
+ if (!command_line->HasSwitch(switches::kForceAshToDesktop))
+ WindowPositioner::SetMaximizeFirstWindow(true);
#endif
}
@@ -263,7 +263,7 @@ aura::Window* AshTestBase::CreateTestWindowInShellWithDelegateAndType(
} else {
display::Display display =
display::Screen::GetScreen()->GetDisplayMatching(bounds);
- aura::Window* root = ash::Shell::GetInstance()
+ aura::Window* root = Shell::GetInstance()
->window_tree_host_manager()
->GetRootWindowForDisplayId(display.id());
gfx::Point origin = bounds.origin();
@@ -329,7 +329,7 @@ void AshTestBase::BlockUserSession(UserSessionBlockReason block_reason) {
case BLOCKED_BY_LOCK_SCREEN:
SetSessionStarted(true);
SetUserAddingScreenRunning(false);
- Shell::GetInstance()->session_state_delegate()->LockScreen();
+ WmShell::Get()->GetSessionStateDelegate()->LockScreen();
Shell::GetInstance()->OnLockStateChanged(true);
break;
case BLOCKED_BY_LOGIN_SCREEN:
@@ -347,7 +347,7 @@ void AshTestBase::BlockUserSession(UserSessionBlockReason block_reason) {
}
void AshTestBase::UnblockUserSession() {
- Shell::GetInstance()->session_state_delegate()->UnlockScreen();
+ WmShell::Get()->GetSessionStateDelegate()->UnlockScreen();
SetSessionStarted(true);
SetUserAddingScreenRunning(false);
}

Powered by Google App Engine
This is Rietveld 408576698