Index: apps/app_window.cc |
diff --git a/apps/app_window.cc b/apps/app_window.cc |
index b339cf20f0cafd0b019851df12b03ac793e09e4f..0ee51cc2c877684e7dee45ac74c67fc8027cf501 100644 |
--- a/apps/app_window.cc |
+++ b/apps/app_window.cc |
@@ -11,6 +11,7 @@ |
#include "apps/apps_client.h" |
#include "apps/size_constraints.h" |
#include "apps/ui/native_app_window.h" |
+#include "apps/ui/web_contents_sizer.h" |
#include "base/command_line.h" |
#include "base/strings/string_util.h" |
#include "base/strings/utf_string_conversions.h" |
@@ -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()); |
+ apps::ResizeWebContents(web_contents, initial_bounds.size()); |
} |
// Prevent the browser process from shutting down while this window is open. |