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

Unified Diff: base/threading/thread_checker_impl.cc

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.cc
diff --git a/base/threading/thread_checker_impl.cc b/base/threading/thread_checker_impl.cc
index 985433e5f1154a5e11bc18b58d70e1a89aa00d40..b5042185146a7878fb8ccc7f6875d8be67f35577 100644
--- a/base/threading/thread_checker_impl.cc
+++ b/base/threading/thread_checker_impl.cc
@@ -31,4 +31,9 @@ void ThreadCheckerImpl::EnsureThreadIdAssigned() const {
valid_thread_id_ = PlatformThread::CurrentId();
}
+// static
+bool ThreadCheckerImpl::IsEnabled() {
+ return true;
+}
+
} // namespace base

Powered by Google App Engine
This is Rietveld 408576698