Index: base/ref_counted_memory.cc |
diff --git a/base/ref_counted_memory.cc b/base/ref_counted_memory.cc |
index 0a4a613535467aa1df3a23c0db1d708960376fad..dc244b93bce5d974fc7225e0a8de5574246addd2 100644 |
--- a/base/ref_counted_memory.cc |
+++ b/base/ref_counted_memory.cc |
@@ -18,13 +18,6 @@ size_t RefCountedStaticMemory::size() const { |
return length_; |
} |
-RefCountedBytes* RefCountedBytes::TakeVector( |
- std::vector<unsigned char>* to_destroy) { |
- RefCountedBytes* bytes = new RefCountedBytes; |
- bytes->data.swap(*to_destroy); |
- return bytes; |
-} |
- |
RefCountedBytes::RefCountedBytes() { |
} |
@@ -32,7 +25,11 @@ RefCountedBytes::RefCountedBytes(const std::vector<unsigned char>& initializer) |
: data(initializer) { |
} |
-RefCountedBytes::~RefCountedBytes() { |
+RefCountedBytes* RefCountedBytes::TakeVector( |
+ std::vector<unsigned char>* to_destroy) { |
+ RefCountedBytes* bytes = new RefCountedBytes; |
+ bytes->data.swap(*to_destroy); |
+ return bytes; |
} |
const unsigned char* RefCountedBytes::front() const { |
@@ -44,3 +41,6 @@ const unsigned char* RefCountedBytes::front() const { |
size_t RefCountedBytes::size() const { |
return data.size(); |
} |
+ |
+RefCountedBytes::~RefCountedBytes() { |
+} |