Chromium Code Reviews| 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; |
| } |