OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/autofill/core/browser/form_structure.h" | 5 #include "components/autofill/core/browser/form_structure.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "components/autofill/core/browser/field_types.h" | 27 #include "components/autofill/core/browser/field_types.h" |
28 #include "components/autofill/core/browser/form_field.h" | 28 #include "components/autofill/core/browser/form_field.h" |
29 #include "components/autofill/core/common/autofill_constants.h" | 29 #include "components/autofill/core/common/autofill_constants.h" |
30 #include "components/autofill/core/common/form_data.h" | 30 #include "components/autofill/core/common/form_data.h" |
31 #include "components/autofill/core/common/form_data_predictions.h" | 31 #include "components/autofill/core/common/form_data_predictions.h" |
32 #include "components/autofill/core/common/form_field_data.h" | 32 #include "components/autofill/core/common/form_field_data.h" |
33 #include "components/autofill/core/common/form_field_data_predictions.h" | 33 #include "components/autofill/core/common/form_field_data_predictions.h" |
34 #include "components/rappor/rappor_service.h" | 34 #include "components/rappor/rappor_service.h" |
35 #include "components/rappor/rappor_utils.h" | 35 #include "components/rappor/rappor_utils.h" |
36 #include "third_party/libxml/chromium/libxml_utils.h" | 36 #include "third_party/libxml/chromium/libxml_utils.h" |
37 #include "third_party/re2/re2/re2.h" | 37 #include "third_party/re2/src/re2/re2.h" |
38 | 38 |
39 namespace autofill { | 39 namespace autofill { |
40 namespace { | 40 namespace { |
41 | 41 |
42 // XML elements and attributes. | 42 // XML elements and attributes. |
43 const char kAttributeAutofillUsed[] = "autofillused"; | 43 const char kAttributeAutofillUsed[] = "autofillused"; |
44 const char kAttributeAutofillType[] = "autofilltype"; | 44 const char kAttributeAutofillType[] = "autofilltype"; |
45 const char kAttributeClientVersion[] = "clientversion"; | 45 const char kAttributeClientVersion[] = "clientversion"; |
46 const char kAttributeSubmission[] = "submission"; | 46 const char kAttributeSubmission[] = "submission"; |
47 const char kAttributeDataPresent[] = "datapresent"; | 47 const char kAttributeDataPresent[] = "datapresent"; |
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 for (AutofillField* field : fields_) { | 1355 for (AutofillField* field : fields_) { |
1356 FieldTypeGroup field_type_group = field->Type().group(); | 1356 FieldTypeGroup field_type_group = field->Type().group(); |
1357 if (field_type_group == CREDIT_CARD) | 1357 if (field_type_group == CREDIT_CARD) |
1358 field->set_section(field->section() + "-cc"); | 1358 field->set_section(field->section() + "-cc"); |
1359 else | 1359 else |
1360 field->set_section(field->section() + "-default"); | 1360 field->set_section(field->section() + "-default"); |
1361 } | 1361 } |
1362 } | 1362 } |
1363 | 1363 |
1364 } // namespace autofill | 1364 } // namespace autofill |
OLD | NEW |