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

Unified Diff: blimp/client/app/blimp_discardable_memory_allocator.cc

Issue 2458543002: Remove stl_util's deletion function use from blimp/. (Closed)
Patch Set: unsigned Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/app/blimp_discardable_memory_allocator.cc
diff --git a/blimp/client/app/blimp_discardable_memory_allocator.cc b/blimp/client/app/blimp_discardable_memory_allocator.cc
index 1b06143559dcb4ca3a73a58c9c2634344e8b70e5..d11982206745f40caeb0e4e178e148ba9445e324 100644
--- a/blimp/client/app/blimp_discardable_memory_allocator.cc
+++ b/blimp/client/app/blimp_discardable_memory_allocator.cc
@@ -6,7 +6,6 @@
#include "base/macros.h"
#include "base/memory/discardable_memory.h"
-#include "base/stl_util.h"
#include "base/trace_event/memory_allocator_dump.h"
#include "base/trace_event/memory_dump_manager.h"
#include "base/trace_event/process_memory_dump.h"
@@ -117,7 +116,7 @@ BlimpDiscardableMemoryAllocator::BlimpDiscardableMemoryAllocator(
BlimpDiscardableMemoryAllocator::~BlimpDiscardableMemoryAllocator() {
DCHECK_EQ(0, locked_chunks_);
- base::STLDeleteElements(&live_unlocked_chunks_);
+ DCHECK_EQ(0u, live_unlocked_chunks_.size());
}
std::unique_ptr<base::DiscardableMemory>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698