| Index: webkit/browser/blob/blob_storage_controller.cc
|
| diff --git a/webkit/browser/blob/blob_storage_controller.cc b/webkit/browser/blob/blob_storage_controller.cc
|
| index d7062c47488eb99c6aa29c98e7a741c41e6fc9d0..5c0fe15ed4a847f7fc3145ef0832a75288b28a89 100644
|
| --- a/webkit/browser/blob/blob_storage_controller.cc
|
| +++ b/webkit/browser/blob/blob_storage_controller.cc
|
| @@ -54,7 +54,7 @@ void BlobStorageController::AppendBlobDataItem(
|
| BlobMap::iterator found = unfinalized_blob_map_.find(url.spec());
|
| if (found == unfinalized_blob_map_.end())
|
| return;
|
| - BlobData* target_blob_data = found->second;
|
| + BlobData* target_blob_data = found->second.get();
|
| DCHECK(target_blob_data);
|
|
|
| memory_usage_ -= target_blob_data->GetMemoryUsage();
|
| @@ -163,7 +163,7 @@ bool BlobStorageController::RemoveFromMapHelper(
|
| BlobMap::iterator found = map->find(url.spec());
|
| if (found == map->end())
|
| return false;
|
| - if (DecrementBlobDataUsage(found->second))
|
| + if (DecrementBlobDataUsage(found->second.get()))
|
| memory_usage_ -= found->second->GetMemoryUsage();
|
| map->erase(found);
|
| return true;
|
| @@ -229,8 +229,8 @@ void BlobStorageController::AppendFileItem(
|
| // It may be a temporary file that should be deleted when no longer needed.
|
| scoped_refptr<ShareableFileReference> shareable_file =
|
| ShareableFileReference::Get(file_path);
|
| - if (shareable_file)
|
| - target_blob_data->AttachShareableFileReference(shareable_file);
|
| + if (shareable_file.get())
|
| + target_blob_data->AttachShareableFileReference(shareable_file.get());
|
| }
|
|
|
| void BlobStorageController::AppendFileSystemFileItem(
|
|
|