Index: content/child/feature_policy/feature_policy_platform.cc |
diff --git a/content/child/feature_policy/feature_policy_platform.cc b/content/child/feature_policy/feature_policy_platform.cc |
index 5c520f152dc494d0fc5331148116bb9f12b97091..3739aa4dc03b29df7b316a55a866be541355eff4 100644 |
--- a/content/child/feature_policy/feature_policy_platform.cc |
+++ b/content/child/feature_policy/feature_policy_platform.cc |
@@ -12,7 +12,7 @@ ParsedFeaturePolicyHeader FeaturePolicyHeaderFromWeb( |
for (const blink::WebParsedFeaturePolicyDeclaration& web_declaration : |
web_feature_policy_header) { |
ParsedFeaturePolicyDeclaration declaration; |
- declaration.feature_name = web_declaration.featureName.utf8(); |
+ declaration.feature = web_declaration.feature; |
declaration.matches_all_origins = web_declaration.matchesAllOrigins; |
for (const blink::WebSecurityOrigin& web_origin : web_declaration.origins) |
declaration.origins.push_back(web_origin); |
@@ -27,8 +27,7 @@ blink::WebParsedFeaturePolicyHeader FeaturePolicyHeaderToWeb( |
for (const ParsedFeaturePolicyDeclaration& declaration : |
feature_policy_header) { |
blink::WebParsedFeaturePolicyDeclaration web_declaration; |
- web_declaration.featureName = |
- blink::WebString::fromUTF8(declaration.feature_name); |
+ web_declaration.feature = declaration.feature; |
web_declaration.matchesAllOrigins = declaration.matches_all_origins; |
std::vector<blink::WebSecurityOrigin> web_origins; |
for (const url::Origin& origin : declaration.origins) |