Index: chrome/browser/after_startup_task_utils_unittest.cc |
diff --git a/chrome/browser/after_startup_task_utils_unittest.cc b/chrome/browser/after_startup_task_utils_unittest.cc |
index 6f3dad83f10d2112bf9a19bbdcf5b672a1459e1f..6b1a9c5bbd0f5bad268c7db1b478010f284bdb8b 100644 |
--- a/chrome/browser/after_startup_task_utils_unittest.cc |
+++ b/chrome/browser/after_startup_task_utils_unittest.cc |
@@ -31,12 +31,13 @@ class WrappedTaskRunner : public base::TaskRunner { |
: real_task_runner_(real_runner) {} |
bool PostDelayedTask(const tracked_objects::Location& from_here, |
- base::Closure task, |
+ base::OnceClosure task, |
base::TimeDelta delay) override { |
++posted_task_count_; |
return real_task_runner_->PostDelayedTask( |
from_here, |
- base::Bind(&WrappedTaskRunner::RunWrappedTask, this, std::move(task)), |
+ base::BindOnce(&WrappedTaskRunner::RunWrappedTask, this, |
+ std::move(task)), |
base::TimeDelta()); // Squash all delays so our tests complete asap. |
} |
@@ -58,7 +59,7 @@ class WrappedTaskRunner : public base::TaskRunner { |
private: |
~WrappedTaskRunner() override {} |
- void RunWrappedTask(base::Closure task) { |
+ void RunWrappedTask(base::OnceClosure task) { |
++ran_task_count_; |
std::move(task).Run(); |
} |
@@ -98,12 +99,12 @@ class AfterStartupTaskTest : public testing::Test { |
void PostAfterStartupTaskFromDBThread( |
const tracked_objects::Location& from_here, |
const scoped_refptr<base::TaskRunner>& task_runner, |
- base::Closure task) { |
+ base::OnceClosure task) { |
RunLoop run_loop; |
db_thread_->real_runner()->PostTaskAndReply( |
FROM_HERE, |
- base::Bind(&AfterStartupTaskUtils::PostTask, from_here, task_runner, |
- std::move(task)), |
+ base::BindOnce(&AfterStartupTaskUtils::PostTask, from_here, task_runner, |
+ std::move(task)), |
base::Bind(&RunLoop::Quit, base::Unretained(&run_loop))); |
run_loop.Run(); |
} |