Migrate base::Closure to Once/Repeating for ipc/ directory
Use of base::Bind, base::Callback and base::Closure is deprecated in
favor of the more explicit Once/Repeating versions. Despite being marked
as fixed, ipc/ has a few remaining uses of base::Closure that were
missed in the conversion. This cl fixes those stragglers and enables the
presubmit to avoid any future regressions.
Bug: 1141533, 1007797
Change-Id: I7118bbb7aa45b4ea453909cfa5d1e3ce91c10ef4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2505935
Reviewed-by: Tom Sepez <[email protected]>
Reviewed-by: Dirk Pranke <[email protected]>
Commit-Queue: Alex Turner <[email protected]>
Cr-Commit-Position: refs/heads/master@{#821922}
diff --git a/ipc/ipc_test_sink.h b/ipc/ipc_test_sink.h
index 8be0c189..e1cfbed4 100644
--- a/ipc/ipc_test_sink.h
+++ b/ipc/ipc_test_sink.h
@@ -59,7 +59,7 @@
//
// class MyListener : public IPC::Listener {
// public:
-// MyListener(const base::Closure& closure)
+// MyListener(const base::RepeatingClosure& closure)
// : message_received_closure_(closure) {}
// virtual bool OnMessageReceived(const IPC::Message& msg) {
// <do something with the message>
@@ -67,7 +67,7 @@
// return false; // to store the message in the sink, or true to drop it
// }
// private:
-// base::Closure message_received_closure_;
+// base::RepeatingClosure message_received_closure_;
// };
//
// base::RunLoop run_loop;