Index: net/disk_cache/simple/simple_backend_impl.cc |
diff --git a/net/disk_cache/simple/simple_backend_impl.cc b/net/disk_cache/simple/simple_backend_impl.cc |
index 06176379a5b3d4bc0eebff201c12203d239d3611..c8d9edea9e794ca321706b9e80a4953d66e10611 100644 |
--- a/net/disk_cache/simple/simple_backend_impl.cc |
+++ b/net/disk_cache/simple/simple_backend_impl.cc |
@@ -41,7 +41,7 @@ SimpleBackendImpl::SimpleBackendImpl( |
const FilePath& path, |
int max_bytes, |
net::CacheType type, |
- const scoped_refptr<base::TaskRunner>& cache_thread, |
+ base::TaskRunner* cache_thread, |
net::NetLog* net_log) |
: path_(path), |
index_(new SimpleIndex(cache_thread, |
@@ -78,18 +78,19 @@ int32 SimpleBackendImpl::GetEntryCount() const { |
int SimpleBackendImpl::OpenEntry(const std::string& key, |
Entry** entry, |
const CompletionCallback& callback) { |
- return SimpleEntryImpl::OpenEntry(index_, path_, key, entry, callback); |
+ return SimpleEntryImpl::OpenEntry(index_.get(), path_, key, entry, callback); |
} |
int SimpleBackendImpl::CreateEntry(const std::string& key, |
Entry** entry, |
const CompletionCallback& callback) { |
- return SimpleEntryImpl::CreateEntry(index_, path_, key, entry, callback); |
+ return SimpleEntryImpl::CreateEntry(index_.get(), path_, key, entry, |
+ callback); |
} |
int SimpleBackendImpl::DoomEntry(const std::string& key, |
const net::CompletionCallback& callback) { |
- return SimpleEntryImpl::DoomEntry(index_, path_, key, callback); |
+ return SimpleEntryImpl::DoomEntry(index_.get(), path_, key, callback); |
} |
int SimpleBackendImpl::DoomAllEntries(const CompletionCallback& callback) { |