Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc |
diff --git a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc |
index 5e457eaf586263e332e26a40d2652d5280aa4942..58bfbf177738005f278fef86eedd6a12f5dc3ddf 100644 |
--- a/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc |
+++ b/chrome/browser/ui/tab_contents/tab_contents_wrapper.cc |
@@ -46,6 +46,7 @@ |
#include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h" |
#include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
#include "chrome/common/chrome_switches.h" |
+#include "chrome/common/chrome_view_type.h" |
#include "content/public/browser/web_contents.h" |
using content::WebContents; |
@@ -67,6 +68,8 @@ TabContentsWrapper::TabContentsWrapper(WebContents* contents) |
DCHECK(contents); |
DCHECK(!GetCurrentWrapperForContents(contents)); |
+ web_contents_->SetViewType(chrome::VIEW_TYPE_TAB_CONTENTS); |
+ |
// Stash this in the property bag so it can be retrieved without having to |
// go to a Browser. |
property_accessor()->SetProperty(contents->GetPropertyBag(), this); |