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

Unified Diff: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp

Issue 2617783002: Migrate WTF::Vector::append() to ::push_back() [part 12 of N] (Closed)
Patch Set: rebase 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/core/origin_trials/OriginTrialContext.cpp
diff --git a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp
index 4d27565472a3e86f951dfcc061ecfe6167567978..3873ac74866b1958cb3d882afdffcafbd7faa330 100644
--- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp
+++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp
@@ -117,7 +117,7 @@ std::unique_ptr<Vector<String>> OriginTrialContext::parseHeaderValue(
while (pos < len) {
String token = extractTokenOrQuotedString(headerValue, pos);
if (!token.isEmpty())
- tokens->append(token);
+ tokens->push_back(token);
// Make sure tokens are comma-separated.
if (pos < len && headerValue[pos++] != ',')
return nullptr;
@@ -155,7 +155,7 @@ std::unique_ptr<Vector<String>> OriginTrialContext::getTokens(
void OriginTrialContext::addToken(const String& token) {
if (!token.isEmpty()) {
- m_tokens.append(token);
+ m_tokens.push_back(token);
validateToken(token);
}
initializePendingFeatures();
@@ -164,7 +164,7 @@ void OriginTrialContext::addToken(const String& token) {
void OriginTrialContext::addTokens(const Vector<String>& tokens) {
for (const String& token : tokens) {
if (!token.isEmpty()) {
- m_tokens.append(token);
+ m_tokens.push_back(token);
validateToken(token);
}
}

Powered by Google App Engine
This is Rietveld 408576698