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 2db6514b6d96651fa5b270f296a59b20c7cd7f5d..41e3bf09c1ad181a437aaa126a02e1e50e667511 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -2485,7 +2485,7 @@ void WebContentsImpl::DidNavigateMainFramePostCommit( |
// that opened the window, as long as both renderers have the same |
// privileges. |
if (delegate_ && opener_web_ui_type_ == GetWebUITypeForCurrentState()) { |
- WebUIImpl* web_ui = static_cast<WebUIImpl*>(CreateWebUI(GetURL())); |
+ WebUIImpl* web_ui = CreateWebUIForRenderManager(GetURL()); |
// web_ui might be NULL if the URL refers to a non-existent extension. |
if (web_ui) { |
render_manager_.SetWebUIPostCommit(web_ui); |