[PRImpl] Move updateAppModifiedTotals and simplify mModifiers
Changes: * Move updateAppModifiedTotals into PaymentUIsManager * Since the method include mModifiers, refactor getModifiers() to make it less error-prone. The refactoring includes renaming it getUnmodifiableModifiers() to make it explicit that the modifiers is unmodifiable (although the name is funny) and implicates that it's not just returning mModifiers itself. * Since mModifiers now can be null and be empty, which is redundant and thus error-prone, this CL make it not nullable. Bug: 1102522 Change-Id: I26229494eb39e3f8c4629f711607c7d199fe3b91 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2316321 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#792279}
Showing
Please register or sign in to comment