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

Unified Diff: content/browser/site_per_process_browsertest.cc

Issue 2648423002: Rename feature policy classes. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_per_process_browsertest.cc
diff --git a/content/browser/site_per_process_browsertest.cc b/content/browser/site_per_process_browsertest.cc
index a5b9209550e6713c59b3c39757579d957340ef17..3223152fe23f4b9bdf8eb467252ada3d4f689d95 100644
--- a/content/browser/site_per_process_browsertest.cc
+++ b/content/browser/site_per_process_browsertest.cc
@@ -662,9 +662,9 @@ class SitePerProcessFeaturePolicyBrowserTest
"FeaturePolicy");
}
- ParsedFeaturePolicy CreateFPHeader(const std::string& feature_name,
- const std::vector<GURL>& origins) {
- ParsedFeaturePolicy result(1);
+ ParsedFeaturePolicyHeader CreateFPHeader(const std::string& feature_name,
+ const std::vector<GURL>& origins) {
+ ParsedFeaturePolicyHeader result(1);
result[0].feature_name = feature_name;
result[0].matches_all_origins = false;
DCHECK(!origins.empty());
@@ -673,17 +673,17 @@ class SitePerProcessFeaturePolicyBrowserTest
return result;
}
- ParsedFeaturePolicy CreateFPHeaderMatchesAll(
+ ParsedFeaturePolicyHeader CreateFPHeaderMatchesAll(
const std::string& feature_name) {
- ParsedFeaturePolicy result(1);
+ ParsedFeaturePolicyHeader result(1);
result[0].feature_name = feature_name;
result[0].matches_all_origins = true;
return result;
}
};
-bool operator==(const FeaturePolicyParsedWhitelist& first,
- const FeaturePolicyParsedWhitelist& second) {
+bool operator==(const ParsedFeaturePolicyDeclaration& first,
+ const ParsedFeaturePolicyDeclaration& second) {
return std::tie(first.feature_name, first.matches_all_origins,
first.origins) == std::tie(second.feature_name,
second.matches_all_origins,
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698