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

Unified Diff: remoting/base/auto_thread_task_runner.h

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
« no previous file with comments | « net/ssl/channel_id_service_unittest.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 e8efe97c82026ac3068d486e998b93f7bdd352bc..359be119ee08f1deed67c415fefdca14d8590d51 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,
- const base::Closure& stop_task);
+ base::OnceClosure stop_task);
// SingleThreadTaskRunner implementation
bool PostDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool PostNonNestableDelayedTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
+ base::OnceClosure task,
base::TimeDelta delay) override;
bool RunsTasksOnCurrentThread() const override;
@@ -38,7 +38,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/ssl/channel_id_service_unittest.cc ('k') | remoting/base/auto_thread_task_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698