| Index: base/ref_counted.cc
|
| diff --git a/base/ref_counted.cc b/base/ref_counted.cc
|
| index 2f795ea14df99b1e1ccff6cd0e2b3a1c2fb0da0d..2d459ae560eb2bffe4703c9979afe000b83e54a2 100644
|
| --- a/base/ref_counted.cc
|
| +++ b/base/ref_counted.cc
|
| @@ -51,6 +51,11 @@ bool RefCountedBase::Release() const {
|
| return false;
|
| }
|
|
|
| +bool RefCountedThreadSafeBase::HasOneRef() const {
|
| + return AtomicRefCountIsOne(
|
| + &const_cast<RefCountedThreadSafeBase*>(this)->ref_count_);
|
| +}
|
| +
|
| RefCountedThreadSafeBase::RefCountedThreadSafeBase() : ref_count_(0) {
|
| #ifndef NDEBUG
|
| in_dtor_ = false;
|
| @@ -85,11 +90,6 @@ bool RefCountedThreadSafeBase::Release() const {
|
| return false;
|
| }
|
|
|
| -bool RefCountedThreadSafeBase::HasOneRef() const {
|
| - return AtomicRefCountIsOne(
|
| - &const_cast<RefCountedThreadSafeBase*>(this)->ref_count_);
|
| -}
|
| -
|
| } // namespace subtle
|
|
|
| } // namespace base
|
|
|