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

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

Issue 2747733004: [Password Manager] Send username correction votes (Closed)
Patch Set: Rebase 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 2ed7a0ebbbfc2382b580000b281770370cb22295..d63283688a4f14217d3befce57ca6dc4952e9df1 100644
--- a/components/autofill/content/common/autofill_types_struct_traits.cc
+++ b/components/autofill/content/common/autofill_types_struct_traits.cc
@@ -585,4 +585,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