Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(756)

Unified Diff: content/browser/web_contents/web_contents_impl.cc

Issue 196283013: Make to call WebContentsImpl::RenderViewCreated() when we create child window. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_impl.cc
===================================================================
--- content/browser/web_contents/web_contents_impl.cc (revision 256801)
+++ content/browser/web_contents/web_contents_impl.cc (working copy)
@@ -1354,6 +1354,11 @@
new WebContentsImpl(GetBrowserContext(),
params.opener_suppressed ? NULL : this);
+ NotificationService::current()->Notify(
+ NOTIFICATION_WEB_CONTENTS_CREATE_NEW_WINDOW,
+ Source<WebContents>(this),
+ Details<WebContents>(new_contents));
+
new_contents->GetController().SetSessionStorageNamespace(
partition_id,
session_storage_namespace);
@@ -1377,6 +1382,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).

Powered by Google App Engine
This is Rietveld 408576698