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

Unified Diff: components/autofill/core/browser/form_structure.cc

Issue 2022123002: Merge autofill::FormFieldData::is_checkable and is_checked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
Index: components/autofill/core/browser/form_structure.cc
diff --git a/components/autofill/core/browser/form_structure.cc b/components/autofill/core/browser/form_structure.cc
index 16369662768730d96f6c70c6512de5e57733f53e..485da9cf2ed4968c253fe5d7a7daa6e6768f058f 100644
--- a/components/autofill/core/browser/form_structure.cc
+++ b/components/autofill/core/browser/form_structure.cc
@@ -1145,7 +1145,7 @@ void FormStructure::EncodeFormForUpload(AutofillUploadContents* upload) const {
for (const AutofillField* field : fields_) {
// Don't upload checkable fields.
- if (field->is_checkable)
+ if (IsCheckable(field->check_status))
continue;
const ServerFieldTypeSet& types = field->possible_types();
@@ -1310,7 +1310,7 @@ void FormStructure::IdentifySections(bool has_author_specified_sections) {
}
bool FormStructure::ShouldSkipField(const FormFieldData& field) const {
- return field.is_checkable;
+ return IsCheckable(field.check_status);
}
void FormStructure::ProcessExtractedFields() {
« no previous file with comments | « components/autofill/core/browser/form_field_unittest.cc ('k') | components/autofill/core/browser/form_structure_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698