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

Unified Diff: components/webdata/common/web_database_migration_unittest.cc

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webdata/common/web_database_migration_unittest.cc
diff --git a/components/webdata/common/web_database_migration_unittest.cc b/components/webdata/common/web_database_migration_unittest.cc
index 927fae63adf372ba2326a7a784e2e89e4be351fe..5e6ef6e9dc3a45c3447866840bf266ee3ed8a8c8 100644
--- a/components/webdata/common/web_database_migration_unittest.cc
+++ b/components/webdata/common/web_database_migration_unittest.cc
@@ -60,7 +60,8 @@ void AutofillProfile31FromStatement(const sql::Statement& s,
profile->SetRawInfo(autofill::ADDRESS_HOME_STATE, s.ColumnString16(10));
profile->SetRawInfo(autofill::ADDRESS_HOME_ZIP, s.ColumnString16(11));
profile->SetInfo(
- autofill::ADDRESS_HOME_COUNTRY, s.ColumnString16(12), "en-US");
+ autofill::AutofillType(autofill::ADDRESS_HOME_COUNTRY),
+ s.ColumnString16(12), "en-US");
profile->SetRawInfo(autofill::PHONE_HOME_WHOLE_NUMBER, s.ColumnString16(13));
*date_modified = s.ColumnInt64(15);
profile->set_guid(s.ColumnString(16));
@@ -81,7 +82,8 @@ void AutofillProfile33FromStatement(const sql::Statement& s,
profile->SetRawInfo(autofill::ADDRESS_HOME_STATE, s.ColumnString16(5));
profile->SetRawInfo(autofill::ADDRESS_HOME_ZIP, s.ColumnString16(6));
profile->SetInfo(
- autofill::ADDRESS_HOME_COUNTRY, s.ColumnString16(7), "en-US");
+ autofill::AutofillType(autofill::ADDRESS_HOME_COUNTRY),
+ s.ColumnString16(7), "en-US");
*date_modified = s.ColumnInt64(8);
}
« no previous file with comments | « components/autofill/core/browser/webdata/autofill_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698