Index: content/browser/blob_storage/blob_dispatcher_host.cc |
diff --git a/content/browser/blob_storage/blob_dispatcher_host.cc b/content/browser/blob_storage/blob_dispatcher_host.cc |
index 00ef8b40f71f04826f09ac935af3516c0b318f23..8b3741b13d71fdeae281213f9e389dd111e7d5f9 100644 |
--- a/content/browser/blob_storage/blob_dispatcher_host.cc |
+++ b/content/browser/blob_storage/blob_dispatcher_host.cc |
@@ -188,9 +188,11 @@ void BlobDispatcherHost::OnCancelBuildingBlob( |
// Second, if the last dereference of the blob happened on a different host, |
// then we still haven't gotten rid of the 'building' state in the original |
// host. So we call cancel just in case this happens. |
- async_builder_.CancelBuildingBlob( |
- uuid, IPCBlobCreationCancelCode::BLOB_DEREFERENCED_WHILE_BUILDING, |
- context); |
+ if (async_builder_.IsBeingBuilt(uuid)) { |
+ async_builder_.CancelBuildingBlob( |
+ uuid, IPCBlobCreationCancelCode::BLOB_DEREFERENCED_WHILE_BUILDING, |
+ context); |
+ } |
return; |
} |
if (!async_builder_.IsBeingBuilt(uuid)) { |