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

Unified Diff: trunk/src/content/browser/frame_host/frame_tree_node.cc

Issue 163183005: Revert 251090 "Revert 250823 "With --site-per-process, avoid a c..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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: trunk/src/content/browser/frame_host/frame_tree_node.cc
===================================================================
--- trunk/src/content/browser/frame_host/frame_tree_node.cc (revision 251109)
+++ trunk/src/content/browser/frame_host/frame_tree_node.cc (working copy)
@@ -72,13 +72,13 @@
}
}
-void FrameTreeNode::ResetForMainFrameSwap() {
+void FrameTreeNode::ResetForNewProcess() {
frame_id_ = kInvalidFrameId;
current_url_ = GURL();
// The children may not have been cleared if a cross-process navigation
// commits before the old process cleans everything up. Make sure the child
- // nodes get deleted.
+ // nodes get deleted before swapping to a new process.
children_.clear();
}

Powered by Google App Engine
This is Rietveld 408576698