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

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

Issue 1774153002: [Autofill] Add the phone extension type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and adapt heuristic output Created 4 years, 9 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/phone_field.cc
diff --git a/components/autofill/core/browser/phone_field.cc b/components/autofill/core/browser/phone_field.cc
index ef815d6603a22057aeb84edf7d07750445daf4a4..0044fcc9fa2b8197713f0256d5e2eb4cc7b5f127 100644
--- a/components/autofill/core/browser/phone_field.cc
+++ b/components/autofill/core/browser/phone_field.cc
@@ -247,10 +247,9 @@ void PhoneField::AddClassifications(
}
if (parsed_phone_fields_[FIELD_EXTENSION]) {
- // TODO(crbug.com/589211): Change from UNKNOWN_TYPE to the proper
- // ServerFieldType once the new phone suffix is checked in.
- AddClassification(parsed_phone_fields_[FIELD_EXTENSION], UNKNOWN_TYPE,
- kBasePhoneParserScore, field_candidates);
+ AddClassification(parsed_phone_fields_[FIELD_EXTENSION],
+ PHONE_HOME_EXTENSION, kBasePhoneParserScore,
+ field_candidates);
}
}
« no previous file with comments | « components/autofill/core/browser/form_structure_unittest.cc ('k') | components/autofill/core/browser/phone_number.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698