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

Unified Diff: components/autofill/core/browser/autofill_profile.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: Address comments. Created 6 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: components/autofill/core/browser/autofill_profile.h
diff --git a/components/autofill/core/browser/autofill_profile.h b/components/autofill/core/browser/autofill_profile.h
index 7eb979672687fef1a9762c26645188f4ff963f6c..4a079792d857b9dc9edbb426722a7a751908c429 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -80,7 +80,7 @@ class AutofillProfile : public AutofillDataModel {
// culling duplicates. The ordering is based on collation order of the
// textual contents of the fields.
// GUIDs and origins are not compared, only the values of the contents
- // themselves. Full profile comparision, comparison includes multi-valued
+ // themselves. Full profile comparison, comparison includes multi-valued
// fields.
int Compare(const AutofillProfile& profile) const;
@@ -132,6 +132,11 @@ class AutofillProfile : public AutofillDataModel {
size_t minimal_fields_shown,
std::vector<base::string16>* labels);
+ const std::string& language_code() const { return language_code_; }
+ void set_language_code(const std::string& language_code) {
+ language_code_ = language_code;
+ }
+
private:
typedef std::vector<const FormGroup*> FormGroupList;
@@ -185,6 +190,9 @@ class AutofillProfile : public AutofillDataModel {
CompanyInfo company_;
std::vector<PhoneNumber> phone_number_;
Address address_;
+
+ // The BCP 47 language code that can be used to format |address_| for display.
+ std::string language_code_;
};
// So we can compare AutofillProfiles with EXPECT_EQ().

Powered by Google App Engine
This is Rietveld 408576698