• Dominic Battre's avatar
    Migrate SysLogsSourceCallback to OnceCallbacks · 67fa5148
    Dominic Battre authored
    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: default avatarDevlin <rdevlin.cronin@chromium.org>
    Reviewed-by: default avatarSimon Que <sque@chromium.org>
    Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#523848}
    67fa5148
dbus_log_source.cc 1.26 KB