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

Unified Diff: base/task_runner.cc

Issue 1048373003: CancelableTaskTracker::PostDelayedTask() support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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: base/task_runner.cc
diff --git a/base/task_runner.cc b/base/task_runner.cc
index 262e1f8b09eac8d9f91b4113ddeccc27a33323ad..87867bc1d6941853cc69c0b23d70a98b61eb7def 100644
--- a/base/task_runner.cc
+++ b/base/task_runner.cc
@@ -53,6 +53,15 @@ bool TaskRunner::PostTaskAndReply(
from_here, task, reply);
}
+bool TaskRunner::PostDelayedTaskAndReply(
+ const tracked_objects::Location& from_here,
+ const Closure& task,
+ const Closure& reply,
+ TimeDelta delay) {
+ return PostTaskAndReplyTaskRunner(this).PostDelayedTaskAndReply(
+ from_here, task, reply, delay);
+}
+
TaskRunner::TaskRunner() {}
TaskRunner::~TaskRunner() {}

Powered by Google App Engine
This is Rietveld 408576698