[Payments] Simplify JourneyLogger.recordTransactionAmount()
Behavioural changes: * Before the CL, JourneyLogger.recordTransactionAmount() was triggered only when Event.SHOWN or Event.SKIPPED_SHOW is recorded. This was different from the desktop's behaviour(read crbug.com/1149936#c5 for more context). * After the CL, the method is triggered whenever all of the following conditions are met: (1) show() has been called, (2) apps have been queried, (3) payment details has stabilized. Regardless of Event.SHOWN and Event.SKIPPED_SHOW, which are recorded when UI is shown or skipped. The new behaviour is consistent with the desktop one. Changes: * Moved the calling of recordTransactionAmount() into the hook onShowCalledAndAppsQueriedAndDetailsFinalized(). Bug: 1149936 Change-Id: I4fc72e2289ab95303165622e395f9d499ebf338d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2581218 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Sahel Sharify <sahel@chromium.org> Cr-Commit-Position: refs/heads/master@{#835672}
Showing
Please register or sign in to comment