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

Unified Diff: components/autofill/core/browser/autofill_field.h

Issue 2318533002: [Password Generation] Use signatures for form matching (Closed)
Patch Set: Rebase 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/browser/autofill_field.h
diff --git a/components/autofill/core/browser/autofill_field.h b/components/autofill/core/browser/autofill_field.h
index 52137e1af1982b05b8d5f6bce455d15c36eb1334..ed74fdfe239f1046c5225f0680a40719f2afe349 100644
--- a/components/autofill/core/browser/autofill_field.h
+++ b/components/autofill/core/browser/autofill_field.h
@@ -14,6 +14,7 @@
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/proto/server.pb.h"
#include "components/autofill/core/common/form_field_data.h"
+#include "components/autofill/core/common/signatures_util.h"
namespace autofill {
@@ -67,7 +68,10 @@ class AutofillField : public FormFieldData {
// The unique signature of this field, composed of the field name and the html
// input type in a 32-bit hash.
- std::string FieldSignature() const;
+ FieldSignature GetFieldSignature() const;
+
+ // Returns the field signature as string.
+ std::string FieldSignatureAsStr() const;
// Returns true if the field type has been determined (without the text in the
// field).

Powered by Google App Engine
This is Rietveld 408576698