• Colin Blundell's avatar
    Convert //components/web_resource away from base::Bind() · e980e86d
    Colin Blundell authored
    As part of the effort to replace base::Bind by
    base::Bind{Once, Repeating}, this CL converts the one usage of
    base::Bind() in //components/web_resource to instead be a usage of
    base::BindRepeating(). The rational for using base::BindRepeating() is
    that the callback is being passed in to a PrefChangeRegistrar, which
    can invoke it multiple times in response to pref changes.
    
    This CL also takes the opportunity to update the PrefChangeRegistrar
    API in question to take in a base::RepeatingClosure rather than a
    base::Closure.
    
    TBR=jochen@chromium.org
    
    Bug: 1007753
    Change-Id: I7550f64eedb9d0da719f9ff8617e2c4d9d415eab
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1847216
    Commit-Queue: Colin Blundell <blundell@chromium.org>
    Reviewed-by: default avatardanakj <danakj@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#705009}
    e980e86d
pref_change_registrar.h 2.85 KB