Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2701)

Unified Diff: chrome/browser/browser_thread.h

Issue 3971004: Revert "Revert "Const-ify RefCountedThreadSafe::AddRef and Release."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/task.h ('k') | chrome/browser/browser_thread_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
« no previous file with comments | « base/task.h ('k') | chrome/browser/browser_thread_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698