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

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

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nasko comments. (Also a rebase. Oops.) 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
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc
index a19fcd9921d563c334e361a83b4689aad1dc658e..11aea610e7a19c09ea389fdde8040714d261fbe7 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -309,6 +309,7 @@ WebContentsImpl::WebContentsImpl(
controller_(this, browser_context),
render_view_host_delegate_view_(NULL),
opener_(opener),
+ created_with_opener_(!!opener),
#if defined(OS_WIN)
accessible_parent_(NULL),
#endif
@@ -3563,7 +3564,8 @@ bool WebContentsImpl::CreateRenderViewForRenderManager(
if (!static_cast<RenderViewHostImpl*>(
render_view_host)->CreateRenderView(base::string16(),
opener_route_id,
- max_page_id)) {
+ max_page_id,
+ created_with_opener_)) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698