Avoid implicit first reference retention around AwQuotaManager
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:Tao Bai <michaelbai@chromium.org> Cr-Commit-Position: refs/heads/master@{#579873}
Showing
Please register or sign in to comment