Index: base/memory/scoped_vector.h |
diff --git a/base/memory/scoped_vector.h b/base/memory/scoped_vector.h |
index 59144c0e82ac600337f249dc41154a66652de33b..61227e22d1f97adb8e1de54465ae508866293f65 100644 |
--- a/base/memory/scoped_vector.h |
+++ b/base/memory/scoped_vector.h |
@@ -64,6 +64,12 @@ class ScopedVector { |
void push_back(T* elem) { v_.push_back(elem); } |
+ void pop_back() { |
+ DCHECK(!empty()); |
willchan no longer on Chromium
2013/11/28 17:44:19
Add logging.h for this.
Philippe
2013/11/29 12:41:05
Done.
|
+ delete v_.back(); |
+ v_.pop_back(); |
+ } |
+ |
std::vector<T*>& get() { return v_; } |
const std::vector<T*>& get() const { return v_; } |
void swap(std::vector<T*>& other) { v_.swap(other); } |