Change shopping offer price acquisition to a fetcher model
In the code as is, there exists the possibility mModel will change before the callback returns which would mean the price is set on an incorrect or out of bounds index. In addition, it better from a resource utilization perspective to only acquire the price when it is actually needed. Bug: 1139031 Change-Id: I2f46851745b70bf6ddfceb33a09c5ef5700b2880 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2476811Reviewed-by:Yusuf Ozuysal <yusufo@chromium.org> Reviewed-by:
Mei Liang <meiliang@chromium.org> Reviewed-by:
Wei-Yin Chen (陳威尹) <wychen@chromium.org> Commit-Queue: David Maunder <davidjm@chromium.org> Cr-Commit-Position: refs/heads/master@{#823234}
Showing
Please register or sign in to comment