[PRImpl] Move MethodData into PaymentRequestSpec
* Move PaymentRequestImpl's mMethodData into PaymentRequestSpec. * mSpec's parsed values are still be available after mSpec is closed. This change is motivated by the fact that AutofillPaymentAppFactory accesses PRImpl#getMethodData() after mSpec is closed, causing NullPointerException[1]. In particular, this change includes: - mSpec is no longer set null when destroyed. - the callers check mSpec.isDestroyed() (added method) before using its updateWith(), retry(), recomputeSpecForDetails(), selectedShippingOptionError(). Other methods are accessible even after mSpec is destroyed. [1] https://ci.chromium.org/p/chromium/builders/try/android-marshmallow-arm64-rel/648624? Bug: 1102522 Change-Id: I018d35f50bd2ab42aa4d3b0c80e5245ad86394fc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2390867 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Sahel Sharify <sahel@chromium.org> Cr-Commit-Position: refs/heads/master@{#805322}
Showing
Please register or sign in to comment