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

Unified Diff: ios/chrome/browser/payments/payment_request.mm

Issue 2797833002: [Payments] base::string16 -> std::string in PaymentMethodData (Closed)
Patch Set: addressed comments 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: ios/chrome/browser/payments/payment_request.mm
diff --git a/ios/chrome/browser/payments/payment_request.mm b/ios/chrome/browser/payments/payment_request.mm
index aa3d512c72a444114daa822eac42171f24f16a00..22e71f3c0cc39ad03289c73932efdaf9f9bfd5f7 100644
--- a/ios/chrome/browser/payments/payment_request.mm
+++ b/ios/chrome/browser/payments/payment_request.mm
@@ -4,7 +4,6 @@
#include "ios/chrome/browser/payments/payment_request.h"
-#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/browser/autofill_data_util.h"
#include "components/autofill/core/browser/autofill_profile.h"
@@ -77,12 +76,8 @@ void PaymentRequest::PopulateProfileCache() {
void PaymentRequest::PopulateCreditCardCache() {
for (const auto& method_data : web_payment_request_.method_data) {
- for (const auto& supported_method : method_data.supported_methods) {
- // Reject non-ASCII supported methods.
- if (base::IsStringASCII(supported_method)) {
- supported_card_networks_.push_back(
- base::UTF16ToASCII(supported_method));
- }
+ for (const std::string& supported_method : method_data.supported_methods) {
+ supported_card_networks_.push_back(supported_method);
}
}
« no previous file with comments | « components/payments/core/payment_method_data_unittest.cc ('k') | ios/chrome/browser/payments/payment_request_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698