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

Unified Diff: base/sequenced_task_runner.cc

Issue 2686033002: Simplify SequencedTaskRunner::{Delete,Releaose}Soon impl (Closed)
Patch Set: public -> private Created 3 years, 10 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/sequenced_task_runner.h ('k') | base/sequenced_task_runner_helpers.h » ('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 1bbcb9df399705b12e22eafcb91a2e5048459240..dc11ebc3f12dac57c39c9ec079618f7c5018666d 100644
--- a/base/sequenced_task_runner.cc
+++ b/base/sequenced_task_runner.cc
@@ -14,20 +14,13 @@ bool SequencedTaskRunner::PostNonNestableTask(
return PostNonNestableDelayedTask(from_here, task, base::TimeDelta());
}
-bool SequencedTaskRunner::DeleteSoonInternal(
+bool SequencedTaskRunner::DeleteOrReleaseSoonInternal(
const tracked_objects::Location& from_here,
- void(*deleter)(const void*),
+ void (*deleter)(const void*),
const void* object) {
return PostNonNestableTask(from_here, Bind(deleter, object));
}
-bool SequencedTaskRunner::ReleaseSoonInternal(
- const tracked_objects::Location& from_here,
- void(*releaser)(const void*),
- const void* object) {
- return PostNonNestableTask(from_here, Bind(releaser, object));
-}
-
OnTaskRunnerDeleter::OnTaskRunnerDeleter(
scoped_refptr<SequencedTaskRunner> task_runner)
: task_runner_(std::move(task_runner)) {
« no previous file with comments | « base/sequenced_task_runner.h ('k') | base/sequenced_task_runner_helpers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698