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 9759e63f2eccaaa13af83dcfd05b94e0cb542119..d6e15e450d0e0545943e0cf353cd6b3db33978fb 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
@@ -40,6 +40,7 @@ |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/UUID.h" |
#include "platform/bindings/ScriptState.h" |
+#include "platform/feature_policy/FeaturePolicy.h" |
#include "platform/mojo/MojoHelper.h" |
#include "platform/wtf/HashSet.h" |
#include "public/platform/InterfaceProvider.h" |
@@ -599,7 +600,7 @@ bool AllowedToUsePaymentRequest(const Frame* frame) { |
if (!frame) |
return false; |
- if (!RuntimeEnabledFeatures::featurePolicyEnabled()) { |
+ if (!IsSupportedInFeaturePolicy(WebFeaturePolicyFeature::kPayment)) { |
// 2. If |document|'s browsing context is a top-level browsing context, then |
// return true. |
if (frame->IsMainFrame()) |