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

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

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 5 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
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index fe34bc0ef8a11d9eafcc62fa09f5e9829945b869..212e3a418059dd83be63d66bc5f74a5af9f08769 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -265,8 +265,10 @@ void MakeNavigateParams(const NavigationEntryImpl& entry,
} // namespace
-WebContents* WebContents::Create(const WebContents::CreateParams& params) {
- return WebContentsImpl::CreateWithOpener(params, NULL);
+WebContents* WebContents::Create(const WebContents::CreateParams& params,
+ WebContents* opener) {
+ return WebContentsImpl::CreateWithOpener(
+ params, static_cast<WebContentsImpl*>(opener));
}
WebContents* WebContents::CreateWithSessionStorage(

Powered by Google App Engine
This is Rietveld 408576698