Index: base/synchronization/lock.h |
diff --git a/base/synchronization/lock.h b/base/synchronization/lock.h |
index f7dd35dccba3f4c4a1e6cd5749bab5b467303daf..39a26b77d6f8286c3b6c54cfd75b0cf6940c8f56 100644 |
--- a/base/synchronization/lock.h |
+++ b/base/synchronization/lock.h |
@@ -61,15 +61,11 @@ class BASE_EXPORT Lock { |
void AssertAcquired() const; |
#endif // DCHECK_IS_ON() |
-#if defined(OS_POSIX) |
- // The posix implementation of ConditionVariable needs to be able |
- // to see our lock and tweak our debugging counters, as it releases |
- // and acquires locks inside of pthread_cond_{timed,}wait. |
+#if defined(OS_POSIX) || defined(OS_WIN) |
+ // Both Windows and POSIX implementations of ConditionVariable need to be |
+ // able to see our lock and tweak our debugging counters, as they release and |
+ // acquire locks inside of their condition variable APIs. |
friend class ConditionVariable; |
-#elif defined(OS_WIN) |
- // The Windows Vista implementation of ConditionVariable needs the |
- // native handle of the critical section. |
- friend class WinVistaCondVar; |
#endif |
private: |