Index: ui/base/layout.cc |
diff --git a/ui/base/layout.cc b/ui/base/layout.cc |
index bbefce002633e28d445d26ea7d58cc81ecfa9b6a..250133cbd2d880d42d9a6e8f439491021bf07385 100644 |
--- a/ui/base/layout.cc |
+++ b/ui/base/layout.cc |
@@ -107,7 +107,7 @@ ScopedSetSupportedScaleFactors::~ScopedSetSupportedScaleFactors() { |
#if !defined(OS_MACOSX) |
float GetScaleFactorForNativeView(gfx::NativeView view) { |
display::Display display = |
- display::Screen::GetScreen()->GetDisplayNearestWindow(view); |
+ display::Screen::GetScreen()->GetDisplayNearestView(view); |
DCHECK(display.is_valid()); |
return display.device_scale_factor(); |
} |