Index: chrome/browser/ui/tabs/tab_strip_model.cc |
diff --git a/chrome/browser/ui/tabs/tab_strip_model.cc b/chrome/browser/ui/tabs/tab_strip_model.cc |
index dfad932240f11a5d7e939b29bdf33403f933d6e0..d32f94f9e83f827c36817ad3ce480ea1206ae5f3 100644 |
--- a/chrome/browser/ui/tabs/tab_strip_model.cc |
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc |
@@ -26,6 +26,7 @@ |
#include "content/public/browser/web_contents.h" |
#include "content/public/browser/web_contents_observer.h" |
#include "content/public/browser/web_contents_view.h" |
+#include "ui/base/web_contents_sizer.h" |
using base::UserMetricsAction; |
using content::WebContents; |
@@ -837,8 +838,8 @@ void TabStripModel::AddWebContents(WebContents* contents, |
// new background tab. |
if (WebContents* old_contents = GetActiveWebContents()) { |
if ((add_types & ADD_ACTIVE) == 0) { |
- contents->GetView()->SizeContents( |
- old_contents->GetView()->GetContainerSize()); |
+ ui::ResizeWebContents(contents, |
+ old_contents->GetView()->GetContainerSize()); |
} |
} |
} |