Index: chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc |
diff --git a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc |
index 3b1715ab0a2824349108272817e1e45b338d5de3..ecde0a38a76a7b85be46f6489db4ae6d75cfd4b1 100644 |
--- a/chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc |
+++ b/chrome/browser/ui/views/frame/app_non_client_frame_view_aura_browsertest.cc |
@@ -146,11 +146,11 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAuraTest, SnapLeftClosesControls) { |
// Ensure that the controls are at the proper locations. |
IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAuraTest, ControlsAtRightSide) { |
- const gfx::Rect work_area = gfx::Screen::GetPrimaryDisplay().work_area(); |
- |
aura::RootWindow* root_window = GetRootWindow(); |
aura::test::EventGenerator eg(root_window); |
aura::Window* native_window = app_browser()->window()->GetNativeWindow(); |
+ const gfx::Rect work_area = |
+ gfx::Screen::GetScreenFor(native_window)->GetPrimaryDisplay().work_area(); |
// Control window exists. |
aura::Window* window = GetChildWindowNamed( |