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

Unified Diff: ash/root_window_controller_unittest.cc

Issue 2886253002: mash: remove more shell/shelf WmWindow usage. (Closed)
Patch Set: Fix WmShelf::ForWindow. Created 3 years, 7 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/root_window_controller.cc ('k') | ash/scoped_root_window_for_new_windows.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/root_window_controller_unittest.cc
diff --git a/ash/root_window_controller_unittest.cc b/ash/root_window_controller_unittest.cc
index 5474a60807bd25f09c38fe3d8634cf2e89b0edcc..125a25fb210c837f0ba4cda4e85d2d5dddd1c8fe 100644
--- a/ash/root_window_controller_unittest.cc
+++ b/ash/root_window_controller_unittest.cc
@@ -384,8 +384,7 @@ TEST_F(RootWindowControllerTest, MoveWindows_LockWindowsInUnified) {
TEST_F(RootWindowControllerTest, ModalContainer) {
UpdateDisplay("600x600");
- RootWindowController* controller =
- ShellPort::Get()->GetPrimaryRootWindowController();
+ RootWindowController* controller = Shell::GetPrimaryRootWindowController();
EXPECT_TRUE(Shell::Get()->session_controller()->IsActiveUserSessionStarted());
EXPECT_EQ(GetLayoutManager(controller, kShellWindowId_SystemModalContainer),
controller->GetSystemModalLayoutManager(NULL));
@@ -426,8 +425,7 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
EXPECT_EQ(0, session_controller->NumberOfLoggedInUsers());
EXPECT_FALSE(session_controller->IsActiveUserSessionStarted());
- RootWindowController* controller =
- ShellPort::Get()->GetPrimaryRootWindowController();
+ RootWindowController* controller = Shell::GetPrimaryRootWindowController();
EXPECT_EQ(
GetLayoutManager(controller, kShellWindowId_LockSystemModalContainer),
controller->GetSystemModalLayoutManager(NULL));
@@ -459,8 +457,7 @@ TEST_F(RootWindowControllerTest, ModalContainerNotLoggedInLoggedIn) {
TEST_F(RootWindowControllerTest, ModalContainerBlockedSession) {
UpdateDisplay("600x600");
- RootWindowController* controller =
- ShellPort::Get()->GetPrimaryRootWindowController();
+ RootWindowController* controller = Shell::GetPrimaryRootWindowController();
aura::Window* lock_container =
controller->GetContainer(kShellWindowId_LockScreenContainer);
for (int block_reason = FIRST_BLOCK_REASON;
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/scoped_root_window_for_new_windows.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698