Index: ash/wm/workspace/workspace_window_resizer_unittest.cc |
diff --git a/ash/wm/workspace/workspace_window_resizer_unittest.cc b/ash/wm/workspace/workspace_window_resizer_unittest.cc |
index 6457d165ad20ed05455b5d977113f3c1aa8b4bee..779db7b4d7e26a62d6e197b9b2e80df0edad5a11 100644 |
--- a/ash/wm/workspace/workspace_window_resizer_unittest.cc |
+++ b/ash/wm/workspace/workspace_window_resizer_unittest.cc |
@@ -6,6 +6,7 @@ |
#include "ash/display/display_controller.h" |
#include "ash/display/mouse_cursor_event_filter.h" |
+#include "ash/root_window_controller.h" |
#include "ash/screen_ash.h" |
#include "ash/shell.h" |
#include "ash/shell_window_ids.h" |
@@ -480,7 +481,7 @@ TEST_F(WorkspaceWindowResizerTest, MAYBE_WindowDragWithMultiDisplays) { |
// The secondary display is logically on the right, but on the system (e.g. X) |
// layer, it's below the primary one. See UpdateDisplay() in ash_test_base.cc. |
UpdateDisplay("800x600,800x600"); |
- Shell::GetInstance()->shelf()->LayoutShelf(); |
+ Shell::GetPrimaryRootWindowController()->shelf()->LayoutShelf(); |
Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
ASSERT_EQ(2U, root_windows.size()); |
@@ -541,7 +542,7 @@ TEST_F(WorkspaceWindowResizerTest, MAYBE_WindowDragWithMultiDisplays) { |
TEST_F(WorkspaceWindowResizerTest, |
MAYBE_WindowDragWithMultiDisplaysRightToLeft) { |
UpdateDisplay("800x600,800x600"); |
- Shell::GetInstance()->shelf()->LayoutShelf(); |
+ Shell::GetPrimaryRootWindowController()->shelf()->LayoutShelf(); |
Shell::RootWindowList root_windows = Shell::GetAllRootWindows(); |
ASSERT_EQ(2U, root_windows.size()); |