Reland "Simplify implementation of FileSystemOperationRunner."
This reverts commit acf1c986, which speculatively reverted the change to establish whether it might be responsible for a spike in BlobReader crashes. Re-landing now, since the revert had no impact on crash rate of that signature in Canary (see https://crbug.com/864351). - Use a base::AutoReset instance to manage a single integer tracking whether the completion callback for an operation is invoked before we have actually returned to the caller. - Remove the now-unused OperationHandle and BeginOperationScoper. - Replace SupportsWeakPtr with an internal WeakPtrFactory. - Replace potentially unsafe use of GetWeakPtr() with a |weak_ptr_| member. - Temporarily disables the recently-added FileSystemURLLoaderFactoryTest tests, which have incorrect threading, causing WeakPtr checks to fire. TBR=wez@chromium.org,rockot@chromium.org,alemate@chromium.org,noel@chromium.org,mek@chromium.org,fukino@chromium.org,cmumford@chromium.org,govind@chromium.org,tzik@chromium.org,abdulsyed@chromium.org Bug: 846985, 860547, 864351 Change-Id: Ia843811a2e85be9347f410ec9f97dc3dc0f1713a Reviewed-on: https://chromium-review.googlesource.com/1189048 Commit-Queue: Wez <wez@chromium.org> Reviewed-by:Wez <wez@chromium.org> Cr-Commit-Position: refs/heads/master@{#586074}
Showing
This diff is collapsed.
Please register or sign in to comment