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

Unified Diff: components/autofill/core/browser/webdata/autofill_table.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: Fixups 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: components/autofill/core/browser/webdata/autofill_table.h
diff --git a/components/autofill/core/browser/webdata/autofill_table.h b/components/autofill/core/browser/webdata/autofill_table.h
index 0a72e814528b3de20202a39493c0f1566a60018d..41f9bf922df362217fe96a0bbe071d0d63ef0887 100644
--- a/components/autofill/core/browser/webdata/autofill_table.h
+++ b/components/autofill/core/browser/webdata/autofill_table.h
@@ -69,6 +69,11 @@ struct FormFieldData;
// Added in version 30.
// origin The domain of origin for this profile.
// Added in version 50.
+// language_code The BCP 47 language code used to format the address for
+// display. For example, a JP address with "ja" language
+// code starts with the postal code, but a JP address with
+// "ja-latn" language code starts with the recipient name.
+// Added in version 56.
//
// autofill_profile_names
// This table contains the multi-valued name fields
@@ -278,6 +283,7 @@ class AutofillTable : public WebDatabaseTable {
bool MigrateToVersion51AddOriginColumn();
bool MigrateToVersion54AddI18nFieldsAndRemoveDeprecatedFields();
bool MigrateToVersion55MergeAutofillDatesTable();
+ bool MigrateToVersion56AddProfileLanguageCodeForFormatting();
// Max data length saved in the table;
static const size_t kMaxDataLength;

Powered by Google App Engine
This is Rietveld 408576698