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

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: creis comments. 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 56e1ffd450cef66d2a66aa57d82aae5747b99de0..10b3975c00fd360a815f90469c6dc7af67200d45 100644
--- a/content/browser/web_contents/web_contents_impl.cc
+++ b/content/browser/web_contents/web_contents_impl.cc
@@ -308,6 +308,7 @@ WebContentsImpl::WebContentsImpl(
controller_(this, browser_context),
render_view_host_delegate_view_(NULL),
opener_(opener),
+ created_with_opener_(opener != NULL),
nasko 2014/04/08 22:43:25 nit: Most places I've seen use !!ptr for setting b
davidben 2014/04/08 23:48:23 Done. (Huh, didn't know that was our style. Okay.)
#if defined(OS_WIN)
accessible_parent_(NULL),
#endif
@@ -3544,7 +3545,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