Index: base/synchronization/waitable_event_win.cc |
diff --git a/base/synchronization/waitable_event_win.cc b/base/synchronization/waitable_event_win.cc |
index ec2d84f2679ad840cb460f1247fee5825f269a19..770c582aedeaf1975ec166efcf1fc94a9b8355ea 100644 |
--- a/base/synchronization/waitable_event_win.cc |
+++ b/base/synchronization/waitable_event_win.cc |
@@ -20,18 +20,14 @@ WaitableEvent::WaitableEvent(bool manual_reset, bool signaled) |
CHECK(handle_.IsValid()); |
} |
-WaitableEvent::WaitableEvent(HANDLE handle) |
- : handle_(handle) { |
+WaitableEvent::WaitableEvent(win::ScopedHandle handle) |
+ : handle_(handle.Pass()) { |
CHECK(handle_.IsValid()) << "Tried to create WaitableEvent from NULL handle"; |
} |
WaitableEvent::~WaitableEvent() { |
} |
-HANDLE WaitableEvent::Release() { |
- return handle_.Take(); |
-} |
- |
void WaitableEvent::Reset() { |
ResetEvent(handle_.Get()); |
} |