Index: base/memory/ref_counted_unittest.cc |
diff --git a/base/memory/ref_counted_unittest.cc b/base/memory/ref_counted_unittest.cc |
index 93b93c4cc0bcb6bf2f027c6dad76819bd1aaad6c..8ddd5be0119b412b6fe6eba66d5873fccec1fa44 100644 |
--- a/base/memory/ref_counted_unittest.cc |
+++ b/base/memory/ref_counted_unittest.cc |
@@ -27,7 +27,6 @@ class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { |
ScopedRefPtrToSelf() |
: ALLOW_THIS_IN_INITIALIZER_LIST(self_ptr_(this)) { |
} |
- ~ScopedRefPtrToSelf() { was_destroyed_ = true; } |
static bool was_destroyed() { return was_destroyed_; } |
@@ -35,6 +34,7 @@ class ScopedRefPtrToSelf : public base::RefCounted<ScopedRefPtrToSelf> { |
private: |
friend class base::RefCounted<ScopedRefPtrToSelf>; |
+ ~ScopedRefPtrToSelf() { was_destroyed_ = true; } |
static bool was_destroyed_; |