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

Unified Diff: components/payments/content/payment_request.h

Issue 2730123002: [Web Payments] Add inline items to the Order Summary section. (Closed)
Patch Set: Rebase Created 3 years, 10 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_request.h
diff --git a/components/payments/content/payment_request.h b/components/payments/content/payment_request.h
index 18d3f94229b3c6e85ff5fbc602fb4e6f58a1725c..6f918e8dc6de461928c27036dbfa28c674b57891 100644
--- a/components/payments/content/payment_request.h
+++ b/components/payments/content/payment_request.h
@@ -86,6 +86,10 @@ class PaymentRequest : payments::mojom::PaymentRequest {
const std::string& currency_system,
const std::string& locale_name);
+ // Uses CurrencyFormatter to format |amount| with the currency symbol for this
+ // request's currency.
+ base::string16 GetFormattedCurrencyAmount(const std::string& amount);
+
// Returns the appropriate Autofill Profiles for this user. On the first
// invocation of either getter, the profiles are fetched from the
// PersonalDataManager; on subsequent invocations, a cached version is

Powered by Google App Engine
This is Rietveld 408576698