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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.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: third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc
index 714aca0981ecd9bdda89b304c34ad6c6dc8e5aa3..c3e86a8e3e7c91ef8d58442536e089836d3e91e5 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/scheduler_tqm_delegate_impl.cc
@@ -40,17 +40,18 @@ void SchedulerTqmDelegateImpl::RestoreDefaultTaskRunner() {
bool SchedulerTqmDelegateImpl::PostDelayedTask(
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) {
- return message_loop_task_runner_->PostDelayedTask(from_here, task, delay);
+ return message_loop_task_runner_->PostDelayedTask(
+ from_here, std::move(task), delay);
}
bool SchedulerTqmDelegateImpl::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) {
- return message_loop_task_runner_->PostNonNestableDelayedTask(from_here, task,
- delay);
+ return message_loop_task_runner_->PostNonNestableDelayedTask(
+ from_here, std::move(task), delay);
}
bool SchedulerTqmDelegateImpl::RunsTasksOnCurrentThread() const {

Powered by Google App Engine
This is Rietveld 408576698