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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/web_task_runner_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/web_task_runner_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
index 348f71d34f7a9f8a478ef43d6ec09df6529e8ed6..5af14274d169a5b126fba36404b91a967ec00ea0 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc
@@ -37,10 +37,10 @@ void WebTaskRunnerImpl::postDelayedTask(const blink::WebTraceLocation& location,
}
void WebTaskRunnerImpl::postDelayedTask(const WebTraceLocation& location,
- const base::Closure& task,
+ base::OnceClosure task,
double delayMs) {
DCHECK_GE(delayMs, 0.0);
- task_queue_->PostDelayedTask(location, task,
+ task_queue_->PostDelayedTask(location, std::move(task),
base::TimeDelta::FromMillisecondsD(delayMs));
}

Powered by Google App Engine
This is Rietveld 408576698