Index: base/memory/ref_counted_memory.cc |
diff --git a/base/memory/ref_counted_memory.cc b/base/memory/ref_counted_memory.cc |
index 9bcde32b60ec77bb1bc88721256f59d0e3f9f67b..cd5d162f84c68f3ba43f249c5ef5056082a99529 100644 |
--- a/base/memory/ref_counted_memory.cc |
+++ b/base/memory/ref_counted_memory.cc |
@@ -8,6 +8,11 @@ |
namespace base { |
+bool RefCountedMemory::Equals(RefCountedMemory* other) const { |
+ return size() == other->size() && |
sky
2013/01/09 20:38:24
How about a NULL check on |other|, and if possible
|
+ (memcmp(front(), other->front(), size()) == 0); |
+} |
+ |
RefCountedMemory::RefCountedMemory() {} |
RefCountedMemory::~RefCountedMemory() {} |