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

Unified Diff: third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.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/test/lazy_scheduler_message_loop_delegate_for_tests.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
index fd1ffdfd675a3d8d28cff739be990991ee51cfa4..cb33843fdaed5f980b8a10963df0bee953e00069 100644
--- a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
+++ b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
@@ -68,19 +68,20 @@ bool LazySchedulerMessageLoopDelegateForTests::HasMessageLoop() const {
bool LazySchedulerMessageLoopDelegateForTests::PostDelayedTask(
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) {
EnsureMessageLoop();
- return original_task_runner_->PostDelayedTask(from_here, task, delay);
+ return original_task_runner_->PostDelayedTask(
+ from_here, std::move(task), delay);
}
bool LazySchedulerMessageLoopDelegateForTests::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) {
EnsureMessageLoop();
- return original_task_runner_->PostNonNestableDelayedTask(from_here, task,
- delay);
+ return original_task_runner_->PostNonNestableDelayedTask(
+ from_here, std::move(task), delay);
}
bool LazySchedulerMessageLoopDelegateForTests::RunsTasksOnCurrentThread()

Powered by Google App Engine
This is Rietveld 408576698