Index: base/synchronization/waitable_event_win.cc |
diff --git a/base/synchronization/waitable_event_win.cc b/base/synchronization/waitable_event_win.cc |
index 6674cdb923f12920a7a2e8d2f534d57ac71aac99..89ace19961a7e7e42bca88e2f0a3663a2e30e763 100644 |
--- a/base/synchronization/waitable_event_win.cc |
+++ b/base/synchronization/waitable_event_win.cc |
@@ -7,6 +7,8 @@ |
#include <windows.h> |
#include <stddef.h> |
+#include <utility> |
+ |
#include "base/logging.h" |
#include "base/numerics/safe_conversions.h" |
#include "base/threading/thread_restrictions.h" |
@@ -22,7 +24,7 @@ WaitableEvent::WaitableEvent(bool manual_reset, bool signaled) |
} |
WaitableEvent::WaitableEvent(win::ScopedHandle handle) |
- : handle_(handle.Pass()) { |
+ : handle_(std::move(handle)) { |
CHECK(handle_.IsValid()) << "Tried to create WaitableEvent from NULL handle"; |
} |