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

Unified Diff: base/task.cc

Issue 9086002: base::Bind: Remove Task. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Style fix. Created 8 years, 12 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/task.h ('k') | base/threading/thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/task.cc
diff --git a/base/task.cc b/base/task.cc
index 38ac08660baed3bca9b1d2071b8bef02b85af73f..5d40e55cd9e2c4c2b4aa399f3040d82a8132388a 100644
--- a/base/task.cc
+++ b/base/task.cc
@@ -4,12 +4,6 @@
#include "base/task.h"
-Task::Task() {
-}
-
-Task::~Task() {
-}
-
namespace base {
ScopedClosureRunner::ScopedClosureRunner(const Closure& closure)
@@ -27,33 +21,4 @@ Closure ScopedClosureRunner::Release() {
return result;
}
-namespace subtle {
-
-TaskClosureAdapter::TaskClosureAdapter(Task* task)
- : task_(task),
- should_leak_task_(&kTaskLeakingDefault) {
-}
-
-TaskClosureAdapter::TaskClosureAdapter(Task* task, bool* should_leak_task)
- : task_(task),
- should_leak_task_(should_leak_task) {
-}
-
-TaskClosureAdapter::~TaskClosureAdapter() {
- if (!*should_leak_task_) {
- delete task_;
- }
-}
-
-void TaskClosureAdapter::Run() {
- task_->Run();
- delete task_;
- task_ = NULL;
-}
-
-// Don't leak tasks by default.
-bool TaskClosureAdapter::kTaskLeakingDefault = false;
-
-} // namespace subtle
-
} // namespace base
« no previous file with comments | « base/task.h ('k') | base/threading/thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698