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

Unified Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.cc

Issue 10409088: Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 7 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/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)
@@ -45,8 +45,8 @@
#include "chrome/browser/ui/sync/one_click_signin_helper.h"
#include "chrome/browser/ui/sync/tab_contents_wrapper_synced_tab_delegate.h"
#include "chrome/browser/ui/tab_contents/core_tab_helper.h"
+#include "chrome/browser/view_type_utils.h"
#include "chrome/common/chrome_switches.h"
-#include "chrome/common/chrome_view_type.h"
#include "content/public/browser/web_contents.h"
using content::WebContents;
@@ -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.

Powered by Google App Engine
This is Rietveld 408576698