Index: base/synchronization/waitable_event_watcher.h |
diff --git a/base/synchronization/waitable_event_watcher.h b/base/synchronization/waitable_event_watcher.h |
index 44ef5047edfebcb0160b7cbc397750045676d0d9..4c83e21b289c7e2634a18f954cb635edd31f5357 100644 |
--- a/base/synchronization/waitable_event_watcher.h |
+++ b/base/synchronization/waitable_event_watcher.h |
@@ -35,7 +35,7 @@ class WaitableEvent; |
// public: |
// void DoStuffWhenSignaled(WaitableEvent *waitable_event) { |
// watcher_.StartWatching(waitable_event, |
-// base::Bind(&MyClass::OnWaitableEventSignaled, this); |
+// base::BindOnce(&MyClass::OnWaitableEventSignaled, this); |
// } |
// private: |
// void OnWaitableEventSignaled(WaitableEvent* waitable_event) { |
@@ -64,7 +64,7 @@ class BASE_EXPORT WaitableEventWatcher |
#endif |
{ |
public: |
- typedef Callback<void(WaitableEvent*)> EventCallback; |
+ using EventCallback = OnceCallback<void(WaitableEvent*)>; |
WaitableEventWatcher(); |
#if defined(OS_WIN) |
@@ -75,7 +75,7 @@ class BASE_EXPORT WaitableEventWatcher |
// When |event| is signaled, |callback| is called on the sequence that called |
// StartWatching(). |
- bool StartWatching(WaitableEvent* event, const EventCallback& callback); |
+ bool StartWatching(WaitableEvent* event, EventCallback callback); |
// Cancel the current watch. Must be called from the same sequence which |
// started the watch. |