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

Unified Diff: chrome/browser/ui/web_contents_sizer.cc

Issue 2268323003: Initialize RWHV with default bounds rather than only size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed brackets Created 4 years, 4 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: chrome/browser/ui/web_contents_sizer.cc
diff --git a/chrome/browser/ui/web_contents_sizer.cc b/chrome/browser/ui/web_contents_sizer.cc
index b797138124eef933a2c61e5646b30a9b43723f49..60580df80f5902a8ee29c03207153a0c5e8b26ee 100644
--- a/chrome/browser/ui/web_contents_sizer.cc
+++ b/chrome/browser/ui/web_contents_sizer.cc
@@ -21,6 +21,6 @@ void ResizeWebContents(content::WebContents* web_contents,
#elif defined(OS_ANDROID)
content::RenderWidgetHostView* view = web_contents->GetRenderWidgetHostView();
if (view)
- view->SetSize(new_bounds.size());
+ view->SetBounds(new_bounds);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698