Index: base/sequenced_task_runner.h |
diff --git a/base/sequenced_task_runner.h b/base/sequenced_task_runner.h |
index 0bedf2e1b9251190b09dd3a409a4db4689f3e81c..de91bd9285b2f35fd952642e9439d8e35935b331 100644 |
--- a/base/sequenced_task_runner.h |
+++ b/base/sequenced_task_runner.h |
@@ -163,9 +163,7 @@ struct BASE_EXPORT OnTaskRunnerDeleter { |
template <typename T> |
void operator()(const T* ptr) { |
- if (task_runner_->RunsTasksOnCurrentThread()) |
- delete ptr; |
- else if (ptr) |
+ if (ptr) |
task_runner_->DeleteSoon(FROM_HERE, ptr); |
} |