diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 03:21:57 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-30 03:21:57 +0000 |
commit | 2db730a419117af2a8d2f2c97546c30d95e40a8d (patch) | |
tree | acc3562c127f1ce11f354db58c115e436db5a826 /media | |
parent | 3082566dcf57530771322c85ee5f76e0d8f641b7 (diff) | |
download | chromium_src-2db730a419117af2a8d2f2c97546c30d95e40a8d.zip chromium_src-2db730a419117af2a8d2f2c97546c30d95e40a8d.tar.gz chromium_src-2db730a419117af2a8d2f2c97546c30d95e40a8d.tar.bz2 |
Use the standard DeleteTask rather than rolling my own.
TBR=scherkus
BUG=none
TEST=none
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r-- | media/base/callback.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/media/base/callback.h b/media/base/callback.h index d4b56fc5..063bd2b 100644 --- a/media/base/callback.h +++ b/media/base/callback.h @@ -104,19 +104,7 @@ class CleanupCallback : public CallbackType { template <typename T> void DeleteWhenDone(T* ptr) { - class Deleter : public Task { - public: - Deleter(T* p) : ptr_(p) {} - - virtual void Run() { - delete ptr_; - } - - private: - T* ptr_; - }; - - RunWhenDone(new Deleter(ptr)); + RunWhenDone(new DeleteTask<T>(ptr)); } void RunWhenDone(Task* ptr) { |