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

Unified Diff: base/threading/thread_checker.h

Issue 2213263002: Make ThreadChecker::CalledOnValidThread() return true when called from the same task. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR gab #6 (fix comment) 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
Index: base/threading/thread_checker.h
diff --git a/base/threading/thread_checker.h b/base/threading/thread_checker.h
index 5b64880d83def9771e25786171585e582b1c3191..1d4eb1c7b0b00ad79dbec27d1afb0238190d8fa2 100644
--- a/base/threading/thread_checker.h
+++ b/base/threading/thread_checker.h
@@ -57,9 +57,7 @@ class ThreadCheckerDoNothing {
// tasks posted to SingleThreadTaskRunners bound to different sequences, even if
// the tasks happen to run on the same thread (e.g. two independent TaskRunners
// with ExecutionMode::SINGLE_THREADED on the TaskScheduler that happen to share
-// a thread). Also, CalledOnValidThread() returns false when called from a non-
-// single-threaded task which is associated with a SequenceToken (e.g. a task
-// posted with ExecutionMode::SEQUENCED to the TaskScheduler).
+// a thread).
//
// In Release mode, CalledOnValidThread will always return true.
#if DCHECK_IS_ON()

Powered by Google App Engine
This is Rietveld 408576698