| Index: chrome/browser/ui/fullscreen/fullscreen_controller.cc
|
| ===================================================================
|
| --- chrome/browser/ui/fullscreen/fullscreen_controller.cc (revision 265021)
|
| +++ chrome/browser/ui/fullscreen/fullscreen_controller.cc (working copy)
|
| @@ -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 @@
|
| 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) {
|
|
|