Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: base/test/null_task_runner.cc

Issue 2726523002: Pass Callback to TaskRunner by value and consume it on invocation (1) (Closed)
Patch Set: s/base::ResetAndReturn/std::move/ Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: base/test/null_task_runner.cc
diff --git a/base/test/null_task_runner.cc b/base/test/null_task_runner.cc
index ffa6bdf043b4d1fae4015d3e13d0458f5ec6de90..66bdf6ffbde321508d98c1d157536fceb88c9318 100644
--- a/base/test/null_task_runner.cc
+++ b/base/test/null_task_runner.cc
@@ -10,16 +10,15 @@ NullTaskRunner::NullTaskRunner() {}
NullTaskRunner::~NullTaskRunner() {}
-bool NullTaskRunner::PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) {
+bool NullTaskRunner::PostDelayedTask(const tracked_objects::Location& from_here,
+ Closure task,
+ base::TimeDelta delay) {
return false;
}
bool NullTaskRunner::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ Closure task,
base::TimeDelta delay) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698