[Payment Request][Android] Fix strict hasEnrolledInstrument checking.
Without this patch, an incomplete autofill instrument is still offered to the user even when kStrictHasEnrolledAutofillInstrument is enabled. This is due a bug in PaymentRequestImpl.show() that checks the strict criteria before the correct value of |mIsUserGestureShow| is updated. This patch moves |mIsUserGestureShow| update to earlier in the call flow to fix the bug. A browsertest is added to guard against regression. Bug: 1028114 Change-Id: Id0f89e8d8f7180cc3a85c0f30ee8e05a1d849042 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934510 Commit-Queue: Danyao Wang <danyao@chromium.org> Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#718824}
Showing
Please register or sign in to comment