| 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 63e221476b9c5d4619f63e40ddda08f1023310d6..506ec9de7d8df9023f17358904074d8e7de4b744 100644
|
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp
|
| @@ -685,8 +685,8 @@ ScriptPromise PaymentRequest::show(ScriptState* scriptState) {
|
| DOMException::create(InvalidStateError, "Already called show() once"));
|
| }
|
|
|
| - if (!scriptState->contextIsValid() || !scriptState->domWindow() ||
|
| - !scriptState->domWindow()->frame()) {
|
| + if (!scriptState->contextIsValid() || !LocalDOMWindow::from(scriptState) ||
|
| + !LocalDOMWindow::from(scriptState)->frame()) {
|
| return ScriptPromise::rejectWithDOMException(
|
| scriptState, DOMException::create(InvalidStateError,
|
| "Cannot show the payment request"));
|
|
|