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

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..7bc1ff178ca60e7c84a7ad781cd3b9f593f41b71 100644
--- a/components/autofill/core/browser/autofill_profile.h
+++ b/components/autofill/core/browser/autofill_profile.h
@@ -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,7 @@ class AutofillProfile : public AutofillDataModel {
CompanyInfo company_;
std::vector<PhoneNumber> phone_number_;
Address address_;
+ std::string language_code_;
Ilya Sherman 2014/03/29 01:24:42 nit: Docs, please.
please use gerrit instead 2014/04/02 21:54:52 Done.
};
// So we can compare AutofillProfiles with EXPECT_EQ().

Powered by Google App Engine
This is Rietveld 408576698