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

Unified Diff: webkit/browser/blob/blob_storage_context.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_context.cc
diff --git a/webkit/browser/blob/blob_storage_context.cc b/webkit/browser/blob/blob_storage_context.cc
index da261e61323b7f6dfebccb31d56147d41a15a956..03acc8b2bf6784c7cfb54a6bb351e69965f7685a 100644
--- a/webkit/browser/blob/blob_storage_context.cc
+++ b/webkit/browser/blob/blob_storage_context.cc
@@ -66,8 +66,8 @@ scoped_ptr<BlobDataHandle> BlobStorageContext::GetBlobDataFromUUID(
if (found->second.flags & EXCEEDED_MEMORY)
return result.Pass();
DCHECK(!(found->second.flags & BEING_BUILT));
- result.reset(new BlobDataHandle(found->second.data, this,
- base::MessageLoopProxy::current()));
+ result.reset(new BlobDataHandle(
+ found->second.data.get(), this, base::MessageLoopProxy::current()));
return result.Pass();
}
@@ -107,7 +107,7 @@ void BlobStorageContext::AppendBlobDataItem(
return;
if (found->second.flags & EXCEEDED_MEMORY)
return;
- BlobData* target_blob_data = found->second.data;
+ BlobData* target_blob_data = found->second.data.get();
DCHECK(target_blob_data);
bool exceeded_memory = false;
@@ -292,8 +292,8 @@ void BlobStorageContext::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 BlobStorageContext::AppendFileSystemFileItem(
« no previous file with comments | « webkit/appcache/view_appcache_internals_job.cc ('k') | webkit/browser/blob/blob_storage_context_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698