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

Unified Diff: content/browser/frame_host/frame_tree.cc

Issue 1202593002: Move browser-to-renderer opener plumbing to frame routing IDs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@opener-create-opener-render-views
Patch Set: More cleanup Created 5 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/frame_host/frame_tree.cc
diff --git a/content/browser/frame_host/frame_tree.cc b/content/browser/frame_host/frame_tree.cc
index 680766435dbd5e742122d3188d7b2ea56a94e022..7bcf4a7c3457c22839b32b1728310fa824af93c5 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -58,7 +58,7 @@ bool CreateProxyForSiteInstance(const scoped_refptr<SiteInstance>& instance,
SiteInstance* current_instance =
node->render_manager()->current_frame_host()->GetSiteInstance();
if (current_instance != instance.get())
- node->render_manager()->CreateRenderFrameProxy(instance.get());
+ node->render_manager()->CreateRenderFrameProxy(instance.get(), false);
return true;
}
@@ -228,11 +228,11 @@ void FrameTree::CreateProxiesForSiteInstance(
RenderViewHostImpl* render_view_host = GetRenderViewHost(site_instance);
if (!render_view_host) {
if (RenderFrameHostManager::IsSwappedOutStateForbidden()) {
- root()->render_manager()->CreateRenderFrameProxy(site_instance);
+ root()->render_manager()->CreateRenderFrameProxy(site_instance, false);
} else {
root()->render_manager()->CreateRenderFrame(
- site_instance, nullptr, MSG_ROUTING_NONE,
- CREATE_RF_SWAPPED_OUT | CREATE_RF_HIDDEN, nullptr);
+ site_instance, nullptr, CREATE_RF_SWAPPED_OUT | CREATE_RF_HIDDEN,
+ nullptr);
}
} else {
root()->render_manager()->EnsureRenderViewInitialized(render_view_host,

Powered by Google App Engine
This is Rietveld 408576698