From e3fef307894f6458bd056d3273afba6c6f9361b0 Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Tue, 2 Oct 2018 14:57:14 -0700 Subject: [PATCH] Refactor RWH::RestartHang...Timeout... into a generic base::Closure https://chromium-review.googlesource.com/c/chromium/src/+/1096362 --- atom/browser/api/atom_api_web_contents.cc | 3 ++- atom/browser/api/atom_api_web_contents.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/atom/browser/api/atom_api_web_contents.cc b/atom/browser/api/atom_api_web_contents.cc index 2ebe44e55735..c353de35968b 100644 --- a/atom/browser/api/atom_api_web_contents.cc +++ b/atom/browser/api/atom_api_web_contents.cc @@ -667,7 +667,8 @@ void WebContents::ExitFullscreenModeForTab(content::WebContents* source) { void WebContents::RendererUnresponsive( content::WebContents* source, - content::RenderWidgetHost* render_widget_host) { + content::RenderWidgetHost* render_widget_host, + base::RepeatingClosure hang_monitor_restarter) { Emit("unresponsive"); } diff --git a/atom/browser/api/atom_api_web_contents.h b/atom/browser/api/atom_api_web_contents.h index 5951efff7a08..01893bb13fff 100644 --- a/atom/browser/api/atom_api_web_contents.h +++ b/atom/browser/api/atom_api_web_contents.h @@ -332,7 +332,8 @@ class WebContents : public mate::TrackableObject, void ExitFullscreenModeForTab(content::WebContents* source) override; void RendererUnresponsive( content::WebContents* source, - content::RenderWidgetHost* render_widget_host) override; + content::RenderWidgetHost* render_widget_host, + base::RepeatingClosure hang_monitor_restarter) override; void RendererResponsive( content::WebContents* source, content::RenderWidgetHost* render_widget_host) override;