Migrate SysLogsSourceCallback to OnceCallbacks
base::Callback has been deprecated in favor of base::OnceCallback and base::RepeatingCallback. In the case of SysLogsSourceCallback it turns out that it is sufficient to always use base::OnceCallback. For this reason, all base::Bind calls are replaced with base::BindOnce. As base::OnceCallback does not have a copy-constructor to protect the single-call semantics, the value is std::move()ed in a couple of places. This also means that callbacks need to be passed by value instead of const-reference. See docs/callback.md for more details. TBR=rdevlin.cronin@chromium.org Bug: 787554, 714018 Change-Id: I557c4600b2d927d74345dceb6946b82b711c1cbc Reviewed-on: https://chromium-review.googlesource.com/808706 Commit-Queue: Dominic Battré <battre@chromium.org> Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Reviewed-by:
Simon Que <sque@chromium.org> Reviewed-by:
Ahmed Fakhry <afakhry@chromium.org> Cr-Commit-Position: refs/heads/master@{#523848}
Showing
Please register or sign in to comment