Index: content/browser/renderer_host/render_widget_host_view_mac.mm |
diff --git a/content/browser/renderer_host/render_widget_host_view_mac.mm b/content/browser/renderer_host/render_widget_host_view_mac.mm |
index 6266020394b9c38dc5f81004bb00d63d139d0dad..ab8525cb76eae642899dde88cdaa31edbaef03d9 100644 |
--- a/content/browser/renderer_host/render_widget_host_view_mac.mm |
+++ b/content/browser/renderer_host/render_widget_host_view_mac.mm |
@@ -1716,7 +1716,7 @@ void RenderWidgetHostViewMac::OnDisplayMetricsChanged( |
const display::Display& display, |
uint32_t changed_metrics) { |
display::Screen* screen = display::Screen::GetScreen(); |
- if (display.id() != screen->GetDisplayNearestWindow(cocoa_view_).id()) |
+ if (display.id() != screen->GetDisplayNearestView(cocoa_view_).id()) |
return; |
if (changed_metrics & DisplayObserver::DISPLAY_METRIC_DEVICE_SCALE_FACTOR) { |