Index: base/memory/ref_counted.h |
diff --git a/base/memory/ref_counted.h b/base/memory/ref_counted.h |
index be5eda8e0839cfb15b77fc5ae99bfaac4ae11f45..96329cb1f49954adb375d82617019ee067f76c30 100644 |
--- a/base/memory/ref_counted.h |
+++ b/base/memory/ref_counted.h |
@@ -295,6 +295,11 @@ class scoped_refptr { |
// and comparison operations. |
operator T*() const { return ptr_; } |
+ T& operator*() const { |
+ assert(ptr_ != NULL); |
+ return *ptr_; |
+ } |
+ |
T* operator->() const { |
assert(ptr_ != NULL); |
return ptr_; |