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

Unified Diff: third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp

Issue 2614663008: Migrate WTF::Vector::append() to ::push_back() [part 13 of N] (Closed)
Patch Set: Created 3 years, 11 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/fetch/FetchHeaderList.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
index f87594ea0788b4b073305d3064392366d00ce2f0..ee964d6fbfba691990a4978eec6ebfddcd65fe62 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FetchHeaderList.cpp
@@ -30,7 +30,7 @@ void FetchHeaderList::append(const String& name, const String& value) {
// "To append a name/value (|name|/|value|) pair to a header list (|list|),
// append a new header whose name is |name|, byte lowercased, and value is
// |value|, to |list|."
- m_headerList.append(WTF::wrapUnique(new Header(name.lower(), value)));
+ m_headerList.push_back(WTF::wrapUnique(new Header(name.lower(), value)));
}
void FetchHeaderList::set(const String& name, const String& value) {
@@ -54,7 +54,7 @@ void FetchHeaderList::set(const String& name, const String& value) {
return;
}
}
- m_headerList.append(WTF::makeUnique<Header>(lowercasedName, value));
+ m_headerList.push_back(WTF::makeUnique<Header>(lowercasedName, value));
}
String FetchHeaderList::extractMIMEType() const {
@@ -108,7 +108,7 @@ void FetchHeaderList::getAll(const String& name, Vector<String>& result) const {
result.clear();
for (size_t i = 0; i < m_headerList.size(); ++i) {
if (m_headerList[i]->first == lowercasedName)
- result.append(m_headerList[i]->second);
+ result.push_back(m_headerList[i]->second);
}
}

Powered by Google App Engine
This is Rietveld 408576698