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

Unified Diff: net/disk_cache/cache_creator.cc

Issue 1894733002: Change scoped_ptr to std::unique_ptr in //net/disk_cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « net/disk_cache/blockfile/stats_unittest.cc ('k') | net/disk_cache/disk_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_creator.cc
diff --git a/net/disk_cache/cache_creator.cc b/net/disk_cache/cache_creator.cc
index 54338c1fb08f1512f3a8cc26b7782aa8865a1579..5245fe83896dd1956cc1929ee5480baf8c53d3f6 100644
--- a/net/disk_cache/cache_creator.cc
+++ b/net/disk_cache/cache_creator.cc
@@ -32,7 +32,7 @@ class CacheCreator {
uint32_t flags,
const scoped_refptr<base::SingleThreadTaskRunner>& thread,
net::NetLog* net_log,
- scoped_ptr<disk_cache::Backend>* backend,
+ std::unique_ptr<disk_cache::Backend>* backend,
const net::CompletionCallback& callback);
// Creates the backend.
@@ -53,9 +53,9 @@ class CacheCreator {
net::BackendType backend_type_;
uint32_t flags_;
scoped_refptr<base::SingleThreadTaskRunner> thread_;
- scoped_ptr<disk_cache::Backend>* backend_;
+ std::unique_ptr<disk_cache::Backend>* backend_;
net::CompletionCallback callback_;
- scoped_ptr<disk_cache::Backend> created_cache_;
+ std::unique_ptr<disk_cache::Backend> created_cache_;
net::NetLog* net_log_;
DISALLOW_COPY_AND_ASSIGN(CacheCreator);
@@ -70,7 +70,7 @@ CacheCreator::CacheCreator(
uint32_t flags,
const scoped_refptr<base::SingleThreadTaskRunner>& thread,
net::NetLog* net_log,
- scoped_ptr<disk_cache::Backend>* backend,
+ std::unique_ptr<disk_cache::Backend>* backend,
const net::CompletionCallback& callback)
: path_(path),
force_(force),
@@ -164,7 +164,7 @@ int CreateCacheBackend(
bool force,
const scoped_refptr<base::SingleThreadTaskRunner>& thread,
net::NetLog* net_log,
- scoped_ptr<Backend>* backend,
+ std::unique_ptr<Backend>* backend,
const net::CompletionCallback& callback) {
DCHECK(!callback.is_null());
if (type == net::MEMORY_CACHE) {
« no previous file with comments | « net/disk_cache/blockfile/stats_unittest.cc ('k') | net/disk_cache/disk_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698