| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 continue; | 1091 continue; |
| 1092 | 1092 |
| 1093 const ServerFieldTypeSet& types = field->possible_types(); | 1093 const ServerFieldTypeSet& types = field->possible_types(); |
| 1094 for (const auto& field_type : types) { | 1094 for (const auto& field_type : types) { |
| 1095 // Add the same field elements as the query and a few more below. | 1095 // Add the same field elements as the query and a few more below. |
| 1096 if (ShouldSkipField(*field)) | 1096 if (ShouldSkipField(*field)) |
| 1097 continue; | 1097 continue; |
| 1098 | 1098 |
| 1099 AutofillUploadContents::Field* added_field = upload->add_field(); | 1099 AutofillUploadContents::Field* added_field = upload->add_field(); |
| 1100 added_field->set_autofill_type(field_type); | 1100 added_field->set_autofill_type(field_type); |
| 1101 if (field->generation_type()) | 1101 if (field->generation_type()) { |
| 1102 added_field->set_generation_type(field->generation_type()); | 1102 added_field->set_generation_type(field->generation_type()); |
| 1103 added_field->set_generated_password_changed( |
| 1104 field->generated_password_changed()); |
| 1105 } |
| 1103 | 1106 |
| 1104 if (field->form_classifier_outcome()) { | 1107 if (field->form_classifier_outcome()) { |
| 1105 added_field->set_form_classifier_outcome( | 1108 added_field->set_form_classifier_outcome( |
| 1106 field->form_classifier_outcome()); | 1109 field->form_classifier_outcome()); |
| 1107 } | 1110 } |
| 1108 | 1111 |
| 1109 added_field->set_signature(field->GetFieldSignature()); | 1112 added_field->set_signature(field->GetFieldSignature()); |
| 1110 | 1113 |
| 1111 if (IsAutofillFieldMetadataEnabled()) { | 1114 if (IsAutofillFieldMetadataEnabled()) { |
| 1112 added_field->set_type(field->form_control_type); | 1115 added_field->set_type(field->form_control_type); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 filtered_strings[0].at(prefix_len)) { | 1278 filtered_strings[0].at(prefix_len)) { |
| 1276 // Mismatch found. | 1279 // Mismatch found. |
| 1277 return filtered_strings[i].substr(0, prefix_len); | 1280 return filtered_strings[i].substr(0, prefix_len); |
| 1278 } | 1281 } |
| 1279 } | 1282 } |
| 1280 } | 1283 } |
| 1281 return filtered_strings[0]; | 1284 return filtered_strings[0]; |
| 1282 } | 1285 } |
| 1283 | 1286 |
| 1284 } // namespace autofill | 1287 } // namespace autofill |
| OLD | NEW |