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

Unified Diff: chrome/browser/autofill/autofill_field.cc

Issue 7980025: Ignore crowd-sourced fax number detection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « chrome/browser/autofill/autofill_field.h ('k') | chrome/browser/autofill/field_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_field.cc
diff --git a/chrome/browser/autofill/autofill_field.cc b/chrome/browser/autofill/autofill_field.cc
index 6716c652a020ce0393fc5933c8a1221c667a7b5f..cabffef0c17ef4bf04080726f81331384aca8325 100644
--- a/chrome/browser/autofill/autofill_field.cc
+++ b/chrome/browser/autofill/autofill_field.cc
@@ -53,6 +53,14 @@ void AutofillField::set_heuristic_type(AutofillFieldType type) {
}
}
+void AutofillField::set_server_type(AutofillFieldType type) {
+ // Chrome no longer supports fax numbers, but the server still does.
+ if (type >= PHONE_FAX_NUMBER && type <= PHONE_FAX_WHOLE_NUMBER)
+ return;
+
+ server_type_ = type;
+}
+
AutofillFieldType AutofillField::type() const {
if (server_type_ != NO_SERVER_DATA)
return server_type_;
« no previous file with comments | « chrome/browser/autofill/autofill_field.h ('k') | chrome/browser/autofill/field_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698