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

Unified Diff: base/threading/thread_checker_impl.h

Issue 9020008: Enable ThreadChecker in non-debug builds if DCHECK_ALWAYS_ON is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add IsEnabled function, use in one test. Created 9 years 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_impl.h
diff --git a/base/threading/thread_checker_impl.h b/base/threading/thread_checker_impl.h
index 42955604762c29faa76f934983700eca8bded19c..4dbcc5217f6a71e5db989e9b61370d05ecddcc58 100644
--- a/base/threading/thread_checker_impl.h
+++ b/base/threading/thread_checker_impl.h
@@ -30,6 +30,9 @@ class BASE_EXPORT ThreadCheckerImpl {
// exclusively on another thread.
void DetachFromThread();
+ // Returns true if thread checking is enabled.
+ static bool IsEnabled();
+
private:
void EnsureThreadIdAssigned() const;

Powered by Google App Engine
This is Rietveld 408576698