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

Unified Diff: base/sequenced_task_runner.cc

Issue 2791243002: Rewrite base::Bind into base::BindOnce on trivial cases in base (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 | « base/sequence_checker_unittest.cc ('k') | base/sequenced_task_runner_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sequenced_task_runner.cc
diff --git a/base/sequenced_task_runner.cc b/base/sequenced_task_runner.cc
index 4c367cb92719c320c52be59f48802ee16b274de4..ff859c8ceee56716e2117421b4e71303354f146e 100644
--- a/base/sequenced_task_runner.cc
+++ b/base/sequenced_task_runner.cc
@@ -21,7 +21,7 @@ bool SequencedTaskRunner::DeleteOrReleaseSoonInternal(
const tracked_objects::Location& from_here,
void (*deleter)(const void*),
const void* object) {
- return PostNonNestableTask(from_here, Bind(deleter, object));
+ return PostNonNestableTask(from_here, BindOnce(deleter, object));
}
OnTaskRunnerDeleter::OnTaskRunnerDeleter(
« no previous file with comments | « base/sequence_checker_unittest.cc ('k') | base/sequenced_task_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698