Fix bug in BlobRegistryWrapper creation.
Since RefCounted starts out with a zero ref-count, it is not safe to create scoped_refptrs (such as the one in base::BindOnce) in the constructor (could result in this case in the IO thread deref-ing and destroying the BlobRegistryWrapper before the UI thread got around to increasing the refcount). This fixes that by not posting the task until after the constructor has completed. Bug: 611935 Change-Id: I3c716e23dd1b89692d61fef12e37eb3f9a8be6d5 Reviewed-on: https://chromium-review.googlesource.com/567383Reviewed-by:Daniel Murphy <dmurph@chromium.org> Reviewed-by:
John Abd-El-Malek <jam@chromium.org> Commit-Queue: Marijn Kruisselbrink <mek@chromium.org> Cr-Commit-Position: refs/heads/master@{#485789}
Showing
Please register or sign in to comment