diff options
author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-07 04:56:18 +0000 |
---|---|---|
committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-07 04:56:18 +0000 |
commit | fbd42ecccf360f9b89b77573afa62e8a5a0b8383 (patch) | |
tree | c2a046226e12cab6cc2c681e8a362829dbb73233 /components/webdata/common | |
parent | abd69452e16e9f5689e38a615ffd93ee62da16fa (diff) | |
download | chromium_src-fbd42ecccf360f9b89b77573afa62e8a5a0b8383.zip chromium_src-fbd42ecccf360f9b89b77573afa62e8a5a0b8383.tar.gz chromium_src-fbd42ecccf360f9b89b77573afa62e8a5a0b8383.tar.bz2 |
[Autofill] Distinguish between native field types and potentially HTML field types.
The Autofill code currently uses a single enum AutofillFieldType to describe all
field types. However, several of the field type hints provided in the HTML
autocomplete specification do not map nicely onto the native (server-supported)
field types.
This CL replaces all uses of the AutofillFieldType enum with either
(1) a new enum, NativeFieldType, for code that does not need to be
aware of HTML field types
(2) AutofillType, a wrapper type that will be able to wrap either a
native field type or an HTML type hint.
TBR=estade@chromium.org
BUG=254682, 261978
Review URL: https://codereview.chromium.org/22009003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@216075 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'components/webdata/common')
-rw-r--r-- | components/webdata/common/web_database_migration_unittest.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/webdata/common/web_database_migration_unittest.cc b/components/webdata/common/web_database_migration_unittest.cc index 927fae6..5e6ef6e 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); } |