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

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

Issue 172063002: Unify frame IDs with RenderFrameHost routing IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix type 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: content/browser/frame_host/render_frame_host_manager.cc
diff --git a/content/browser/frame_host/render_frame_host_manager.cc b/content/browser/frame_host/render_frame_host_manager.cc
index c871e0430c7229a4232c80fb27728e24a491857a..a9d3d568789f4d72c7eef7e3a9aea69d40d30624 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -327,7 +327,10 @@ void RenderFrameHostManager::SwappedOutFrame(
}
// Sanity check that this is for the correct frame.
- DCHECK_EQ(frame_tree_node_->frame_id(), pending_nav_params_->frame_id);
+ DCHECK_EQ(frame_tree_node_->current_frame_host()->GetRoutingID(),
+ pending_nav_params_->frame_id);
+ DCHECK_EQ(frame_tree_node_->current_frame_host()->GetProcess()->GetID(),
+ pending_nav_params_->global_request_id.child_id);
// Now that the unload handler has run, we need to either initiate the
// pending transfer (if there is one) or resume the paused response (if not).
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/browser/frame_host/render_frame_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698