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

Unified Diff: base/unguessable_token.cc

Issue 2353663003: Add base::UnguessableToken << operator (Closed)
Patch Set: Addressed comment. Created 4 years, 3 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
« no previous file with comments | « base/unguessable_token.h ('k') | base/unguessable_token_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/unguessable_token.cc
diff --git a/base/unguessable_token.cc b/base/unguessable_token.cc
index 076a8ed28149264aa515fec4352d769dbd59f4eb..cd9830e6866ff047350268107ecc18844a8b97c6 100644
--- a/base/unguessable_token.cc
+++ b/base/unguessable_token.cc
@@ -34,4 +34,8 @@ UnguessableToken UnguessableToken::Deserialize(uint64_t high, uint64_t low) {
return UnguessableToken(high, low);
}
+std::ostream& operator<<(std::ostream& out, const UnguessableToken& token) {
+ return out << token.ToString();
+}
+
} // namespace base
« no previous file with comments | « base/unguessable_token.h ('k') | base/unguessable_token_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698