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

Unified Diff: base/sequence_token.h

Issue 2228993003: Nits follow-up to TaskToken CL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@d1_fdoray_tasktoken
Patch Set: Created 4 years, 4 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 | « no previous file | base/sequence_token.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/sequence_token.h
diff --git a/base/sequence_token.h b/base/sequence_token.h
index 1f335281285f959812c9e738443bab466e27af13..80340c0f11f07ed359463c1bd941fa2ba9bd04b0 100644
--- a/base/sequence_token.h
+++ b/base/sequence_token.h
@@ -39,7 +39,7 @@ class BASE_EXPORT SequenceToken {
static SequenceToken GetForCurrentThread();
private:
- SequenceToken(int token) : token_(token) {}
+ explicit SequenceToken(int token) : token_(token) {}
static constexpr int kInvalidSequenceToken = -1;
int token_ = kInvalidSequenceToken;
@@ -77,7 +77,7 @@ class BASE_EXPORT TaskToken {
private:
friend class ScopedSetSequenceTokenForCurrentThread;
- TaskToken(int token) : token_(token) {}
+ explicit TaskToken(int token) : token_(token) {}
// Returns a valid TaskToken which isn't equal to any previously returned
// TaskToken. This is private as it only meant to be instantiated by
« no previous file with comments | « no previous file | base/sequence_token.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698