Index: chrome/browser/browser_thread.h |
diff --git a/chrome/browser/browser_thread.h b/chrome/browser/browser_thread.h |
index c034851578a34d36438ce4946b617b3e3601b652..f6a022e35ebd9e37eca75d44bd25e0e2f6764a88 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 { |