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

Unified Diff: chrome/browser/ui/browser_tabrestore.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: chrome/browser/ui/browser_tabrestore.cc
diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc
index f939a74327c13c3394d662f3a9e7d44766a7017e..7430cc3d5daf196238126623e95cefeb34787f85 100644
--- a/chrome/browser/ui/browser_tabrestore.cc
+++ b/chrome/browser/ui/browser_tabrestore.cc
@@ -17,6 +17,7 @@
#include "content/public/browser/session_storage_namespace.h"
#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_contents_view.h"
+#include "ui/gfx/layout_util.h"
using content::WebContents;
using content::NavigationController;
@@ -119,8 +120,8 @@ content::WebContents* AddRestoredTab(
// anchor link location calculations to be incorrect even after a new
// layout with proper view dimensions. TabStripModel::AddWebContents()
// contains similar logic.
- web_contents->GetView()->SizeContents(
- browser->window()->GetRestoredBounds().size());
+ gfx::ResizeWebContents(web_contents,
+ browser->window()->GetRestoredBounds().size());
web_contents->WasHidden();
}
SessionService* session_service =

Powered by Google App Engine
This is Rietveld 408576698