Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: components/payments/content/payment_details_validation.cc

Issue 2852363002: [payment] display mixed currency in item list and shipping optiopns. When there is more than one cu… (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/payments/content/payment_details_validation.cc
diff --git a/components/payments/content/payment_details_validation.cc b/components/payments/content/payment_details_validation.cc
index c894459ba1f3aca5aaf487a05fd1e3712ce00f0c..875825841ac169d84b7e84627b75d0769d5555b0 100644
--- a/components/payments/content/payment_details_validation.cc
+++ b/components/payments/content/payment_details_validation.cc
@@ -40,11 +40,6 @@ bool validateShippingOptionOrPaymentItem(
return false;
}
- if (total && item->amount->currency != total->amount->currency) {
gogerald1 2017/05/02 18:57:33 This is cross platform code, might '#if !defined(O
wuandy 2017/05/05 15:04:37 Done.
- *error_message = "Currencies must all be equal";
- return false;
- }
-
if (item->amount->currency_system.empty()) {
*error_message = "Currency system can't be empty";
return false;

Powered by Google App Engine
This is Rietveld 408576698