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

Unified Diff: third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp

Issue 2709033003: Migrate WTF::HashMap::get() to ::at() (Closed)
Patch Set: rebase Created 3 years, 10 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/platform/feature_policy/FeaturePolicy.cpp
diff --git a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
index 2c1524b974337f6e1c9fa45fb8be4944904bdb6f..86b77badc9da2a4f5d97468a699d1dd2f5ae1758 100644
--- a/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
+++ b/third_party/WebKit/Source/platform/feature_policy/FeaturePolicy.cpp
@@ -291,11 +291,11 @@ bool FeaturePolicy::isFeatureEnabledForOrigin(
const FeaturePolicy::Feature& feature,
const SecurityOrigin& origin) const {
DCHECK(m_inheritedFeatures.contains(&feature));
- if (!m_inheritedFeatures.get(&feature)) {
+ if (!m_inheritedFeatures.at(&feature)) {
return false;
}
if (m_headerWhitelists.contains(&feature)) {
- return m_headerWhitelists.get(&feature)->contains(origin);
+ return m_headerWhitelists.at(&feature)->contains(origin);
}
if (feature.defaultPolicy == FeaturePolicy::FeatureDefault::EnableForAll) {
return true;
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobRegistry.cpp ('k') | third_party/WebKit/Source/platform/fonts/GlyphMetricsMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698