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

Unified Diff: components/payments/android/currency_formatter_android.cc

Issue 2649143003: PaymentRequest: The currencySystem should be non-nullable. (Closed)
Patch Set: PaymentRequest: The currencySystem should be non-nullable. Created 3 years, 11 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/android/currency_formatter_android.cc
diff --git a/components/payments/android/currency_formatter_android.cc b/components/payments/android/currency_formatter_android.cc
index 00143f3214e59766fa6e2880b76ff4387f11111e..e1ea023e21036e4575386068497b790a0e7b57b2 100644
--- a/components/payments/android/currency_formatter_android.cc
+++ b/components/payments/android/currency_formatter_android.cc
@@ -25,10 +25,7 @@ CurrencyFormatterAndroid::CurrencyFormatterAndroid(
ConvertJavaStringToUTF8(env, currency_system);
currency_formatter_.reset(new CurrencyFormatter(
- ConvertJavaStringToUTF8(env, currency_code),
- currency_system_str.empty()
- ? base::Optional<std::string>()
- : base::Optional<std::string>(currency_system_str),
+ ConvertJavaStringToUTF8(env, currency_code), currency_system_str,
ConvertJavaStringToUTF8(env, locale_name)));
}

Powered by Google App Engine
This is Rietveld 408576698