Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(404)

Unified Diff: webkit/browser/blob/blob_storage_controller.cc

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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(
« no previous file with comments | « webkit/browser/blob/blob_storage_context_unittest.cc ('k') | webkit/browser/blob/blob_storage_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698