| Index: components/payments/core/payment_request_data_util.h
|
| diff --git a/components/payments/core/payment_request_data_util.h b/components/payments/core/payment_request_data_util.h
|
| index f5fdb63eb3f7f95b12c7047a23d91c363d0e8c31..f3120c8c3d6149db344cc8572c92ff451ca68112 100644
|
| --- a/components/payments/core/payment_request_data_util.h
|
| +++ b/components/payments/core/payment_request_data_util.h
|
| @@ -53,6 +53,20 @@ bool ParseBasicCardSupportedNetworks(
|
| std::vector<std::string>* out_supported_networks,
|
| std::set<std::string>* out_basic_card_supported_networks);
|
|
|
| +// Formats the given number |phone_number| to
|
| +// i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::INTERNATIONAL format
|
| +// by using i18n::phonenumbers::PhoneNumberUtil::Format.
|
| +std::string FormatPhoneForDisplay(const std::string& phone_number,
|
| + const std::string& country_code);
|
| +
|
| +// Formats the given number |phone_number| to
|
| +// i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::E164 format by using
|
| +// i18n::phonenumbers::PhoneNumberUtil::Format, as defined in the Payment
|
| +// Request spec
|
| +// (https://w3c.github.io/browser-payment-api/#paymentrequest-updated-algorithm)
|
| +std::string FormatPhoneForResponse(const std::string& phone_number,
|
| + const std::string& country_code);
|
| +
|
| } // namespace data_util
|
| } // namespace payments
|
|
|
|
|