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

Unified Diff: content/browser/cache_storage/cache_storage_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_cache_unittest.cc
diff --git a/content/browser/cache_storage/cache_storage_cache_unittest.cc b/content/browser/cache_storage/cache_storage_cache_unittest.cc
index f250b236634e13beb41cd36354a832392afff198..88363a7c4d910dc55512b8ad02fd2a51723b6de4 100644
--- a/content/browser/cache_storage/cache_storage_cache_unittest.cc
+++ b/content/browser/cache_storage/cache_storage_cache_unittest.cc
@@ -7,6 +7,7 @@
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/strings/string_split.h"
#include "base/thread_task_runner_handle.h"
@@ -38,12 +39,12 @@ const char kTestData[] = "Hello World";
// 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, NULL, base::ThreadTaskRunnerHandle::Get().get());
+ return make_scoped_ptr(new storage::BlobProtocolHandler(
+ blob_storage_context, NULL, base::ThreadTaskRunnerHandle::Get().get()));
}
// A disk_cache::Backend wrapper that can delay operations.

Powered by Google App Engine
This is Rietveld 408576698