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

Unified Diff: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp

Issue 2776203002: Migrate WTF::Vector::remove() to ::erase() (Closed)
Patch Set: rebase, repatch VectorTest Created 3 years, 9 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
Index: third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
diff --git a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
index 3345d35d964984351efbede3f52e2364f252a380..0083b340361a8b6edb48671905ce3564b06908ba 100644
--- a/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
+++ b/third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp
@@ -195,11 +195,11 @@ class ResponsesAccumulator : public RefCounted<ResponsesAccumulator> {
return WTF::codePointCompareLessThan(a.request, b.request);
});
if (m_params.skipCount > 0)
- m_responses.remove(0, m_params.skipCount);
+ m_responses.erase(0, m_params.skipCount);
bool hasMore = false;
if (static_cast<size_t>(m_params.pageSize) < m_responses.size()) {
- m_responses.remove(m_params.pageSize,
- m_responses.size() - m_params.pageSize);
+ m_responses.erase(m_params.pageSize,
+ m_responses.size() - m_params.pageSize);
hasMore = true;
}
std::unique_ptr<Array<DataEntry>> array = Array<DataEntry>::create();

Powered by Google App Engine
This is Rietveld 408576698