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

Unified Diff: third_party/WebKit/Source/core/fetch/MemoryCache.cpp

Issue 2585283002: Migrate WTF::Vector::append() to ::push_back() [part 6 of N] (Closed)
Patch Set: Created 4 years 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
Index: third_party/WebKit/Source/core/fetch/MemoryCache.cpp
diff --git a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
index d8af6d6b70d50b086ce426fd84a0ab9bc82915f3..64da484782606e9314456d86d2091321a8ead9e8 100644
--- a/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
+++ b/third_party/WebKit/Source/core/fetch/MemoryCache.cpp
@@ -232,7 +232,7 @@ HeapVector<Member<Resource>> MemoryCache::resourcesForURL(
if (MemoryCacheEntry* entry = resourceMapIter.value->get(url)) {
Resource* resource = entry->resource();
DCHECK(resource);
- results.append(resource);
+ results.push_back(resource);
}
}
return results;
@@ -342,7 +342,7 @@ void MemoryCache::evictResources(EvictResourcePolicy policy) {
// Store unused preloads aside, so they could be added back later.
// That is in order to avoid the performance impact of iterating over
// the same resource multiple times.
- unusedPreloads.append(resourceIter->value.get());
+ unusedPreloads.push_back(resourceIter->value.get());
}
removeInternal(resources, resourceIter);
}
« no previous file with comments | « third_party/WebKit/Source/core/fetch/CrossOriginAccessControl.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698