Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Unified Diff: media/base/android/access_unit_queue.cc

Issue 2234753002: media: Use stl utilities from the base namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/text_renderer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/access_unit_queue.cc
diff --git a/media/base/android/access_unit_queue.cc b/media/base/android/access_unit_queue.cc
index 151e4aa885fedf6141c4eff5d5f7362dae972872..b98c89b11a16d5448345a608f47eedad21c6e49b 100644
--- a/media/base/android/access_unit_queue.cc
+++ b/media/base/android/access_unit_queue.cc
@@ -25,7 +25,7 @@ AccessUnitQueue::AccessUnitQueue()
}
AccessUnitQueue::~AccessUnitQueue() {
- STLDeleteContainerPointers(chunks_.begin(), chunks_.end());
+ base::STLDeleteContainerPointers(chunks_.begin(), chunks_.end());
}
void AccessUnitQueue::PushBack(const DemuxerData& data) {
@@ -108,7 +108,7 @@ void AccessUnitQueue::Advance() {
if (num_consumed_chunks > history_chunks_amount_) {
DataChunkQueue::iterator first_to_keep = chunks_.begin();
std::advance(first_to_keep, num_consumed_chunks - history_chunks_amount_);
- STLDeleteContainerPointers(chunks_.begin(), first_to_keep);
+ base::STLDeleteContainerPointers(chunks_.begin(), first_to_keep);
chunks_.erase(chunks_.begin(), first_to_keep);
}
}
@@ -117,7 +117,7 @@ void AccessUnitQueue::Flush() {
// Media thread
base::AutoLock lock(lock_);
- STLDeleteContainerPointers(chunks_.begin(), chunks_.end());
+ base::STLDeleteContainerPointers(chunks_.begin(), chunks_.end());
chunks_.clear();
current_chunk_ = chunks_.end();
« no previous file with comments | « no previous file | media/base/text_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698