Index: ash/wm/base_layout_manager_unittest.cc |
diff --git a/ash/wm/base_layout_manager_unittest.cc b/ash/wm/base_layout_manager_unittest.cc |
index 68c3695cef4d2c891037cba48ac3fc7c3d7bf2ff..931529116e18b623b2602f39130cf526769b9ef6 100644 |
--- a/ash/wm/base_layout_manager_unittest.cc |
+++ b/ash/wm/base_layout_manager_unittest.cc |
@@ -16,6 +16,7 @@ |
#include "ui/aura/window.h" |
#include "ui/base/ui_base_types.h" |
#include "ui/gfx/insets.h" |
+#include "ui/gfx/monitor.h" |
namespace ash { |
@@ -152,7 +153,7 @@ TEST_F(BaseLayoutManagerTest, MAYBE_RootWindowResizeShrinksWindows) { |
// to smaller than the full work area. |
TEST_F(BaseLayoutManagerTest, BoundsWithScreenEdgeVisible) { |
// Create a window with bounds that fill the screen. |
- gfx::Rect bounds = gfx::Screen::GetPrimaryMonitorBounds(); |
+ gfx::Rect bounds = gfx::Screen::GetPrimaryMonitor()->GetBounds(); |
scoped_ptr<aura::Window> window(CreateTestWindow(bounds)); |
// Maximize it, which writes the old bounds to restore bounds. |
window->SetProperty(aura::client::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); |