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

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

Issue 2568063003: Remove WebTaskRunner::Task (Closed)
Patch Set: . Created 4 years 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 f767e1a3c3a897eee513b02f04da0936756c4518..5d8d6c445338ded676fc6cdba92cc9db30a98545 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
@@ -19,24 +19,6 @@ WebTaskRunnerImpl::WebTaskRunnerImpl(scoped_refptr<TaskQueue> task_queue)
WebTaskRunnerImpl::~WebTaskRunnerImpl() {}
-void WebTaskRunnerImpl::postTask(const blink::WebTraceLocation& location,
- blink::WebTaskRunner::Task* task) {
- task_queue_->PostTask(location,
- base::Bind(&WebTaskRunnerImpl::runTask,
- base::Passed(base::WrapUnique(task))));
-}
-
-void WebTaskRunnerImpl::postDelayedTask(const blink::WebTraceLocation& location,
- blink::WebTaskRunner::Task* task,
- double delayMs) {
- DCHECK_GE(delayMs, 0.0) << location.function_name() << " "
- << location.file_name();
- task_queue_->PostDelayedTask(location,
- base::Bind(&WebTaskRunnerImpl::runTask,
- base::Passed(base::WrapUnique(task))),
- base::TimeDelta::FromMillisecondsD(delayMs));
-}
-
void WebTaskRunnerImpl::postDelayedTask(const WebTraceLocation& location,
const base::Closure& task,
double delayMs) {
@@ -76,10 +58,5 @@ base::SingleThreadTaskRunner* WebTaskRunnerImpl::toSingleThreadTaskRunner() {
return task_queue_.get();
}
-void WebTaskRunnerImpl::runTask(
- std::unique_ptr<blink::WebTaskRunner::Task> task) {
- task->run();
-}
-
} // namespace scheduler
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698