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

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

Issue 2136173003: Add an histogram to differentiate between hang types of the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 1b43ff27d3a3e49dd3f0e4d7797ef9f633a0df2b..bc7c7164a99b51d7ee08a99dacb2fec56d626655 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -575,7 +575,8 @@ WebPreferences RenderViewHostImpl::ComputeWebkitPrefs() {
void RenderViewHostImpl::ClosePage() {
is_waiting_for_close_ack_ = true;
GetWidget()->StartHangMonitorTimeout(
- TimeDelta::FromMilliseconds(kUnloadTimeoutMS));
+ TimeDelta::FromMilliseconds(kUnloadTimeoutMS),
+ RenderWidgetHostDelegate::RENDERER_UNRESPONSIVE_CLOSE_PAGE);
if (IsRenderViewLive()) {
// Since we are sending an IPC message to the renderer, increase the event

Powered by Google App Engine
This is Rietveld 408576698