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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 692973005: Pass origin information for remote frame creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test failures for content:// URLs on Android Created 6 years 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
« no previous file with comments | « content/browser/frame_host/render_frame_proxy_host.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index bc26b3ac8858fdcc2b793d3af7ec9dd3e8d242b6..e7e2606545bc069d00edaca5bd8ef1f4b0b7fb43 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -293,6 +293,11 @@ bool RenderViewHostImpl::CreateRenderView(
params.min_size = min_size_for_auto_resize();
params.max_size = max_size_for_auto_resize();
GetResizeParams(&params.initial_size);
+ if (!is_active_) {
+ params.replicated_frame_state =
+ static_cast<RenderFrameHostImpl*>(GetMainFrame())->frame_tree_node()
+ ->current_replication_state();
+ }
if (!Send(new ViewMsg_New(params)))
return false;
« no previous file with comments | « content/browser/frame_host/render_frame_proxy_host.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698