| 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 2335a60fa9e27504129300f8935b3a8e6eef7961..3de7474065f7554ab5221777f7bba2230ce7766d 100644
 | 
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
 | 
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
 | 
| @@ -1906,12 +1906,16 @@ void RenderWidgetHostImpl::IncrementInFlightEventCount(
 | 
|    }
 | 
|  }
 | 
|  
 | 
| -void RenderWidgetHostImpl::DecrementInFlightEventCount() {
 | 
| +void RenderWidgetHostImpl::DecrementInFlightEventCount(
 | 
| +    InputEventAckSource ack_source) {
 | 
|    if (decrement_in_flight_event_count() <= 0) {
 | 
|      // Cancel pending hung renderer checks since the renderer is responsive.
 | 
|      StopHangMonitorTimeout();
 | 
|    } else {
 | 
| -    RestartHangMonitorTimeoutIfNecessary();
 | 
| +    // Only restart the hang monitor timer if we got a response from the
 | 
| +    // main thread.
 | 
| +    if (ack_source == InputEventAckSource::MAIN_THREAD)
 | 
| +      RestartHangMonitorTimeoutIfNecessary();
 | 
|    }
 | 
|  }
 | 
|  
 | 
| 
 |