Index: base/synchronization/waitable_event_watcher_posix.cc |
diff --git a/base/synchronization/waitable_event_watcher_posix.cc b/base/synchronization/waitable_event_watcher_posix.cc |
index 3b0ba70c22b481891d49dea8b3f9437b0ae17084..bbecd17b4085734093ef2da6fcdda03806569e0a 100644 |
--- a/base/synchronization/waitable_event_watcher_posix.cc |
+++ b/base/synchronization/waitable_event_watcher_posix.cc |
@@ -43,8 +43,13 @@ class Flag : public RefCountedThreadSafe<Flag> { |
} |
private: |
+ friend class RefCountedThreadSafe<Flag>; |
+ ~Flag() {} |
+ |
mutable Lock lock_; |
bool flag_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(Flag); |
}; |
// ----------------------------------------------------------------------------- |