Index: chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc |
diff --git a/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc b/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc |
index c3b5757ae8fb2ba6b6860829e3aa0d54b4f756f1..627c8e1905034e8c7e35e048255c5f9dad2b28e4 100644 |
--- a/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc |
+++ b/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc |
@@ -140,8 +140,8 @@ bool UserSwitchAnimatorChromeOS::CoversScreen(aura::Window* window) { |
if (ash::wm::GetWindowState(window)->IsFullscreen()) |
return true; |
gfx::Rect bounds = window->GetBoundsInRootWindow(); |
- gfx::Rect work_area = gfx::Screen::GetScreenFor(window)-> |
- GetDisplayNearestWindow(window).work_area(); |
+ gfx::Rect work_area = |
+ gfx::Screen::GetScreen()->GetDisplayNearestWindow(window).work_area(); |
bounds.Intersect(work_area); |
return work_area == bounds; |
} |