Make to call WebContentsImpl::RenderViewCreated() when we create child window.
Actually we do not call WebContentsImpl::RenderViewCreated() when we care child window.
It makes many issues such as addJavascriptInterface() is not working well in child window.

BUG=361418
TEST=WebContentsImplBrowserTest.RenderViewCreatedForChildWindow

Review URL: https://codereview.chromium.org/196283013

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271240 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 f0812d69..1426318 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -1418,6 +1418,7 @@
   if (params.disposition == NEW_BACKGROUND_TAB)
     create_params.initially_hidden = true;
   new_contents->Init(create_params);
+  new_contents->RenderViewCreated(new_contents->GetRenderViewHost());
 
   // Save the window for later if we're not suppressing the opener (since it
   // will be shown immediately).