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

Unified Diff: third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.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/ContentSecurityPolicy.cpp
diff --git a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
index 9b43214a65db1bda6787586dd63fa51c2372a9ce..987e599999e96857ca7cbb9f2aa1a1ff7f6d99b1 100644
--- a/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
+++ b/third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.cpp
@@ -1494,7 +1494,7 @@ bool ContentSecurityPolicy::shouldSendViolationReport(
}
void ContentSecurityPolicy::didSendViolationReport(const String& report) {
- m_violationReportsSent.add(report.impl()->hash());
+ m_violationReportsSent.insert(report.impl()->hash());
}
const char* ContentSecurityPolicy::getDirectiveName(const DirectiveType& type) {

Powered by Google App Engine
This is Rietveld 408576698