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..6904962b42bd73cc3fe16fd1f364b81feb49bd3d 100644 |
--- a/chrome/browser/ui/tabs/tab_strip_model.cc |
+++ b/chrome/browser/ui/tabs/tab_strip_model.cc |
@@ -8,6 +8,7 @@ |
#include <map> |
#include <string> |
+#include "apps/ui/web_contents_sizer.h" |
#include "base/metrics/histogram.h" |
#include "base/stl_util.h" |
#include "chrome/app/chrome_command_ids.h" |
@@ -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()); |
+ apps::ResizeWebContents(contents, |
+ old_contents->GetView()->GetContainerSize()); |
} |
} |
} |