| Index: chrome/browser/after_startup_task_utils.cc
|
| diff --git a/chrome/browser/after_startup_task_utils.cc b/chrome/browser/after_startup_task_utils.cc
|
| index 7b8101676bf6906a2bc72022f19f9bdcbbc9643e..5b1513c6e3387d123a132d2a8f354151771ad561 100644
|
| --- a/chrome/browser/after_startup_task_utils.cc
|
| +++ b/chrome/browser/after_startup_task_utils.cc
|
| @@ -34,13 +34,13 @@ namespace {
|
| struct AfterStartupTask {
|
| AfterStartupTask(const tracked_objects::Location& from_here,
|
| const scoped_refptr<base::TaskRunner>& task_runner,
|
| - base::Closure task)
|
| + base::OnceClosure task)
|
| : from_here(from_here), task_runner(task_runner), task(std::move(task)) {}
|
| ~AfterStartupTask() {}
|
|
|
| const tracked_objects::Location from_here;
|
| const scoped_refptr<base::TaskRunner> task_runner;
|
| - base::Closure task;
|
| + base::OnceClosure task;
|
| };
|
|
|
| // The flag may be read on any thread, but must only be set on the UI thread.
|
| @@ -204,7 +204,7 @@ AfterStartupTaskUtils::Runner::~Runner() = default;
|
|
|
| bool AfterStartupTaskUtils::Runner::PostDelayedTask(
|
| const tracked_objects::Location& from_here,
|
| - base::Closure task,
|
| + base::OnceClosure task,
|
| base::TimeDelta delay) {
|
| DCHECK(delay.is_zero());
|
| AfterStartupTaskUtils::PostTask(from_here, destination_runner_,
|
| @@ -224,7 +224,7 @@ void AfterStartupTaskUtils::StartMonitoringStartup() {
|
| void AfterStartupTaskUtils::PostTask(
|
| const tracked_objects::Location& from_here,
|
| const scoped_refptr<base::TaskRunner>& destination_runner,
|
| - base::Closure task) {
|
| + base::OnceClosure task) {
|
| if (IsBrowserStartupComplete()) {
|
| destination_runner->PostTask(from_here, std::move(task));
|
| return;
|
|
|