DescriptionPaymentRequest: The currencySystem should be non-nullable.
The currencySystem attribute is defined in PaymentCurrencyAmount interface
to indicate the currency system that the currency identifier belongs to.
The spec[1] defines it as non-nullable, and our current IDL implementation
follows it well. However, its mapping value for mojom is nullable. It looks
strange. As a result, in browser side, we are unnecessarily checking whether
the value is null or not everytime.
Therefore, This CL is fixing the value as non-nullable and remove unncessary
checks. This is initiated from Tommy's comment(tommyt@opera.com) on the code
review[2].
[1] https://w3c.github.io/browser-payment-api/#paymentcurrencyamount
[2] https://codereview.chromium.org/2646313002/#msg5
BUG=none
Review-Url: https://codereview.chromium.org/2649143003
Cr-Commit-Position: refs/heads/master@{#445725}
Committed: https://chromium.googlesource.com/chromium/src/+/427645407dc20735347e185b9875b04a26c92f14
Patch Set 1 #Patch Set 2 : fix bot error #Patch Set 3 : PaymentRequest: The currencySystem should be non-nullable. #Patch Set 4 : PaymentRequest: The currencySystem should be non-nullable. #Messages
Total messages: 35 (23 generated)
|