[WebLayer] Move disconnectIfNoPaymentMethodsSupported
Motivation: This CL lays the preparatory work to create onShowCalledAndAppQueried() which will encapsulate the following methods: - disconnectIfNoPaymentMethodsSupported - showAppSelector - triggerPaymentAppUiSkipIfApplicable Behavioural changes: Note that disconnectIfNoPaymentMethodsSupported() depends on mHasEnrolledInstrument, so this moving will add prefsCanMakePayment to the disconnection conditions. The new behaviour should be a correct one because mHasEnrolledInstrument is finalized only after prefsCanMakePayment. Before the CL, disconnectIfNoPaymentMethodsSupported tests different mHasEnrolledInstrument when it's invoked in different places. Bug: 1153353 Change-Id: I6752d33d5c4d2bbbb6ce237248dc4692584ef1e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2562836 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#832185}
Showing
Please register or sign in to comment