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

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

Issue 1066823004: PlzNavigate: improve tracking of improper subframe swap-out. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed NI::GetNavigationRequestForNodeForTesting signature. Created 5 years, 8 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 f19fe90633e703704c7cdc1bc39a2844a4fc747f..931c73c3b4c4db798cbd86a512c3b1f420a0a5c6 100644
--- a/content/browser/frame_host/render_frame_host_manager.cc
+++ b/content/browser/frame_host/render_frame_host_manager.cc
@@ -665,6 +665,7 @@ void RenderFrameHostManager::DiscardUnusedFrame(
RenderFrameProxyHost* proxy =
new RenderFrameProxyHost(site_instance, frame_tree_node_);
+ CHECK(!GetRenderFrameProxyHost(site_instance));
clamy 2015/04/14 15:32:04 Maybe move the CHECK above the creation of the new
carlosk 2015/04/23 16:10:13 Done.
proxy_hosts_[site_instance->GetId()] = proxy;
// Check if the RenderFrameHost is already swapped out, to avoid swapping it

Powered by Google App Engine
This is Rietveld 408576698