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..6797d6faa8db8d596e636fb5411bff8dea65c69c 100644 |
--- a/media/cast/test/skewed_single_thread_task_runner.cc |
+++ b/media/cast/test/skewed_single_thread_task_runner.cc |
@@ -4,6 +4,8 @@ |
#include "media/cast/test/skewed_single_thread_task_runner.h" |
+#include <utility> |
+ |
#include "base/logging.h" |
#include "base/time/tick_clock.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -26,11 +28,10 @@ void SkewedSingleThreadTaskRunner::SetSkew(double skew) { |
bool SkewedSingleThreadTaskRunner::PostDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::Closure task, |
base::TimeDelta delay) { |
return task_runner_->PostDelayedTask( |
- from_here, |
- task, |
+ from_here, std::move(task), |
base::TimeDelta::FromMicroseconds(delay.InMicroseconds() * skew_)); |
} |
@@ -40,11 +41,10 @@ bool SkewedSingleThreadTaskRunner::RunsTasksOnCurrentThread() const { |
bool SkewedSingleThreadTaskRunner::PostNonNestableDelayedTask( |
const tracked_objects::Location& from_here, |
- const base::Closure& task, |
+ base::Closure task, |
base::TimeDelta delay) { |
return task_runner_->PostNonNestableDelayedTask( |
- from_here, |
- task, |
+ from_here, std::move(task), |
base::TimeDelta::FromMicroseconds(delay.InMicroseconds() * skew_)); |
} |