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

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

Issue 600553003: Enable swapping a frame back in to its parent process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remoteToLocal
Patch Set: Created 6 years, 3 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 077cf08b1681ac1329ccebe28055b32546e186ee..6b9c0897cf80a271ec7a6d7b5eaa65cfadc2a06c 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -59,6 +59,11 @@ bool CreateProxyForSiteInstance(FrameTreeNode* source_node,
if (source_node == node)
return true;
+ // If a given frame host has the same SiteInstance, no proxy is needed.
+ if (node->render_manager()->current_frame_host()->GetSiteInstance() ==
Nate Chapin 2014/09/30 21:44:47 If we're swapping a LocalFrame in place of a Remot
Charlie Reis 2014/09/30 23:02:43 Hmm, it feels wrong to be calling this function on
nasko 2014/10/08 16:42:58 CreateRenderFrameProxy already takes care of the c
Nate Chapin 2014/10/08 20:30:05 CreateRenderFrameProxy indeed correctly handles wh
Charlie Reis 2014/10/08 20:49:50 I keep hitting that CHECK as well. I think Nasko
nasko 2014/10/08 20:56:44 I think the CHECK should be there and is valid. Ch
+ instance)
+ return true;
+
node->render_manager()->CreateRenderFrameProxy(instance.get());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698