diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:48:15 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:48:15 +0000 |
commit | 4b4172299b3b74557ba20d3d8c87d811cf502f39 (patch) | |
tree | 99448b8838e18fefe7ab4b247d381c078a5bc83d /base/message_loop.h | |
parent | 827ea2449764f84344a5e1d5c3b650f29cf2571f (diff) | |
download | chromium_src-4b4172299b3b74557ba20d3d8c87d811cf502f39.zip chromium_src-4b4172299b3b74557ba20d3d8c87d811cf502f39.tar.gz chromium_src-4b4172299b3b74557ba20d3d8c87d811cf502f39.tar.bz2 |
Revert "Const-ify RefCountedThreadSafe::AddRef and Release."
This reverts commit b7ce919957536ceb0cfac1709bc779fd086b6ce8.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r-- | base/message_loop.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/message_loop.h b/base/message_loop.h index 37e4b81..94e0096 100644 --- a/base/message_loop.h +++ b/base/message_loop.h @@ -146,7 +146,7 @@ class MessageLoop : public base::MessagePump::Delegate { // as the thread that calls PostDelayedTask(FROM_HERE, ), then T MUST inherit // from RefCountedThreadSafe<T>! template <class T> - void DeleteSoon(const tracked_objects::Location& from_here, const T* object) { + void DeleteSoon(const tracked_objects::Location& from_here, T* object) { PostNonNestableTask(from_here, new DeleteTask<T>(object)); } @@ -161,8 +161,7 @@ class MessageLoop : public base::MessagePump::Delegate { // PostDelayedTask(FROM_HERE, ), then T MUST inherit from // RefCountedThreadSafe<T>! template <class T> - void ReleaseSoon(const tracked_objects::Location& from_here, - const T* object) { + void ReleaseSoon(const tracked_objects::Location& from_here, T* object) { PostNonNestableTask(from_here, new ReleaseTask<T>(object)); } |