diff options
author | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:19:18 +0000 |
---|---|---|
committer | mpcomplete@chromium.org <mpcomplete@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-22 00:19:18 +0000 |
commit | a571d3d39325f0ae3b2e060f3d274b5903cbafcf (patch) | |
tree | 6adaed8b87c549299fbb679e1bb728de9118269a /chrome/browser/browser_thread.h | |
parent | 952ec4b4ac9a7a92fd3014f782ce0a0ba0ef7b83 (diff) | |
download | chromium_src-a571d3d39325f0ae3b2e060f3d274b5903cbafcf.zip chromium_src-a571d3d39325f0ae3b2e060f3d274b5903cbafcf.tar.gz chromium_src-a571d3d39325f0ae3b2e060f3d274b5903cbafcf.tar.bz2 |
Const-ify RefCountedThreadSafe::AddRef and Release.
Review URL: http://codereview.chromium.org/3869003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_thread.h')
-rw-r--r-- | chrome/browser/browser_thread.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/browser_thread.h b/chrome/browser/browser_thread.h index c034851..f6a022e 100644 --- a/chrome/browser/browser_thread.h +++ b/chrome/browser/browser_thread.h @@ -109,7 +109,7 @@ class BrowserThread : public base::Thread { template <class T> static bool DeleteSoon(ID identifier, const tracked_objects::Location& from_here, - T* object) { + const T* object) { return PostNonNestableTask( identifier, from_here, new DeleteTask<T>(object)); } @@ -117,7 +117,7 @@ class BrowserThread : public base::Thread { template <class T> static bool ReleaseSoon(ID identifier, const tracked_objects::Location& from_here, - T* object) { + const T* object) { return PostNonNestableTask( identifier, from_here, new ReleaseTask<T>(object)); } @@ -154,7 +154,7 @@ class BrowserThread : public base::Thread { template<ID thread> struct DeleteOnThread { template<typename T> - static void Destruct(T* x) { + static void Destruct(const T* x) { if (CurrentlyOn(thread)) { delete x; } else { |