Chromium Code Reviews| Index: content/browser/renderer_host/render_view_host_impl.cc |
| diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc |
| index df1962ab320d770de1b74f63d194e66a63cc5fc0..c0fa9290d55fc3f5135df434cbbc32a013865d50 100644 |
| --- a/content/browser/renderer_host/render_view_host_impl.cc |
| +++ b/content/browser/renderer_host/render_view_host_impl.cc |
| @@ -933,6 +933,11 @@ void RenderViewHostImpl::DisableAutoResize(const gfx::Size& new_size) { |
| Send(new ViewMsg_DisableAutoResize(GetRoutingID(), new_size)); |
| if (!new_size.IsEmpty()) |
| GetWidget()->GetView()->SetSize(new_size); |
| + // This clears the cached value in the WebContents, so that OOPIFs will |
| + // stop using it. |
| + if (GetWidget()->delegate()) { |
|
alexmos
2017/06/02 17:31:16
nit: {} not necessary anymore
|
| + GetWidget()->delegate()->ResetAutoResizeSize(); |
| + } |
| } |
| void RenderViewHostImpl::ExecuteMediaPlayerActionAtLocation( |