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

Unified Diff: cc/test/ordered_simple_task_runner.cc

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « cc/test/ordered_simple_task_runner.h ('k') | cc/tiles/image_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/ordered_simple_task_runner.cc
diff --git a/cc/test/ordered_simple_task_runner.cc b/cc/test/ordered_simple_task_runner.cc
index fd263f07a9f7c48c803d025db2dab87f8cf06684..4b3a80a2f1a3a387993d3a452e43fed79d3f9791 100644
--- a/cc/test/ordered_simple_task_runner.cc
+++ b/cc/test/ordered_simple_task_runner.cc
@@ -36,7 +36,7 @@ TestOrderablePendingTask::TestOrderablePendingTask()
TestOrderablePendingTask::TestOrderablePendingTask(
const tracked_objects::Location& location,
- base::Closure task,
+ base::OnceClosure task,
base::TimeTicks post_time,
base::TimeDelta delay,
TestNestability nestability)
@@ -109,7 +109,7 @@ base::TimeTicks OrderedSimpleTaskRunner::AbsoluteMaxNow() {
// base::TestSimpleTaskRunner implementation
bool OrderedSimpleTaskRunner::PostDelayedTask(
const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) {
DCHECK(thread_checker_.CalledOnValidThread());
TestOrderablePendingTask pt(from_here, std::move(task), now_src_->NowTicks(),
@@ -122,7 +122,7 @@ bool OrderedSimpleTaskRunner::PostDelayedTask(
bool OrderedSimpleTaskRunner::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) {
DCHECK(thread_checker_.CalledOnValidThread());
TestOrderablePendingTask pt(from_here, std::move(task), now_src_->NowTicks(),
« no previous file with comments | « cc/test/ordered_simple_task_runner.h ('k') | cc/tiles/image_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698