Index: ash/wm/workspace/workspace_layout_manager2_unittest.cc |
diff --git a/ash/wm/workspace/workspace_layout_manager2_unittest.cc b/ash/wm/workspace/workspace_layout_manager2_unittest.cc |
index b5b8abd4dc2cb31842dcc64b8f74f8eced9504ad..799e013328995855c01eaaf2f7f8b6b3178fc69a 100644 |
--- a/ash/wm/workspace/workspace_layout_manager2_unittest.cc |
+++ b/ash/wm/workspace/workspace_layout_manager2_unittest.cc |
@@ -4,6 +4,7 @@ |
#include "ash/wm/workspace/workspace_layout_manager2.h" |
+#include "ash/root_window_controller.h" |
#include "ash/shell.h" |
#include "ash/test/ash_test_base.h" |
#include "ash/wm/property_util.h" |
@@ -65,7 +66,8 @@ class DontClobberRestoreBoundsWindowObserver : public aura::WindowObserver { |
aura::Window* w = window_; |
window_ = NULL; |
- gfx::Rect shelf_bounds(Shell::GetInstance()->shelf()->GetIdealBounds()); |
+ gfx::Rect shelf_bounds( |
+ Shell::GetPrimaryRootWindowController()->shelf()->GetIdealBounds()); |
const gfx::Rect& window_bounds(w->bounds()); |
w->SetBounds(gfx::Rect(window_bounds.x(), shelf_bounds.y() - 1, |
window_bounds.width(), window_bounds.height())); |