From 00ed48fe2d42c952a3d41c83ed26a130342521aa Mon Sep 17 00:00:00 2001 From: "mpcomplete@chromium.org" Date: Fri, 22 Oct 2010 22:19:24 +0000 Subject: 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 --- chrome/browser/browser_thread.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/browser_thread.h') 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 static bool DeleteSoon(ID identifier, const tracked_objects::Location& from_here, - T* object) { + const T* object) { return PostNonNestableTask( identifier, from_here, new DeleteTask(object)); } @@ -117,7 +117,7 @@ class BrowserThread : public base::Thread { template static bool ReleaseSoon(ID identifier, const tracked_objects::Location& from_here, - T* object) { + const T* object) { return PostNonNestableTask( identifier, from_here, new ReleaseTask(object)); } @@ -154,7 +154,7 @@ class BrowserThread : public base::Thread { template struct DeleteOnThread { template - static void Destruct(T* x) { + static void Destruct(const T* x) { if (CurrentlyOn(thread)) { delete x; } else { -- cgit v1.1