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

Unified Diff: components/timers/alarm_timer_chromeos.cc

Issue 2386653002: Replace base::Callback with base::OnceCallback in base::PendingTask (Closed)
Patch Set: revert most of task_scheduler changes Created 4 years, 2 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
Index: components/timers/alarm_timer_chromeos.cc
diff --git a/components/timers/alarm_timer_chromeos.cc b/components/timers/alarm_timer_chromeos.cc
index ecf0bd2a2b84bef8d907785845b3b77e6b0a8696..af8b5b0c926bd6c25066f4f587b374368188b5cc 100644
--- a/components/timers/alarm_timer_chromeos.cc
+++ b/components/timers/alarm_timer_chromeos.cc
@@ -438,8 +438,9 @@ void AlarmTimer::OnTimerFired() {
TRACE_TASK_EXECUTION("AlarmTimer::OnTimerFired", *pending_user_task);
// Now run the user task.
- base::MessageLoop::current()->task_annotator()->RunTask("AlarmTimer::Reset",
- *pending_user_task);
+ base::MessageLoop::current()->task_annotator()->RunTask(
+ "AlarmTimer::Reset",
+ pending_user_task.get());
}
OneShotAlarmTimer::OneShotAlarmTimer() : AlarmTimer(false, false) {

Powered by Google App Engine
This is Rietveld 408576698