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

Unified Diff: third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp

Issue 2657443005: Migrate WTF::HashSet::add() to ::insert() [part 1 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/core/frame/csp/MediaListDirective.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp b/third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp
index 274dd2c40409c27ad0cdd7d737d9d2f974060649..908771297c1573076d3bf778acfe049ce1028249 100644
--- a/third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/MediaListDirective.cpp
@@ -77,7 +77,7 @@ void MediaListDirective::parse(const UChar* begin, const UChar* end) {
policy()->reportInvalidPluginTypes(String(begin, position - begin));
continue;
}
- m_pluginTypes.add(String(begin, position - begin));
+ m_pluginTypes.insert(String(begin, position - begin));
ASSERT(position == end || isASCIISpace(*position));
}
@@ -111,7 +111,7 @@ HashSet<String> MediaListDirective::getIntersect(
HashSet<String> normalized;
for (const auto& type : m_pluginTypes) {
if (other.contains(type))
- normalized.add(type);
+ normalized.insert(type);
}
return normalized;

Powered by Google App Engine
This is Rietveld 408576698