| 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 0e262109eded96a0be467037d0f77d7f64d48c0d..95a48b3223cf17c088e4c0ed8ad0fcabe7e3d13e 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -482,12 +482,8 @@ bool allowedToUsePaymentRequest(const Frame* frame) {
|
| // is an iframe element with an |allowpaymentrequest| attribute specified, and
|
| // whose node document is allowed to use the feature indicated by
|
| // |allowpaymentrequest|, then return true.
|
| - HTMLFrameOwnerElement* ownerElement = toHTMLFrameOwnerElement(frame->owner());
|
| - if (ownerElement && isHTMLIFrameElement(ownerElement)) {
|
| - HTMLIFrameElement* iframe = toHTMLIFrameElement(ownerElement);
|
| - if (HTMLIFrameElementPayments::from(*iframe).allowPaymentRequest(*iframe))
|
| - return allowedToUsePaymentRequest(frame->tree().parent());
|
| - }
|
| + if (frame->owner() && frame->owner()->allowPaymentRequest())
|
| + return allowedToUsePaymentRequest(frame->tree().parent());
|
|
|
| // 4. Return false.
|
| return false;
|
|
|