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

Unified Diff: chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 10 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/views/tab_contents/tab_contents_view_views.cc
diff --git a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
index d7d3f89ea7141b8c10b2b2667e8d6ea422a4c995..1b1cb05db9694e89843d60e595086009abd26828 100644
--- a/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
+++ b/chrome/browser/ui/views/tab_contents/tab_contents_view_views.cc
@@ -72,14 +72,14 @@ void TabContentsViewViews::CreateView(const gfx::Size& initial_size) {
RenderWidgetHostView* TabContentsViewViews::CreateViewForWidget(
RenderWidgetHost* render_widget_host) {
- if (render_widget_host->view()) {
+ if (render_widget_host->GetView()) {
// During testing, the view will already be set up in most cases to the
// test view, so we don't want to clobber it with a real one. To verify that
// this actually is happening (and somebody isn't accidentally creating the
// view twice), we check for the RVH Factory, which will be set when we're
// making special ones (which go along with the special views).
DCHECK(RenderViewHostFactory::has_factory());
- return render_widget_host->view();
+ return render_widget_host->GetView();
}
return native_tab_contents_view_->CreateRenderWidgetHostView(
@@ -289,7 +289,7 @@ void TabContentsViewViews::TakeFocus(bool reverse) {
void TabContentsViewViews::CloseTab() {
RenderViewHost* rvh = web_contents_->GetRenderViewHost();
- rvh->delegate()->Close(rvh);
+ rvh->GetDelegate()->Close(rvh);
}
void TabContentsViewViews::CreateNewWindow(

Powered by Google App Engine
This is Rietveld 408576698