| Index: chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.cc b/chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| index 712a1fad3a4ca2bc695ca55b6ef7fd108165a207..a99b0e3643a0794f5e4abb72f98f6dbec46832ac 100644
|
| --- a/chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| +++ b/chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
|
|
|
| +#include "apps/ui/web_contents_sizer.h"
|
| #include "base/bind.h"
|
| #include "base/command_line.h"
|
| #include "base/message_loop/message_loop.h"
|
| @@ -312,7 +313,7 @@ void FullscreenController::OnTabDetachedFromView(WebContents* old_contents) {
|
| old_contents->GetFullscreenRenderWidgetHostView();
|
| if (current_fs_view)
|
| current_fs_view->SetSize(old_contents->GetPreferredSize());
|
| - old_contents->GetView()->SizeContents(old_contents->GetPreferredSize());
|
| + apps::ResizeWebContents(old_contents, old_contents->GetPreferredSize());
|
| }
|
|
|
| void FullscreenController::OnTabClosing(WebContents* web_contents) {
|
|
|