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

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

Issue 2985373002: Revert of [Password Manager] Send username correction votes (Closed)
Patch Set: Created 3 years, 5 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 7d4c03035427ec97cd496d13f90986d53dd14d98..ee3aa01693edd4681af31c8a4d160665857b7337 100644
--- a/components/autofill/content/common/autofill_types_struct_traits.h
+++ b/components/autofill/content/common/autofill_types_struct_traits.h
@@ -387,8 +387,8 @@
return r.username_value;
}
- static const std::vector<autofill::PossibleUsernamePair>&
- other_possible_usernames(const autofill::PasswordForm& r) {
+ static const std::vector<base::string16>& other_possible_usernames(
+ const autofill::PasswordForm& r) {
return r.other_possible_usernames;
}
@@ -557,21 +557,6 @@
autofill::FormsPredictionsMap* out);
};
-template <>
-struct StructTraits<autofill::mojom::PossibleUsernamePairDataView,
- autofill::PossibleUsernamePair> {
- static base::string16 value(const autofill::PossibleUsernamePair& r) {
- return r.first;
- }
-
- static base::string16 field_name(const autofill::PossibleUsernamePair& r) {
- return r.second;
- }
-
- static bool Read(autofill::mojom::PossibleUsernamePairDataView data,
- autofill::PossibleUsernamePair* out);
-};
-
} // namespace mojo
#endif // COMPONENTS_AUTOFILL_CONTENT_COMMON_AUTOFILL_TYPES_STRUCT_TRAITS_H_

Powered by Google App Engine
This is Rietveld 408576698