| Index: content/browser/web_contents/web_contents_impl.cc
|
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
|
| index 358754a6894b03d62c33345edbeb32d2c1b4d915..7f171140bc58846f93945d2cc45804254775a386 100644
|
| --- a/content/browser/web_contents/web_contents_impl.cc
|
| +++ b/content/browser/web_contents/web_contents_impl.cc
|
| @@ -1674,17 +1674,6 @@ void WebContentsImpl::ExitFullscreenMode() {
|
| if (delegate_)
|
| delegate_->ExitFullscreenModeForTab(this);
|
|
|
| - // Ensure web contents exit fullscreen state by sending a resize message,
|
| - // which includes the fullscreen state. This is required for the situation
|
| - // of the browser moving the view into a fullscreen state "browser fullscreen"
|
| - // and then the contents entering "tab fullscreen". Exiting the contents
|
| - // "tab fullscreen" then won't have the side effect of the view resizing,
|
| - // hence the explicit call here is required.
|
| - if (RenderWidgetHostView* rwh_view = GetRenderWidgetHostView()) {
|
| - if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost())
|
| - render_widget_host->WasResized();
|
| - }
|
| -
|
| FOR_EACH_OBSERVER(WebContentsObserver, observers_,
|
| DidToggleFullscreenModeForTab(IsFullscreenForCurrentTab(
|
| GetRenderViewHost()->GetWidget())));
|
|
|