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

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: A different approach. 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 0c6793ffd1d069df67742a4014d5760fbf69e2ec..5ce71714d2221ecb59eec797337fa16d753c0dd2 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -299,6 +299,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