Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
index 618d77449607e2a0d5878b299838f0acf951d633..f2c2706325e8b13310680e3efa0945de198cad39 100644 |
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
@@ -696,8 +696,9 @@ void DesktopNativeWidgetAura::SetBounds(const gfx::Rect& bounds) { |
float scale = 1; |
aura::Window* root = host_->window(); |
if (root) { |
- scale = gfx::Screen::GetScreenFor(root)-> |
- GetDisplayNearestWindow(root).device_scale_factor(); |
+ scale = gfx::Screen::GetScreen() |
+ ->GetDisplayNearestWindow(root) |
+ .device_scale_factor(); |
} |
gfx::Rect bounds_in_pixels = |
gfx::ScaleToEnclosingRect(bounds, scale, scale); |