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

Unified Diff: components/timers/alarm_timer_chromeos.cc

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 years, 3 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..3538f722cc10b9c29026aee488bff0235a79b388 100644
--- a/components/timers/alarm_timer_chromeos.cc
+++ b/components/timers/alarm_timer_chromeos.cc
@@ -438,8 +438,8 @@ 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) {
« no previous file with comments | « components/memory_pressure/memory_pressure_monitor_unittest.cc ('k') | components/user_manager/fake_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698