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

Unified Diff: content/browser/tab_contents/render_view_host_manager.cc

Issue 10008015: Fixing a problem, where a hung renderer process is not killed when navigating away (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed problems when navigating to page that doesn't involve network IO. Created 8 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/tab_contents/render_view_host_manager.cc
diff --git a/content/browser/tab_contents/render_view_host_manager.cc b/content/browser/tab_contents/render_view_host_manager.cc
index 687f2bf34830d0489370e7e36994ea22ceadf123..ce1203178fc2ba42534cf914ad027e083febceb9 100644
--- a/content/browser/tab_contents/render_view_host_manager.cc
+++ b/content/browser/tab_contents/render_view_host_manager.cc
@@ -187,10 +187,12 @@ bool RenderViewHostManager::ShouldCloseTabOnUnresponsiveRenderer() {
// handler later finishes, this call will be ignored because the state in
// CrossSiteResourceHandler will already be cleaned up.)
ViewMsg_SwapOut_Params params;
+ params.closing_process_id = render_view_host_->GetProcess()->GetID();
+ params.closing_route_id = render_view_host_->GetRoutingID();
params.new_render_process_host_id =
pending_render_view_host_->GetProcess()->GetID();
params.new_request_id = pending_request_id;
- current_host()->GetProcess()->CrossSiteSwapOutACK(params);
+ current_host()->GetProcess()->SimulateSwapOutACK(params);
}
return false;
}

Powered by Google App Engine
This is Rietveld 408576698