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

Unified Diff: content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc

Issue 1295523006: Using scoped_ptr for URLRequestJobFactoryImpl::SetProtocolHandler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing un-modified file Created 5 years, 4 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: content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
diff --git a/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc b/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
index 99ff06727d3721a5b5348a47a89342e42cf2106a..b4e88a8c89140eeba6685c610edb1b0585f65dcd 100644
--- a/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
+++ b/content/browser/cache_storage/cache_storage_blob_to_disk_cache_unittest.cc
@@ -55,12 +55,13 @@ class NullURLRequestContextGetter : public net::URLRequestContextGetter {
// Returns a BlobProtocolHandler that uses |blob_storage_context|. Caller owns
// the memory.
-storage::BlobProtocolHandler* CreateMockBlobProtocolHandler(
+scoped_ptr<storage::BlobProtocolHandler> CreateMockBlobProtocolHandler(
storage::BlobStorageContext* blob_storage_context) {
// The FileSystemContext and thread task runner are not actually used but a
// task runner is needed to avoid a DCHECK in BlobURLRequestJob ctor.
- return new storage::BlobProtocolHandler(
- blob_storage_context, nullptr, base::ThreadTaskRunnerHandle::Get().get());
+ return make_scoped_ptr(new storage::BlobProtocolHandler(
+ blob_storage_context, nullptr,
+ base::ThreadTaskRunnerHandle::Get().get()));
}
// A CacheStorageBlobToDiskCache that can delay reading from blobs.

Powered by Google App Engine
This is Rietveld 408576698