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

Unified Diff: remoting/base/auto_thread_task_runner.cc

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « remoting/base/auto_thread_task_runner.h ('k') | remoting/client/plugin/pepper_main_thread_task_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread_task_runner.cc
diff --git a/remoting/base/auto_thread_task_runner.cc b/remoting/base/auto_thread_task_runner.cc
index be997110dc80735d0670dc3f52b888b3a1acfe64..552b985a4f42bb495d4d77308480403cd6ef7ff9 100644
--- a/remoting/base/auto_thread_task_runner.cc
+++ b/remoting/base/auto_thread_task_runner.cc
@@ -12,14 +12,14 @@ namespace remoting {
AutoThreadTaskRunner::AutoThreadTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- base::Closure stop_task)
+ base::OnceClosure stop_task)
: stop_task_(std::move(stop_task)), task_runner_(task_runner) {
DCHECK(!stop_task_.is_null());
}
bool AutoThreadTaskRunner::PostDelayedTask(
const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) {
CHECK(task_runner_->PostDelayedTask(from_here, std::move(task), delay));
return true;
@@ -27,7 +27,7 @@ bool AutoThreadTaskRunner::PostDelayedTask(
bool AutoThreadTaskRunner::PostNonNestableDelayedTask(
const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) {
CHECK(task_runner_->PostNonNestableDelayedTask(from_here, std::move(task),
delay));
« no previous file with comments | « remoting/base/auto_thread_task_runner.h ('k') | remoting/client/plugin/pepper_main_thread_task_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698