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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp

Issue 2656533004: Remove unused blink::FeaturePolicy class. (Closed)
Patch Set: Rebase before commit Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp
index 1d31463110f5fbb59f4afb78eb3adae8dc92c142..1a1f2fa9cb07528e8cf8ee4e845b90181f5ec6da 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElementAllow.cpp
@@ -32,8 +32,7 @@ HTMLIFrameElementAllow::parseAllowedFeatureNames(
// Collects a list of valid feature names.
for (size_t i = 0; i < tokens.size(); ++i) {
- WebFeaturePolicyFeature feature =
- FeaturePolicy::getWebFeaturePolicyFeature(tokens[i]);
+ WebFeaturePolicyFeature feature = getWebFeaturePolicyFeature(tokens[i]);
if (feature == WebFeaturePolicyFeature::NotFound) {
tokenErrors.append(tokenErrors.isEmpty() ? "'" : ", '");
tokenErrors.append(tokens[i]);
@@ -60,7 +59,7 @@ HTMLIFrameElementAllow::parseAllowedFeatureNames(
bool HTMLIFrameElementAllow::validateTokenValue(const AtomicString& tokenValue,
ExceptionState&) const {
- return FeaturePolicy::getWebFeaturePolicyFeature(tokenValue.getString()) !=
+ return getWebFeaturePolicyFeature(tokenValue.getString()) !=
WebFeaturePolicyFeature::NotFound;
}
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698