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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "components/autofill/core/browser/autofill_type.h" | 21 #include "components/autofill/core/browser/autofill_type.h" |
22 #include "components/autofill/core/browser/autofill_xml_parser.h" | 22 #include "components/autofill/core/browser/autofill_xml_parser.h" |
23 #include "components/autofill/core/browser/field_types.h" | 23 #include "components/autofill/core/browser/field_types.h" |
24 #include "components/autofill/core/browser/form_field.h" | 24 #include "components/autofill/core/browser/form_field.h" |
25 #include "components/autofill/core/common/autofill_constants.h" | 25 #include "components/autofill/core/common/autofill_constants.h" |
26 #include "components/autofill/core/common/form_data.h" | 26 #include "components/autofill/core/common/form_data.h" |
27 #include "components/autofill/core/common/form_data_predictions.h" | 27 #include "components/autofill/core/common/form_data_predictions.h" |
28 #include "components/autofill/core/common/form_field_data.h" | 28 #include "components/autofill/core/common/form_field_data.h" |
29 #include "components/autofill/core/common/form_field_data_predictions.h" | 29 #include "components/autofill/core/common/form_field_data_predictions.h" |
30 #include "third_party/icu/source/i18n/unicode/regex.h" | 30 #include "third_party/icu/source/i18n/unicode/regex.h" |
31 #include "third_party/libjingle/source/talk/xmllite/xmlelement.h" | 31 #include "third_party/webrtc/libjingle/xmllite/xmlelement.h" |
32 | 32 |
33 namespace autofill { | 33 namespace autofill { |
34 namespace { | 34 namespace { |
35 | 35 |
36 // XML elements and attributes. | 36 // XML elements and attributes. |
37 const char kAttributeAutofillUsed[] = "autofillused"; | 37 const char kAttributeAutofillUsed[] = "autofillused"; |
38 const char kAttributeAutofillType[] = "autofilltype"; | 38 const char kAttributeAutofillType[] = "autofilltype"; |
39 const char kAttributeClientVersion[] = "clientversion"; | 39 const char kAttributeClientVersion[] = "clientversion"; |
40 const char kAttributeDataPresent[] = "datapresent"; | 40 const char kAttributeDataPresent[] = "datapresent"; |
41 const char kAttributeFieldID[] = "fieldid"; | 41 const char kAttributeFieldID[] = "fieldid"; |
(...skipping 1186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 field != fields_.end(); ++field) { | 1228 field != fields_.end(); ++field) { |
1229 FieldTypeGroup field_type_group = (*field)->Type().group(); | 1229 FieldTypeGroup field_type_group = (*field)->Type().group(); |
1230 if (field_type_group == CREDIT_CARD) | 1230 if (field_type_group == CREDIT_CARD) |
1231 (*field)->set_section((*field)->section() + "-cc"); | 1231 (*field)->set_section((*field)->section() + "-cc"); |
1232 else | 1232 else |
1233 (*field)->set_section((*field)->section() + "-default"); | 1233 (*field)->set_section((*field)->section() + "-default"); |
1234 } | 1234 } |
1235 } | 1235 } |
1236 | 1236 |
1237 } // namespace autofill | 1237 } // namespace autofill |
OLD | NEW |