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

Unified Diff: chrome/browser/tab_contents/tab_util.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/tab_contents/tab_util.cc
===================================================================
--- chrome/browser/tab_contents/tab_util.cc (revision 138369)
+++ chrome/browser/tab_contents/tab_util.cc (working copy)
@@ -9,7 +9,6 @@
#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/render_view_host.h"
-#include "content/public/browser/render_view_host_delegate.h"
#include "content/public/browser/site_instance.h"
#include "content/public/browser/web_contents.h"
#include "googleurl/src/gurl.h"
@@ -27,7 +26,7 @@
if (!render_view_host)
return NULL;
- return render_view_host->GetDelegate()->GetAsWebContents();
+ return WebContents::FromRenderViewHost(render_view_host);
}
SiteInstance* GetSiteInstanceForNewTab(Profile* profile,

Powered by Google App Engine
This is Rietveld 408576698