Index: components/signin/core/account_id/account_id.cc |
diff --git a/components/signin/core/account_id/account_id.cc b/components/signin/core/account_id/account_id.cc |
index 1ffac80db1e42f94aaeb864a4fffdaef3c82b056..e232ecb965c26628a66adec4e1ad798d5f0588e4 100644 |
--- a/components/signin/core/account_id/account_id.cc |
+++ b/components/signin/core/account_id/account_id.cc |
@@ -319,6 +319,16 @@ bool AccountId::Deserialize(const std::string& serialized, |
return false; |
} |
+std::ostream& operator<<(std::ostream& stream, const AccountId& account_id) { |
+ stream << "{id: " << account_id.id_ << ", email: " << account_id.user_email_ |
+ << ", type: " |
+ << static_cast< |
+ std::underlying_type<decltype(account_id.account_type_)>::type>( |
+ account_id.account_type_) |
+ << "}"; |
+ return stream; |
+} |
+ |
const AccountId& EmptyAccountId() { |
return AccountId::EmptyAccountId::GetInstance()->user_id; |
} |