Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
index c0de6d55b8f18b0621e3bc6e8d67a6b2f2d3889e..00c5752b282ec758ab79a473d34ea40369fcee09 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -6,7 +6,6 @@ |
#include <stddef.h> |
#include <utility> |
-#include "bindings/core/v8/ConditionalFeaturesForCore.h" |
#include "bindings/core/v8/ExceptionState.h" |
#include "bindings/core/v8/ScriptPromiseResolver.h" |
#include "bindings/core/v8/ScriptState.h" |
@@ -598,7 +597,7 @@ bool allowedToUsePaymentRequest(const Frame* frame) { |
// 1. If FP, by itself, enables paymentrequest in this document, then |
// paymentrequest is allowed. |
- if (isFeatureEnabledInFrame(WebFeaturePolicyFeature::Payment, frame)) { |
+ if (frame->isFeatureEnabled(WebFeaturePolicyFeature::Payment)) { |
return true; |
} |