summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill')
-rw-r--r--chrome/browser/autofill/form_structure.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autofill/form_structure.cc b/chrome/browser/autofill/form_structure.cc
index 8ae8eb2..78431f2 100644
--- a/chrome/browser/autofill/form_structure.cc
+++ b/chrome/browser/autofill/form_structure.cc
@@ -234,6 +234,9 @@ void FormStructure::ParseQueryResponse(const std::string& response_xml,
if (current_type == field_types.end())
break;
+ // UNKNOWN_TYPE is reserved for use by the client.
+ DCHECK_NE(*current_type, UNKNOWN_TYPE);
+
AutoFillFieldType heuristic_type = (*field)->type();
(*field)->set_server_type(*current_type);
if (heuristic_type != (*field)->type())