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

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

Issue 2747733004: [Password Manager] Send username correction votes (Closed)
Patch Set: Minor changes Created 3 years, 9 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.cc
diff --git a/components/autofill/content/common/autofill_types_struct_traits.cc b/components/autofill/content/common/autofill_types_struct_traits.cc
index 055646e556b843db242922d520f2b253abc8a953..39d127676c56fed7dfd78f52ad990f66b86a23c8 100644
--- a/components/autofill/content/common/autofill_types_struct_traits.cc
+++ b/components/autofill/content/common/autofill_types_struct_traits.cc
@@ -632,4 +632,13 @@ bool StructTraits<mojom::FormsPredictionsMapDataView, FormsPredictionsMap>::
return true;
}
+// static
+bool StructTraits<mojom::PossibleUsernamePairDataView, PossibleUsernamePair>::
+ Read(mojom::PossibleUsernamePairDataView data, PossibleUsernamePair* out) {
+ if (!data.ReadValue(&out->first) || !data.ReadFieldName(&out->second))
+ return false;
+
+ return true;
+}
+
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698