Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1955)

Unified Diff: apps/app_window.cc

Issue 209023003: Remove references to WebContentsView::SizeContents from chrome/ and app/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments & styling. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: apps/app_window.cc
diff --git a/apps/app_window.cc b/apps/app_window.cc
index b339cf20f0cafd0b019851df12b03ac793e09e4f..9b5de708f20ab520f25597d8fc200ff4d5a12e2d 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/gfx/layout_util.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());
+ gfx::ResizeWebContents(web_contents, initial_bounds.size());
}
// Prevent the browser process from shutting down while this window is open.
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_contents.cc » ('j') | chrome/browser/ui/browser_tabrestore.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698