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

Unified Diff: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.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/frame/csp/CSPDirectiveList.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
index a262a5edc86865d9159e1f3778b73e098a6e5a37..6b7bbc7b4f277e446097753857aaaea1d56499ee 100644
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp
@@ -999,7 +999,7 @@ void CSPDirectiveList::parseReportURI(const String& name, const String& value) {
if (urlBegin < position) {
String url = String(urlBegin, position - urlBegin);
- m_reportEndpoints.append(url);
+ m_reportEndpoints.push_back(url);
}
}
}
@@ -1219,7 +1219,7 @@ SourceListDirectiveVector CSPDirectiveList::getSourceVector(
if (SourceListDirective* directive = policy->operativeDirective(type)) {
if (directive->isNone())
return SourceListDirectiveVector(1, directive);
- sourceListDirectives.append(directive);
+ sourceListDirectives.push_back(directive);
}
}
@@ -1270,7 +1270,7 @@ bool CSPDirectiveList::subsumes(const CSPDirectiveListVector& other) {
HeapVector<Member<MediaListDirective>> pluginTypesOther;
for (const auto& policy : other) {
if (policy->hasPluginTypes())
- pluginTypesOther.append(policy->m_pluginTypes);
+ pluginTypesOther.push_back(policy->m_pluginTypes);
}
return m_pluginTypes->subsumes(pluginTypesOther);
« no previous file with comments | « third_party/WebKit/Source/core/frame/SmartClip.cpp ('k') | third_party/WebKit/Source/core/frame/csp/CSPDirectiveListTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698