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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/web_task_runner_impl.cc

Issue 2876513002: Use WTF::TimeDelta to specify delays on WebTaskRunner (Closed)
Patch Set: mac fix Created 3 years, 7 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 cf084fe18ef603226eee86b73d271522fab338c3..01fb90e4ccbc5f40aa2ee414d2256ff57d599cc9 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
@@ -21,15 +21,6 @@ RefPtr<WebTaskRunnerImpl> WebTaskRunnerImpl::Create(
return AdoptRef(new WebTaskRunnerImpl(std::move(task_queue)));
}
-void WebTaskRunnerImpl::PostDelayedTask(const WebTraceLocation& location,
- base::OnceClosure task,
- double delay_ms) {
- DCHECK_GE(delay_ms, 0.0) << location.function_name() << " "
- << location.file_name();
- task_queue_->PostDelayedTask(location, std::move(task),
- base::TimeDelta::FromMillisecondsD(delay_ms));
-}
-
bool WebTaskRunnerImpl::RunsTasksInCurrentSequence() {
return task_queue_->RunsTasksInCurrentSequence();
}

Powered by Google App Engine
This is Rietveld 408576698