Index: third_party/WebKit/Source/modules/payments/PaymentRequest.idl |
diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl |
index 83e985a9014a29ed99d206544f5008611e20b307..2a920ede557fe187c3583bf68b1732de30c61456 100644 |
--- a/third_party/WebKit/Source/modules/payments/PaymentRequest.idl |
+++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.idl |
@@ -15,6 +15,7 @@ |
] interface PaymentRequest : EventTarget { |
[CallWith=ScriptState] Promise<PaymentResponse> show(); |
[CallWith=ScriptState] Promise<void> abort(); |
+ [CallWith=ScriptState, RuntimeEnabled=CanMakePayment] Promise<boolean> canMakePayment(); |
[ImplementedAs=getShippingAddress] readonly attribute PaymentAddress? shippingAddress; |
readonly attribute DOMString? shippingOption; |
@@ -22,7 +23,4 @@ |
attribute EventHandler onshippingaddresschange; |
attribute EventHandler onshippingoptionchange; |
- |
- // https://github.com/w3c/browser-payment-api/issues/310 |
- [CallWith=ScriptState, RuntimeEnabled=CanMakePayment] Promise<boolean> canMakePayment(); |
}; |