[WebLayer] Refactor disconnectIfNoPaymentMethodsSupported
This CL causes no behavioural changes. This CL lays the preparatory work to create onShowCalledAndAppQueried() which will encapsulate the following methods: - disconnectIfNoPaymentMethodsSupported - showAppSelector - triggerPaymentAppUiSkipIfApplicable Changes: * Moved the "show called" and "app queried" conditions out of disconnectIfNoPaymentMethodsSupported(). * Inlined "hasAvailableApps" because it always equals "mBrowserPaymentRequest.hasAvailableApps()". Bug: 1153353 Change-Id: Ia76c342daf4701b2913b7d84fafa6a210ff4fd22 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2562963Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Cr-Commit-Position: refs/heads/master@{#832159}
Showing
Please register or sign in to comment