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

Unified Diff: components/autofill/core/browser/autofill_manager.cc

Issue 22040002: [Autofill] Add a separate enumeration for HTML field type hints. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add docs 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_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index ceec8d07046859ae311fa36e53a932dad7e2490f..78654f4702d05f0ad32613d325d6e67fac0cb24c 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -1075,7 +1075,8 @@ void AutofillManager::GetProfileSuggestions(
std::vector<int>* unique_ids) const {
std::vector<NativeFieldType> field_types(form->field_count());
for (size_t i = 0; i < form->field_count(); ++i) {
- field_types.push_back(form->field(i)->Type().native_type());
+ field_types.push_back(
+ form->field(i)->Type().GetApproximateNativeFieldType());
}
std::vector<GUIDPair> guid_pairs;

Powered by Google App Engine
This is Rietveld 408576698