[Payments] Clean up for mJourneyLogger.recordTransactionAmount
Context: Now that mJourneyLogger.recordTransactionAmount() no longer needs to be recorded with Event.SHOWN, the code structures that supported that can be removed, which includes: * mDidRecordShowEvent: used to guarantee that Event.SHOWN was recorded only once so recordTransactionAmount() was invoked once. Since JourneyLogger is designed in a way that Event.SHOWN can be recorded multiple times, this structure actually applied for recordTransactionAmount() only. * enableAndUpdatePaymentRequestUIWithPaymentInfo()'s return: this was introduced to call recordTransactionAmount() after providePaymentInformationToPaymentRequestUI(). Since all providePaymentInformationToPaymentRequestUI() happened with recordShowEventAndTransactionAmount(), this CL combines the two methods. Changes: * Removed mDidRecordShowEvent * Inlined recordShowEventAndTransactionAmount() and merge it to providePaymentInformationToPaymentRequestUI(). * Makes enableAndUpdatePaymentRequestUIWithPaymentInfo return void Bug: 1149936 Change-Id: I5097d92e6d4eeda0e582a19a9312a8d54ed68eab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2580589 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#835680}
Showing
Please register or sign in to comment