Index: base/trace_event/memory_dump_manager_unittest.cc |
diff --git a/base/trace_event/memory_dump_manager_unittest.cc b/base/trace_event/memory_dump_manager_unittest.cc |
index faae270ee1881b6ab823834b4e88a8681df4a831..e126edd3972e052f5ad6515fcc39741bf5daeac3 100644 |
--- a/base/trace_event/memory_dump_manager_unittest.cc |
+++ b/base/trace_event/memory_dump_manager_unittest.cc |
@@ -105,7 +105,7 @@ void OnTraceDataCollected(Closure quit_closure, |
// Posts |task| to |task_runner| and blocks until it is executed. |
void PostTaskAndWait(const tracked_objects::Location& from_here, |
SequencedTaskRunner* task_runner, |
- base::Closure task) { |
+ base::OnceClosure task) { |
base::WaitableEvent event(WaitableEvent::ResetPolicy::MANUAL, |
WaitableEvent::InitialState::NOT_SIGNALED); |
task_runner->PostTask(from_here, std::move(task)); |
@@ -182,14 +182,14 @@ class TestSequencedTaskRunner : public SequencedTaskRunner { |
unsigned no_of_post_tasks() const { return num_of_post_tasks_; } |
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here, |
- Closure task, |
+ OnceClosure task, |
TimeDelta delay) override { |
NOTREACHED(); |
return false; |
} |
bool PostDelayedTask(const tracked_objects::Location& from_here, |
- Closure task, |
+ OnceClosure task, |
TimeDelta delay) override { |
num_of_post_tasks_++; |
if (enabled_) { |