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

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

Issue 2005663002: Make unload tests stable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index c7d44adae24d9862337c5d78da6578b7a523cb34..8c0e8edb4dbf25b06a4fc4168dc439984733a374 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -915,6 +915,11 @@ void RenderWidgetHostImpl::RestartHangMonitorTimeout() {
hang_monitor_timeout_->Restart(hung_renderer_delay_);
}
+void RenderWidgetHostImpl::DisableHangMonitorForTest() {
+ StopHangMonitorTimeout();
+ hang_monitor_timeout_.reset();
Charlie Reis 2016/05/23 17:03:30 Yeah, I think this should be sufficient for this t
+}
+
void RenderWidgetHostImpl::StopHangMonitorTimeout() {
if (hang_monitor_timeout_)
hang_monitor_timeout_->Stop();

Powered by Google App Engine
This is Rietveld 408576698