PaymentHandler: Replace 'enabledMethods' array with 'method' string
The related spec change: https://github.com/w3c/payment-handler/pull/276 Payment Handler feature is behind a flag: chrome://flags/#service-worker-payment-apps FYI, the original field type was `repeated string`, and the changed field type is `optional string`. So, if `enabledMethods` data is stored in a previous version, when reading the `method` field in a new version, the protobuf will read the first element of `enabledMethods`. Therefore, DB migration is not required. Bug: 828894 Change-Id: Ic5775768eaff9584517956f2984473e8b6a0a411 Reviewed-on: https://chromium-review.googlesource.com/986121Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:
Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Jinho Bang <jinho.bang@samsung.com> Cr-Commit-Position: refs/heads/master@{#548750}
Showing
Please register or sign in to comment