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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 1408743005: Properly recreate swapped out RenderView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear main RFH on cancelling the pending RFH. Created 5 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/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index b09ff1f52d345a6096cb853dcfc142ae3186f36a..eaa37e8c2a191c4aab57ff08a556a1dced2ce7eb 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -294,6 +294,9 @@ bool RenderViewHostImpl::CreateRenderView(
DCHECK(GetProcess()->HasConnection());
DCHECK(GetProcess()->GetBrowserContext());
+ CHECK(main_frame_routing_id_ != MSG_ROUTING_NONE ||
+ proxy_route_id != MSG_ROUTING_NONE);
+
set_renderer_initialized(true);
// Ensure the RenderView starts with a next_page_id larger than any existing

Powered by Google App Engine
This is Rietveld 408576698