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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.h

Issue 212873003: Store the language code for the address in autofill profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Single line Created 6 years, 8 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/autofill/autofill_dialog_controller_impl.h
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
index 2585289b82a3ad3fef580158ce52ec604488f99b..03110f42d271d192ef63fa8226030720f03d256b 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.h
@@ -479,6 +479,15 @@ class AutofillDialogControllerImpl
// Like RequestedFieldsForSection, but returns a pointer.
DetailInputs* MutableRequestedFieldsForSection(DialogSection section);
+ // Returns a pointer to the language code that should be used for formatting
+ // the address in |section| for display. Returns NULL for a non-address
+ // |section|.
+ std::string* MutableAddressLanguageCodeForSection(DialogSection section);
+
+ // Returns the language code that should be used for formatting the address in
+ // |section|. Returns an empty string for a non-address |section|.
+ std::string AddressLanguageCodeForSection(DialogSection section);
+
// Returns just the |type| attributes of RequestedFieldsForSection(section).
std::vector<ServerFieldType> RequestedTypesForSection(DialogSection section)
const;
@@ -696,6 +705,10 @@ class AutofillDialogControllerImpl
DetailInputs requested_cc_billing_fields_;
DetailInputs requested_shipping_fields_;
+ // The BCP 47 language codes used for formatting the addresses for display.
+ std::string billing_address_language_code_;
+ std::string shipping_address_language_code_;
+
// Models for the credit card expiration inputs.
MonthComboboxModel cc_exp_month_combobox_model_;
YearComboboxModel cc_exp_year_combobox_model_;

Powered by Google App Engine
This is Rietveld 408576698