Index: content/browser/renderer_host/render_widget_host_impl.cc |
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc |
index d6f200f19d742ea534f2dd79bfd34bc8adfd5836..1b2a20ce56329dc4d8e88fde7d8d2ec2c75d3ef2 100644 |
--- a/content/browser/renderer_host/render_widget_host_impl.cc |
+++ b/content/browser/renderer_host/render_widget_host_impl.cc |
@@ -1109,6 +1109,13 @@ void RenderWidgetHostImpl::NotifyScreenInfoChanged() { |
} |
void RenderWidgetHostImpl::SetDeviceScaleFactor(float scale) { |
+#if defined(USE_AURA) |
+ // Send secreen info as well because JavaScript API |window.open| |
+ // uses screen info to determine the scale factor (crbug.com/155201). |
+ // TODO(oshima|thakis): Consolidate SetDeviceScaleFactor and |
+ // ScreenInfoChanged. crbug.com/155213. |
+ NotifyScreenInfoChanged(); |
+#endif |
Send(new ViewMsg_SetDeviceScaleFactor(GetRoutingID(), scale)); |
} |