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

Unified Diff: base/threading/non_thread_safe.h

Issue 1076013002: Added stub MediaSourcePlayer for developing behind the flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Used OverrideTaskRunnerForMessage as suggested by Xiaohan Created 5 years, 8 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/non_thread_safe.h
diff --git a/base/threading/non_thread_safe.h b/base/threading/non_thread_safe.h
index d41c08608c96a12d17c7a4d0da40d52607f81854..ea6d32c3a13e22ba155fe872d508e9e70c57169d 100644
--- a/base/threading/non_thread_safe.h
+++ b/base/threading/non_thread_safe.h
@@ -58,7 +58,9 @@ class NonThreadSafeDoNothing {
// to have a base::ThreadChecker as a member, rather than inherit from
// NonThreadSafe. For more details about when to choose one over the other, see
// the documentation for base::ThreadChecker.
-#if ENABLE_NON_THREAD_SAFE
+#if defined(DISABLE_NON_THREAD_SAFE)
qinmin 2015/04/27 22:16:20 why we need this here?
+typedef NonThreadSafeDoNothing NonThreadSafe;
+#elif defined(ENABLE_NON_THREAD_SAFE)
typedef NonThreadSafeImpl NonThreadSafe;
#else
typedef NonThreadSafeDoNothing NonThreadSafe;

Powered by Google App Engine
This is Rietveld 408576698