Index: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc |
=================================================================== |
--- chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (revision 138369) |
+++ chrome/browser/ui/tab_contents/tab_contents_wrapper.cc (working copy) |
@@ -68,7 +68,7 @@ |
DCHECK(contents); |
DCHECK(!GetCurrentWrapperForContents(contents)); |
- web_contents_->SetViewType(chrome::VIEW_TYPE_TAB_CONTENTS); |
+ chrome::SetViewType(contents, chrome::VIEW_TYPE_TAB_CONTENTS); |
// Stash this in the property bag so it can be retrieved without having to |
// go to a Browser. |