• tzik's avatar
    Remove RunMixin from base::Callback implementation · ecb1b240
    tzik authored
    RunMixin had provided to define rvalue-qualified Callback::Run for
    OnceCallback without overloading Callback::Run. This is needed since some
    user took the method pointer of Callback::Run.
    
    After landing all depends-on CLs, the method pointer of Callback::Run will
    go away and we will be able to remove RunMixin. In addition, this CL adds
    an overload of Callback::Run for rvalue-qualified RepeatingCallback that
    nullify the callback itself, so that `std::move(callback).Run()` is more
    consistent to OnceCallback and RepeatingCallback.
    
    Review-Url: https://codereview.chromium.org/2753953003
    Cr-Commit-Position: refs/heads/master@{#458340}
    ecb1b240
callback.h 3.28 KB