Chromium Code Reviews| Index: content/browser/web_contents/web_contents_impl.cc |
| diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
| index 0f0514164a59a319300ab07b2a2eaab7de9e3945..02c21afdd9b32e43ce019465ecf49025073aff92 100644 |
| --- a/content/browser/web_contents/web_contents_impl.cc |
| +++ b/content/browser/web_contents/web_contents_impl.cc |
| @@ -3779,18 +3779,6 @@ void WebContentsImpl::RenderViewCreated(RenderViewHost* render_view_host) { |
| Source<WebContents>(this), |
| Details<RenderViewHost>(render_view_host)); |
| - // When we're creating views, we're still doing initial setup, so we always |
| - // use the pending Web UI rather than any possibly existing committed one. |
| - if (GetRenderManager()->pending_web_ui()) |
| - GetRenderManager()->pending_web_ui()->RenderViewCreated(render_view_host); |
| - |
| - if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| - switches::kEnableBrowserSideNavigation) && |
| - GetRenderManager()->speculative_web_ui()) { |
| - GetRenderManager()->speculative_web_ui()->RenderViewCreated( |
| - render_view_host); |
| - } |
| - |
| NavigationEntry* entry = controller_.GetPendingEntry(); |
| if (entry && entry->IsViewSourceMode()) { |
| // Put the renderer in view source mode. |
| @@ -4178,7 +4166,7 @@ int WebContentsImpl::CreateSwappedOutRenderView( |
| GetRenderManager()->CreateRenderFrameProxy(instance); |
| } else { |
| GetRenderManager()->CreateRenderFrame( |
| - instance, nullptr, CREATE_RF_SWAPPED_OUT | CREATE_RF_HIDDEN, |
| + instance, CREATE_RF_SWAPPED_OUT | CREATE_RF_HIDDEN, |
| &render_view_routing_id); |
| } |
| return render_view_routing_id; |
| @@ -4340,7 +4328,7 @@ NavigationControllerImpl& WebContentsImpl::GetControllerForRenderManager() { |
| return GetController(); |
| } |
| -scoped_ptr<WebUIImpl> WebContentsImpl::CreateWebUIForRenderManager( |
| +scoped_ptr<WebUIImpl> WebContentsImpl::CreateWebUIForRenderFrameHost( |
|
nasko
2015/10/01 20:05:16
I wonder why we still need this method. Can't we j
carlosk
2015/10/05 16:59:58
Replied to this in another comment.
nasko
2015/10/07 23:49:33
Acknowledged.
|
| const GURL& url) { |
| return scoped_ptr<WebUIImpl>(static_cast<WebUIImpl*>(CreateWebUI( |
| url, std::string()))); |