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

Unified Diff: base/sequence_token.cc

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 | « base/sequence_token.h ('k') | no next file » | 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 95eafb7562a474e34aec398d4f0d213eda34842f..1178181ddcafbad2583d9acb7c43a48990025a53 100644
--- a/base/sequence_token.cc
+++ b/base/sequence_token.cc
@@ -26,7 +26,7 @@ LazyInstance<ThreadLocalPointer<const TaskToken>>::Leaky
} // namespace
bool SequenceToken::operator==(const SequenceToken& other) const {
- return token_ == other.token_ && token_ != kInvalidSequenceToken;
+ return token_ == other.token_ && IsValid();
}
bool SequenceToken::operator!=(const SequenceToken& other) const {
@@ -48,7 +48,7 @@ SequenceToken SequenceToken::GetForCurrentThread() {
}
bool TaskToken::operator==(const TaskToken& other) const {
- return token_ == other.token_ && token_ != kInvalidTaskToken;
+ return token_ == other.token_ && IsValid();
}
bool TaskToken::operator!=(const TaskToken& other) const {
« no previous file with comments | « base/sequence_token.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698