Index: media/cast/test/skewed_single_thread_task_runner.cc |
diff --git a/media/cast/test/skewed_single_thread_task_runner.cc b/media/cast/test/skewed_single_thread_task_runner.cc |
index fda7dfbfcad16575447c6975538d76c5915e8281..b08b456525452e07448423b86cafe4fc3850c6b2 100644 |
--- a/media/cast/test/skewed_single_thread_task_runner.cc |
+++ b/media/cast/test/skewed_single_thread_task_runner.cc |
@@ -26,11 +26,10 @@ void SkewedSingleThreadTaskRunner::SetSkew(double skew) { |
bool SkewedSingleThreadTaskRunner::PostDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::OnceClosure task, |
base::TimeDelta delay) { |
return task_runner_->PostDelayedTask( |
- from_here, |
- task, |
+ from_here, std::move(task), |
base::TimeDelta::FromMicroseconds(delay.InMicroseconds() * skew_)); |
} |
@@ -40,11 +39,10 @@ bool SkewedSingleThreadTaskRunner::RunsTasksOnCurrentThread() const { |
bool SkewedSingleThreadTaskRunner::PostNonNestableDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::OnceClosure task, |
base::TimeDelta delay) { |
return task_runner_->PostNonNestableDelayedTask( |
- from_here, |
- task, |
+ from_here, std::move(task), |
base::TimeDelta::FromMicroseconds(delay.InMicroseconds() * skew_)); |
} |