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

Unified Diff: components/autofill/core/browser/autofill_ie_toolbar_import_win.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
Index: components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
diff --git a/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc b/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
index 4ac4edcbad296580bbcdf630d3d4e7f1fe721670..388e079f3effca05cef53a0811339697388950f5 100644
--- a/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
+++ b/components/autofill/core/browser/autofill_ie_toolbar_import_win.cc
@@ -99,7 +99,7 @@ base::string16 ReadAndDecryptValue(const RegKey& key,
}
struct {
- AutofillFieldType field_type;
+ ServerFieldType field_type;
const wchar_t *reg_value_name;
} profile_reg_values[] = {
{ NAME_FIRST, L"name_first" },
@@ -131,7 +131,7 @@ struct {
// We do not import verification code.
};
-typedef std::map<std::wstring, AutofillFieldType> RegToFieldMap;
+typedef std::map<std::wstring, ServerFieldType> RegToFieldMap;
// Imports address or credit card data from the given registry |key| into the
// given |form_group|, with the help of |reg_to_field|. When importing address
@@ -163,9 +163,9 @@ bool ImportSingleFormGroup(const RegKey& key,
// Phone numbers are stored piece-by-piece, and then reconstructed from
// the pieces. The rest of the fields are set "as is".
- if (!phone || !phone->SetInfo(it->second, field_value)) {
+ if (!phone || !phone->SetInfo(AutofillType(it->second), field_value)) {
has_non_empty_fields = true;
- form_group->SetInfo(it->second, field_value, app_locale);
+ form_group->SetInfo(AutofillType(it->second), field_value, app_locale);
}
}
}

Powered by Google App Engine
This is Rietveld 408576698