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

Unified Diff: components/autofill/core/common/form_data.h

Issue 2839023003: WebView autofill implementation (Closed)
Patch Set: fix coordinates Created 3 years, 7 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_data.h
diff --git a/components/autofill/core/common/form_data.h b/components/autofill/core/common/form_data.h
index a4397fc2a2348e15be10c35e0663d27dd9fc8b05..fd4410cc8ddedeacc4d3a58336d8e61888caa12b 100644
--- a/components/autofill/core/common/form_data.h
+++ b/components/autofill/core/common/form_data.h
@@ -23,6 +23,11 @@ struct FormData {
// form elements.
bool SameFormAs(const FormData& other) const;
+ // Same as SameFormAs() except calling FormFieldData.SimilarFieldAs() to
+ // comparing fields, so we know forms are similar enough to be considered as
sebsg 2017/05/08 15:38:17 comparing -> compare. Also I feel like what's afte
michaelbai 2017/05/09 00:27:03 Done.
+ // same for autofill purpose.
+ bool SimilarFormAs(const FormData& other) const;
+
// Note: operator==() performs a full-field-comparison(byte by byte), this is
// different from SameFormAs(), which ignores comparison for those "values" of
// all form fields, just like what FormFieldData::SameFieldAs() ignores.

Powered by Google App Engine
This is Rietveld 408576698