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

Unified Diff: remoting/base/auto_thread_task_runner.h

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 | « net/quic/chromium/test_task_runner.cc ('k') | remoting/base/auto_thread_task_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/auto_thread_task_runner.h
diff --git a/remoting/base/auto_thread_task_runner.h b/remoting/base/auto_thread_task_runner.h
index 39e8f3cc4eda932ce4131aabd48425161ca30e9d..f29173efc0277b1106692ef29f13ad0733b4cfe8 100644
--- a/remoting/base/auto_thread_task_runner.h
+++ b/remoting/base/auto_thread_task_runner.h
@@ -23,14 +23,14 @@ class AutoThreadTaskRunner : public base::SingleThreadTaskRunner {
// |stop_task| is posted to |task_runner| when the last reference to
// the AutoThreadTaskRunner is dropped.
AutoThreadTaskRunner(scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- base::Closure stop_task);
+ base::OnceClosure stop_task);
// SingleThreadTaskRunner implementation
bool PostDelayedTask(const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
- base::Closure task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
@@ -42,7 +42,7 @@ class AutoThreadTaskRunner : public base::SingleThreadTaskRunner {
~AutoThreadTaskRunner() override;
// Task posted to |task_runner_| to notify the caller that it may be stopped.
- base::Closure stop_task_;
+ base::OnceClosure stop_task_;
// The wrapped task runner.
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
« no previous file with comments | « net/quic/chromium/test_task_runner.cc ('k') | remoting/base/auto_thread_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698