Index: apps/app_window.cc |
diff --git a/apps/app_window.cc b/apps/app_window.cc |
index b339cf20f0cafd0b019851df12b03ac793e09e4f..4c7039616f97d797244a1f3f67ff01e8b0a2d709 100644 |
--- a/apps/app_window.cc |
+++ b/apps/app_window.cc |
@@ -40,6 +40,7 @@ |
#include "extensions/common/extension.h" |
#include "extensions/common/extension_messages.h" |
#include "third_party/skia/include/core/SkRegion.h" |
+#include "ui/base/web_contents_sizer.h" |
#include "ui/gfx/screen.h" |
#if !defined(OS_MACOSX) |
@@ -323,7 +324,7 @@ void AppWindow::Init(const GURL& url, |
gfx::Insets frame_insets = native_app_window_->GetFrameInsets(); |
gfx::Rect initial_bounds = new_params.GetInitialWindowBounds(frame_insets); |
initial_bounds.Inset(frame_insets); |
- web_contents->GetView()->SizeContents(initial_bounds.size()); |
+ ui::ResizeWebContents(web_contents, initial_bounds.size()); |
} |
// Prevent the browser process from shutting down while this window is open. |