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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp

Issue 2730303002: Move Feature Policy test to Frame (Closed)
Patch Set: Fix rebase 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
Index: third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
index 7ad668732cf91e76f9c44d75ad236215b3421eb0..3425fe336ab0f0676d3dd518b427e3cc9a2da486 100644
--- a/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/ConditionalFeaturesForCore.cpp
@@ -81,19 +81,6 @@ void installConditionalFeaturesOnWindow(const ScriptState* scriptState) {
v8::Local<v8::Function>());
}
-bool isFeatureEnabledInFrame(WebFeaturePolicyFeature feature,
- const Frame* frame) {
- DCHECK(frame);
- WebFeaturePolicy* featurePolicy =
- frame->securityContext()->getFeaturePolicy();
- // The policy should always be initialized before checking it to ensure we
- // properly inherit the parent policy.
- DCHECK(featurePolicy);
-
- // Otherwise, check policy.
- return featurePolicy->IsFeatureEnabled(feature);
-}
-
void registerInstallConditionalFeaturesForCore() {
s_oldInstallConditionalFeaturesFunction =
setInstallConditionalFeaturesFunction(&installConditionalFeaturesCore);

Powered by Google App Engine
This is Rietveld 408576698