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

Unified Diff: base/pending_task.cc

Issue 2386653002: Replace base::Callback with base::OnceCallback in base::PendingTask (Closed)
Patch Set: move UnsafeConvertOnceClosureToRepeating 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
« no previous file with comments | « base/pending_task.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/pending_task.cc
diff --git a/base/pending_task.cc b/base/pending_task.cc
index 73834bd46071ab61c0f902b599497a72a494c35c..cca9ebfbff3d43bc1c840ce9493e372864e9e0d1 100644
--- a/base/pending_task.cc
+++ b/base/pending_task.cc
@@ -9,17 +9,16 @@
namespace base {
PendingTask::PendingTask(const tracked_objects::Location& posted_from,
- base::Closure task)
+ OnceClosure task)
: base::TrackingInfo(posted_from, TimeTicks()),
task(std::move(task)),
posted_from(posted_from),
sequence_num(0),
nestable(true),
- is_high_res(false) {
-}
+ is_high_res(false) {}
PendingTask::PendingTask(const tracked_objects::Location& posted_from,
- base::Closure task,
+ OnceClosure task,
TimeTicks delayed_run_time,
bool nestable)
: base::TrackingInfo(posted_from, delayed_run_time),
@@ -27,8 +26,7 @@ PendingTask::PendingTask(const tracked_objects::Location& posted_from,
posted_from(posted_from),
sequence_num(0),
nestable(nestable),
- is_high_res(false) {
-}
+ is_high_res(false) {}
PendingTask::PendingTask(PendingTask&& other) = default;
« no previous file with comments | « base/pending_task.h ('k') | base/task_scheduler/task_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698