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

Unified Diff: components/autofill/content/common/autofill_types_struct_traits.h

Issue 2640783002: [Password Generation] Send id attribute to server for HTML based form classifier (Closed)
Patch Set: Fixed failed test Created 3 years, 11 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/content/common/autofill_types_struct_traits.h
diff --git a/components/autofill/content/common/autofill_types_struct_traits.h b/components/autofill/content/common/autofill_types_struct_traits.h
index 934f8801855eaba0a26b73d8c605cb8bd649beb2..a9785e39848218772f7733c2a40170f09d3ced67 100644
--- a/components/autofill/content/common/autofill_types_struct_traits.h
+++ b/components/autofill/content/common/autofill_types_struct_traits.h
@@ -96,6 +96,10 @@ struct StructTraits<autofill::mojom::FormFieldDataDataView,
return r.name;
}
+ static const base::string16& id(const autofill::FormFieldData& r) {
+ return r.id;
+ }
+
static const base::string16& value(const autofill::FormFieldData& r) {
return r.value;
}

Powered by Google App Engine
This is Rietveld 408576698