Make use of CreateWebUIForRenderManager (doesn't change the actual behavior)


BUG=


Review URL: https://chromiumcodereview.appspot.com/12246003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181993 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index 5b2f68a..da00725 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2562,7 +2562,7 @@
     // 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);