| Index: components/payments/core/payment_method_data.cc
|
| diff --git a/components/payments/core/payment_method_data.cc b/components/payments/core/payment_method_data.cc
|
| index 6bd753a3e1807dc4c74fcdcde91e986caf902f32..61a67a95b983eaeba178225c528ea0ccebc9c515 100644
|
| --- a/components/payments/core/payment_method_data.cc
|
| +++ b/components/payments/core/payment_method_data.cc
|
| @@ -6,7 +6,6 @@
|
|
|
| #include "base/json/json_writer.h"
|
| #include "base/memory/ptr_util.h"
|
| -#include "base/strings/utf_string_conversions.h"
|
| #include "base/values.h"
|
|
|
| namespace payments {
|
| @@ -50,7 +49,7 @@ bool PaymentMethodData::FromDictionaryValue(
|
| return false;
|
| }
|
| for (size_t i = 0; i < supported_methods_list->GetSize(); ++i) {
|
| - base::string16 supported_method;
|
| + std::string supported_method;
|
| if (!supported_methods_list->GetString(i, &supported_method)) {
|
| return false;
|
| }
|
| @@ -63,11 +62,11 @@ bool PaymentMethodData::FromDictionaryValue(
|
| if (value.GetDictionary(kMethodDataData, &data_dict)) {
|
| std::string json_data;
|
| base::JSONWriter::Write(*data_dict, &json_data);
|
| - this->data = base::UTF8ToUTF16(json_data);
|
| + this->data = json_data;
|
| const base::ListValue* supported_networks_list = nullptr;
|
| if (data_dict->GetList(kSupportedNetworks, &supported_networks_list)) {
|
| for (size_t i = 0; i < supported_networks_list->GetSize(); ++i) {
|
| - base::string16 supported_network;
|
| + std::string supported_network;
|
| if (!supported_networks_list->GetString(i, &supported_network)) {
|
| return false;
|
| }
|
| @@ -77,7 +76,7 @@ bool PaymentMethodData::FromDictionaryValue(
|
| const base::ListValue* supported_types_list = nullptr;
|
| if (data_dict->GetList(kSupportedTypes, &supported_types_list)) {
|
| for (size_t i = 0; i < supported_types_list->GetSize(); ++i) {
|
| - base::string16 supported_type;
|
| + std::string supported_type;
|
| if (!supported_types_list->GetString(i, &supported_type)) {
|
| return false;
|
| }
|
|
|