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 2413f51f757cb1d865f19ab2f1a455a1d7c5a54b..6a0db26b367b4d345531ab2a00cb18ab05b3211d 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 |
@@ -79,14 +79,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( |
@@ -296,7 +296,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( |