Chromium Code Reviews| Index: base/memory/ref_counted.h |
| diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h |
| index ce0d94a81be1eca6f5181687fa2a395636d60bdf..d76643e60dba37d147c84949afbd2496d620f3ae 100644 |
| --- a/base/memory/ref_counted.h |
| +++ b/base/memory/ref_counted.h |
| @@ -7,9 +7,12 @@ |
| #pragma once |
| #include <cassert> |
| +#include <cstdio> |
| +#include <unistd.h> |
|
scshunt
2012/07/06 16:39:03
Note to self: remove.
|
| #include "base/atomic_ref_count.h" |
| #include "base/base_export.h" |
| +#include "base/logging.h" |
| #include "base/threading/thread_collision_warner.h" |
| namespace base { |
| @@ -256,6 +259,7 @@ class scoped_refptr { |
| T* get() const { return ptr_; } |
| operator T*() const { return ptr_; } |
| T* operator->() const { |
| + DCHECK(ptr_ != NULL); |
|
Fady Samuel
2012/07/06 15:14:44
Looks unnecessary. Revert please.
scshunt
2012/07/06 16:39:03
It was for debugging; assert() wasn't causing a st
|
| assert(ptr_ != NULL); |
| return ptr_; |
| } |