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( |