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

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: Address review, fix new tests 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..8abf5cda03df426a8d82d7f74982f38d35b81302 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::DisableHangMonitorForTesting() {
+ StopHangMonitorTimeout();
+ hang_monitor_timeout_.reset();
+}
+
void RenderWidgetHostImpl::StopHangMonitorTimeout() {
if (hang_monitor_timeout_)
hang_monitor_timeout_->Stop();
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/public/browser/render_widget_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698