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

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

Issue 2736813004: Maintain the current renderer_hang_count in Stability.Counts. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e45cab8f129f17b302f7d0d80bb81df2160e5e42..dcf0459a254fff7770c276437d69489a6be499e8 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -956,6 +956,12 @@ void RenderViewHostImpl::RenderViewReady() {
}
void RenderViewHostImpl::ClosePageTimeout() {
+ // Temporarily fire "hung" events to keep the renderer_hang_count from
+ // Stability.Counts stable.
+ NotificationService::current()->Notify(NOTIFICATION_RENDER_WIDGET_HOST_HANG,
+ Source<RenderWidgetHost>(nullptr),
+ NotificationService::NoDetails());
+
if (delegate_->ShouldIgnoreUnresponsiveRenderer())
return;
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698