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

Unified Diff: components/autofill/core/common/form_field_data.cc

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)
Patch Set: Compilation fix: AutofillField.FieldSignature() renamed to GetFieldSignature() Created 4 years, 3 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/common/form_field_data.cc
diff --git a/components/autofill/core/common/form_field_data.cc b/components/autofill/core/common/form_field_data.cc
index 49447aba6d1476c3012f85d6aabe57296804c7cd..6e19116ad9a9e0431bc87c2451d4e38c7f8a494d 100644
--- a/components/autofill/core/common/form_field_data.cc
+++ b/components/autofill/core/common/form_field_data.cc
@@ -7,6 +7,7 @@
#include "base/pickle.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
+#include "components/autofill/core/common/autofill_util.h"
Nico 2016/09/09 16:29:23 fwiw we generally discourage "util" files since th
namespace autofill {
@@ -350,27 +351,4 @@ std::ostream& operator<<(std::ostream& os, const FormFieldData& field) {
<< field.properties_mask;
}
-bool IsCheckable(const FormFieldData::CheckStatus& check_status) {
- return check_status != FormFieldData::CheckStatus::NOT_CHECKABLE;
-}
-
-bool IsChecked(const FormFieldData::CheckStatus& check_status) {
- return check_status == FormFieldData::CheckStatus::CHECKED;
-}
-
-void SetCheckStatus(FormFieldData* form_field_data,
- bool isCheckable,
- bool isChecked) {
- if (isChecked) {
- form_field_data->check_status = FormFieldData::CheckStatus::CHECKED;
- } else {
- if (isCheckable) {
- form_field_data->check_status =
- FormFieldData::CheckStatus::CHECKABLE_BUT_UNCHECKED;
- } else {
- form_field_data->check_status = FormFieldData::CheckStatus::NOT_CHECKABLE;
- }
- }
-}
-
} // namespace autofill
« no previous file with comments | « components/autofill/core/common/form_field_data.h ('k') | components/autofill/core/common/form_field_data_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698