Index: base/timer/timer.cc |
diff --git a/base/timer/timer.cc b/base/timer/timer.cc |
index 6ec18f181488c3a5b533abe93cf9b793914e6451..31eec1bb574e83b32308dfbb3a94e335d550499c 100644 |
--- a/base/timer/timer.cc |
+++ b/base/timer/timer.cc |
@@ -170,13 +170,16 @@ void Timer::PostNewScheduledTask(TimeDelta delay) { |
is_running_ = true; |
scheduled_task_ = new BaseTimerTaskInternal(this); |
if (delay > TimeDelta::FromMicroseconds(0)) { |
- GetTaskRunner()->PostDelayedTask(posted_from_, |
- base::Bind(&BaseTimerTaskInternal::Run, base::Owned(scheduled_task_)), |
+ GetTaskRunner()->PostDelayedTask( |
+ posted_from_, |
+ base::BindOnce(&BaseTimerTaskInternal::Run, |
+ base::Owned(scheduled_task_)), |
delay); |
scheduled_run_time_ = desired_run_time_ = Now() + delay; |
} else { |
GetTaskRunner()->PostTask(posted_from_, |
- base::Bind(&BaseTimerTaskInternal::Run, base::Owned(scheduled_task_))); |
+ base::BindOnce(&BaseTimerTaskInternal::Run, |
+ base::Owned(scheduled_task_))); |
scheduled_run_time_ = desired_run_time_ = TimeTicks(); |
} |
// Remember the thread ID that posts the first task -- this will be verified |