summaryrefslogtreecommitdiffstats
path: root/base/message_loop.h
diff options
context:
space:
mode:
authormpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:19:24 +0000
committermpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-22 22:19:24 +0000
commit00ed48fe2d42c952a3d41c83ed26a130342521aa (patch)
tree80e7d1b3f210725306d505c21a989c963e902f0a /base/message_loop.h
parent8c7697346f2632d3356e9d57b8f105e9cfa26747 (diff)
downloadchromium_src-00ed48fe2d42c952a3d41c83ed26a130342521aa.zip
chromium_src-00ed48fe2d42c952a3d41c83ed26a130342521aa.tar.gz
chromium_src-00ed48fe2d42c952a3d41c83ed26a130342521aa.tar.bz2
Revert "Revert "Const-ify RefCountedThreadSafe::AddRef and Release.""
chrome_frame failed to compile last time. I needed to add a "mutable" to a member variable in chrome_frame/metrics_service.cc. Review URL: http://codereview.chromium.org/3971004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63574 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.h')
-rw-r--r--base/message_loop.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/message_loop.h b/base/message_loop.h
index 94e0096..37e4b81 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, T* object) {
+ void DeleteSoon(const tracked_objects::Location& from_here, const T* object) {
PostNonNestableTask(from_here, new DeleteTask<T>(object));
}
@@ -161,7 +161,8 @@ 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, T* object) {
+ void ReleaseSoon(const tracked_objects::Location& from_here,
+ const T* object) {
PostNonNestableTask(from_here, new ReleaseTask<T>(object));
}