| 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 497021c489534e12b7c8929e28e33c498c1bfadc..95dac77a7ae38ca6896a4732e08da99aab6347ea 100644
|
| --- a/content/browser/renderer_host/render_widget_host_impl.cc
|
| +++ b/content/browser/renderer_host/render_widget_host_impl.cc
|
| @@ -2070,11 +2070,10 @@ void RenderWidgetHostImpl::FrameSwapped(const ui::LatencyInfo& latency_info) {
|
| // is drawn to the screen, and when the snapshot will actually pick up
|
| // that content. Insert a manual delay of 1/6th of a second (to simulate
|
| // 10 frames at 60 fps) before actually taking the snapshot.
|
| - base::MessageLoop::current()->PostDelayedTask(
|
| + base::ThreadTaskRunnerHandle::Get()->PostDelayedTask(
|
| FROM_HERE,
|
| base::Bind(&RenderWidgetHostImpl::WindowSnapshotReachedScreen,
|
| - weak_factory_.GetWeakPtr(),
|
| - sequence_number),
|
| + weak_factory_.GetWeakPtr(), sequence_number),
|
| base::TimeDelta::FromSecondsD(1. / 6));
|
| #else
|
| WindowSnapshotReachedScreen(sequence_number);
|
|
|