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..98dfd69eb662df41789187ad2098328c5a55d700 100644 |
--- a/base/memory/ref_counted_memory.cc |
+++ b/base/memory/ref_counted_memory.cc |
@@ -8,6 +8,12 @@ |
namespace base { |
+bool RefCountedMemory::Equals(const RefCountedMemory* other) const { |
jar (doing other things)
2013/01/10 07:09:06
Why doesn't this take a const ref as an argument?
|
+ return other && |
+ size() == other->size() && |
+ (memcmp(front(), other->front(), size()) == 0); |
+} |
+ |
RefCountedMemory::RefCountedMemory() {} |
RefCountedMemory::~RefCountedMemory() {} |