Chromium Code Reviews| Index: third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
| diff --git a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
| index a406722453f5f1952f3440084a4c87702f846527..3aa7273396b7c07fe7f52bc39f04a8d8e7a950a3 100644 |
| --- a/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
| +++ b/third_party/WebKit/Source/modules/payments/PaymentRequest.cpp |
| @@ -56,7 +56,6 @@ struct TypeConverter<PaymentItemPtr, blink::PaymentItem> { |
| static PaymentItemPtr Convert(const blink::PaymentItem& input) |
| { |
| PaymentItemPtr output = PaymentItem::New(); |
| - output->id = input.id(); |
| output->label = input.label(); |
| output->amount = CurrencyAmount::From(input.amount()); |
| return output; |
| @@ -110,11 +109,6 @@ void validateShippingOptionsOrPaymentItems(HeapVector<T> items, ExceptionState& |
| { |
| String errorMessage; |
| for (const auto& item : items) { |
| - if (!item.hasId() || item.id().isEmpty()) { |
|
please use gerrit instead
2016/05/19 17:48:20
Move this clause into validateShippingOptionIds().
zino
2016/05/19 19:11:40
Done.
|
| - exceptionState.throwTypeError("Item id required"); |
| - return; |
| - } |
| - |
| if (!item.hasLabel() || item.label().isEmpty()) { |
| exceptionState.throwTypeError("Item label required"); |
| return; |