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

Unified Diff: chrome/browser/ui/views/payments/profile_list_view_controller.cc

Issue 2741343011: [Payments] Move PersonalDataManager and locale to PaymentRequestState (Closed)
Patch Set: Initial Created 3 years, 9 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: chrome/browser/ui/views/payments/profile_list_view_controller.cc
diff --git a/chrome/browser/ui/views/payments/profile_list_view_controller.cc b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
index 931635c5afe2003a38a6303721ffd2ffc1796f0c..ba95e8732a7dab5a903ff500b848761d05333813 100644
--- a/chrome/browser/ui/views/payments/profile_list_view_controller.cc
+++ b/chrome/browser/ui/views/payments/profile_list_view_controller.cc
@@ -94,7 +94,8 @@ class ShippingProfileViewController : public ProfileListViewController {
std::unique_ptr<views::View> GetLabel(
autofill::AutofillProfile* profile) override {
return GetShippingAddressLabel(AddressStyleType::DETAILED,
- request()->GetApplicationLocale(), *profile);
+ request()->state()->GetApplicationLocale(),
+ *profile);
}
std::vector<autofill::AutofillProfile*> GetProfiles() override {
@@ -121,11 +122,11 @@ class ContactProfileViewController : public ProfileListViewController {
// ProfileListViewController:
std::unique_ptr<views::View> GetLabel(
autofill::AutofillProfile* profile) override {
- return GetContactInfoLabel(AddressStyleType::DETAILED,
- request()->GetApplicationLocale(), *profile,
- request()->spec()->request_payer_name(),
- request()->spec()->request_payer_phone(),
- request()->spec()->request_payer_email());
+ return GetContactInfoLabel(
+ AddressStyleType::DETAILED, request()->state()->GetApplicationLocale(),
+ *profile, request()->spec()->request_payer_name(),
+ request()->spec()->request_payer_phone(),
+ request()->spec()->request_payer_email());
}
std::vector<autofill::AutofillProfile*> GetProfiles() override {

Powered by Google App Engine
This is Rietveld 408576698