Index: third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc |
diff --git a/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc b/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc |
index eb0a7e11f41b30dd8ca9834a9b0baa08d24f9e8e..36536c6d40370178f54fe69b0c0cd8a57d6a43f3 100644 |
--- a/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc |
+++ b/third_party/WebKit/Source/platform/scheduler/test/fake_web_task_runner.cc |
@@ -15,6 +15,7 @@ class FakeWebTaskRunner::Data : public WTF::ThreadSafeRefCounted<Data> { |
Data() : time_(0.0) {} |
std::unique_ptr<Task> task_; |
+ base::Closure closure_; |
double time_; |
private: |
@@ -47,6 +48,12 @@ void FakeWebTaskRunner::postDelayedTask(const WebTraceLocation&, |
data_->task_.reset(task); |
} |
+void FakeWebTaskRunner::postDelayedTask(const WebTraceLocation&, |
+ const base::Closure& closure, |
+ double) { |
+ data_->closure_ = closure; |
+} |
+ |
bool FakeWebTaskRunner::runsTasksOnCurrentThread() { |
return true; |
} |