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

Unified Diff: base/sequence_token.cc

Issue 2356393002: Add ExecutionMode/SequenceToken and TaskPriority as arguments of TaskScheduler tasks in tracing (Closed)
Patch Set: Created 4 years, 2 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/sequence_token.h ('k') | base/sequence_token_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sequence_token.cc
diff --git a/base/sequence_token.cc b/base/sequence_token.cc
index 1178181ddcafbad2583d9acb7c43a48990025a53..a3e8fd1bc49ea530e529a926599706d875dc3783 100644
--- a/base/sequence_token.cc
+++ b/base/sequence_token.cc
@@ -7,6 +7,7 @@
#include "base/atomic_sequence_num.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
+#include "base/strings/string_number_conversions.h"
#include "base/threading/thread_local.h"
namespace base {
@@ -37,6 +38,10 @@ bool SequenceToken::IsValid() const {
return token_ != kInvalidSequenceToken;
}
+std::string SequenceToken::ToString() const {
+ return IntToString(token_);
+}
+
SequenceToken SequenceToken::Create() {
return SequenceToken(g_sequence_token_generator.GetNext());
}
« no previous file with comments | « base/sequence_token.h ('k') | base/sequence_token_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698