• tzik's avatar
    Avoid implicit first reference retention around AwQuotaManager · a50a34bc
    tzik authored
    GetOriginsTask is ref counted, and its first reference is implicitly
    retained by base::Bind() in GetOriginsTask::Run().
    Though this case is safe, an upcoming base::Bind change rejects this
    pattern of the first reference retention.
    
    After this CL, the caller of GetOriginsTask::Run() keeps the first
    reference to the GetOriginsTask instance to avoid the check failure.
    
    Bug: 866456
    Change-Id: Ia011ccc3b815a626200403b22c63b8133c83fbb0
    Reviewed-on: https://chromium-review.googlesource.com/1158664
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Reviewed-by: default avatarTao Bai <michaelbai@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#579873}
    a50a34bc
aw_quota_manager_bridge.cc 11.6 KB