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 53dea7a1dd1f7c63b960d7cc560414349432d1e5..11e5be22866fa957a138ebbff71dd829dd3deee4 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -598,8 +598,7 @@ bool allowedToUsePaymentRequest(const Frame* frame) { |
// 1. If FP, by itself, enables paymentrequest in this document, then |
// paymentrequest is allowed. |
- if (frame->securityContext()->getFeaturePolicy()->isFeatureEnabled( |
- kPaymentFeature)) { |
+ if (isFeatureEnabledInFrame(WebFeaturePolicyFeature::Payment, frame)) { |
return true; |
} |