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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp

Issue 2574773002: Migrate WTF::Vector::append() to ::push_back() [part 4 of N] (Closed)
Patch Set: rebase 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/dom/DocumentStatisticsCollector.cpp
diff --git a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
index 8044c7f8b83101124fc07e65861fe2f281fd770c..d66c171c645b2f1a94c4279cb684f42691bcc644 100644
--- a/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
+++ b/third_party/WebKit/Source/core/dom/DocumentStatisticsCollector.cpp
@@ -89,14 +89,14 @@ bool isGoodForScoring(const WebDistillabilityFeatures& features,
"share", "shoutbox", "sidebar", "skyscraper", "sponsor", "ad-break",
"agegate", "pagination", "pager", "popup"};
for (auto word : words) {
- unlikelyCandidates.append(word);
+ unlikelyCandidates.push_back(word);
}
}
DEFINE_STATIC_LOCAL(Vector<String>, highlyLikelyCandidates, ());
if (highlyLikelyCandidates.isEmpty()) {
auto words = {"and", "article", "body", "column", "main", "shadow"};
for (auto word : words) {
- highlyLikelyCandidates.append(word);
+ highlyLikelyCandidates.push_back(word);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentStyleSheetCollector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698