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

Unified Diff: base/task.cc

Issue 9071023: base::Bind: Remove CancelableTask and ScopedTaskRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/task_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 89d2aa80e7fbb599113e6d6efd4fe5feb9e310ae..38ac08660baed3bca9b1d2071b8bef02b85af73f 100644
--- a/base/task.cc
+++ b/base/task.cc
@@ -10,30 +10,8 @@ Task::Task() {
Task::~Task() {
}
-CancelableTask::CancelableTask() {
-}
-
-CancelableTask::~CancelableTask() {
-}
-
namespace base {
-ScopedTaskRunner::ScopedTaskRunner(Task* task) : task_(task) {
-}
-
-ScopedTaskRunner::~ScopedTaskRunner() {
- if (task_) {
- task_->Run();
- delete task_;
- }
-}
-
-Task* ScopedTaskRunner::Release() {
- Task* tmp = task_;
- task_ = NULL;
- return tmp;
-}
-
ScopedClosureRunner::ScopedClosureRunner(const Closure& closure)
: closure_(closure) {
}
« no previous file with comments | « base/task.h ('k') | base/task_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698