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

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

Issue 2971003002: [Payment Request] Queries application locale from payments::PaymentRequest (Closed)
Patch Set: rebase Created 3 years, 5 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
« no previous file with comments | « no previous file | ios/chrome/browser/payments/payment_request_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c4be009513a744130a7b01b85b5f9ae0be3a81fc..900fe519a8c9cd4ec8119bbd5f045aca8f3e1c99 100644
--- a/ios/chrome/browser/payments/payment_request.mm
+++ b/ios/chrome/browser/payments/payment_request.mm
@@ -73,8 +73,7 @@ PaymentRequest::PaymentRequest(
selected_contact_profile_(nullptr),
selected_payment_method_(nullptr),
selected_shipping_option_(nullptr),
- profile_comparator_(GetApplicationContext()->GetApplicationLocale(),
- *this),
+ profile_comparator_(GetApplicationLocale(), *this),
journey_logger_(IsIncognito(), GetLastCommittedURL(), GetUkmRecorder()) {
PopulateAvailableShippingOptions();
PopulateProfileCache();
@@ -153,8 +152,7 @@ autofill::RegionDataLoader* PaymentRequest::GetRegionDataLoader() {
GetAddressInputSource(
personal_data_manager_->GetURLRequestContextGetter())
.release(),
- GetAddressInputStorage().release(),
- GetApplicationContext()->GetApplicationLocale());
+ GetAddressInputStorage().release(), GetApplicationLocale());
}
ukm::UkmRecorder* PaymentRequest::GetUkmRecorder() {
@@ -206,7 +204,7 @@ CurrencyFormatter* PaymentRequest::GetOrCreateCurrencyFormatter() {
base::UTF16ToASCII(web_payment_request_.details.total.amount.currency),
base::UTF16ToASCII(
web_payment_request_.details.total.amount.currency_system),
- GetApplicationContext()->GetApplicationLocale()));
+ GetApplicationLocale()));
}
return currency_formatter_.get();
}
@@ -290,8 +288,7 @@ AutofillPaymentInstrument* PaymentRequest::AddAutofillPaymentInstrument(
// effectively owned by this object.
payment_method_cache_.push_back(base::MakeUnique<AutofillPaymentInstrument>(
method_name, credit_card, matches_merchant_card_type_exactly,
- billing_profiles(), GetApplicationContext()->GetApplicationLocale(),
- this));
+ billing_profiles(), GetApplicationLocale(), this));
PopulateAvailablePaymentMethods();
« no previous file with comments | « no previous file | ios/chrome/browser/payments/payment_request_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698