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

Unified Diff: ios/chrome/browser/ui/payments/address_edit_coordinator.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
Index: ios/chrome/browser/ui/payments/address_edit_coordinator.mm
diff --git a/ios/chrome/browser/ui/payments/address_edit_coordinator.mm b/ios/chrome/browser/ui/payments/address_edit_coordinator.mm
index 77865e8e989c207d1f04a46a36e1f5f944a6808f..4e48fa85abefe458f34a25a9d46ce0a540c93ea0 100644
--- a/ios/chrome/browser/ui/payments/address_edit_coordinator.mm
+++ b/ios/chrome/browser/ui/payments/address_edit_coordinator.mm
@@ -15,7 +15,6 @@
#include "components/autofill/core/common/autofill_constants.h"
#include "components/payments/core/payments_profile_comparator.h"
#include "components/strings/grit/components_strings.h"
-#include "ios/chrome/browser/application_context.h"
#include "ios/chrome/browser/payments/payment_request.h"
#import "ios/chrome/browser/ui/autofill/autofill_ui_type_util.h"
#import "ios/chrome/browser/ui/payments/address_edit_mediator.h"
@@ -151,7 +150,7 @@ using ::AutofillTypeFromAutofillUIType;
address.SetInfo(autofill::AutofillType(
AutofillTypeFromAutofillUIType(field.autofillUIType)),
base::SysNSStringToUTF16(field.value),
- GetApplicationContext()->GetApplicationLocale());
+ self.paymentRequest->GetApplicationLocale());
}
if (!self.address) {

Powered by Google App Engine
This is Rietveld 408576698