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

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

Issue 666563005: Set up Mojo connection when RenderFrameHost is reused for new RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to reviews Created 6 years, 2 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 27ed57ff1a32d0cfdabf81af901f6e28b2e0d496..b1ccf6f9c796d17b899eb5f90bbc2681508c5f93 100644
--- a/content/browser/frame_host/frame_tree.cc
+++ b/content/browser/frame_host/frame_tree.cc
@@ -47,8 +47,12 @@ bool FrameTreeNodeForId(int64 frame_tree_node_id,
// given RenderViewHost's process.
bool ResetNodesForNewProcess(RenderViewHost* render_view_host,
FrameTreeNode* node) {
- if (render_view_host == node->current_frame_host()->render_view_host())
+ if (render_view_host == node->current_frame_host()->render_view_host()) {
+ // Ensure that if the frame host is reused for a new RenderFrame, it will
+ // set up the Mojo connection with that frame.
+ node->current_frame_host()->InvalidateMojoConnection();
node->ResetForNewProcess();
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698