Index: chrome/browser/ui/views/ash/window_positioner_unittest.cc |
diff --git a/chrome/browser/ui/views/ash/window_positioner_unittest.cc b/chrome/browser/ui/views/ash/window_positioner_unittest.cc |
index 3e1b18c07060d072b4d84a1f013a2aa15d7fce11..f877069a352ade71c2ee1944ca540dc5c51be20b 100644 |
--- a/chrome/browser/ui/views/ash/window_positioner_unittest.cc |
+++ b/chrome/browser/ui/views/ash/window_positioner_unittest.cc |
@@ -194,7 +194,7 @@ void WindowPositionerTest::TearDown() { |
} // namespace |
TEST_F(WindowPositionerTest, cascading) { |
- const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitorWorkArea(); |
+ const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitor().work_area(); |
// First see that the window will cascade down when there is no space. |
window()->SetBounds(work_area); |
@@ -254,7 +254,7 @@ TEST_F(WindowPositionerTest, cascading) { |
} |
TEST_F(WindowPositionerTest, filling) { |
- const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitorWorkArea(); |
+ const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitor().work_area(); |
int grid = ash::Shell::GetInstance()->GetGridSize(); |
gfx::Rect popup_position(0, 0, 256, 128); |
// Leave space on the left and the right and see if we fill top to bottom. |
@@ -309,7 +309,7 @@ TEST_F(WindowPositionerTest, filling) { |
} |
TEST_F(WindowPositionerTest, blockedByPanel) { |
- const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitorWorkArea(); |
+ const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitor().work_area(); |
gfx::Rect pop_position(0, 0, 200, 200); |
// Let the panel cover everything. |
@@ -324,7 +324,7 @@ TEST_F(WindowPositionerTest, blockedByPanel) { |
} |
TEST_F(WindowPositionerTest, biggerThenBorder) { |
- const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitorWorkArea(); |
+ const gfx::Rect work_area = gfx::Screen::GetPrimaryMonitor().work_area(); |
gfx::Rect pop_position(0, 0, work_area.width(), work_area.height()); |