| Index: net/disk_cache/cache_creator.cc
|
| ===================================================================
|
| --- net/disk_cache/cache_creator.cc (revision 199883)
|
| +++ net/disk_cache/cache_creator.cc (working copy)
|
| @@ -84,16 +84,14 @@
|
| // appropriate.
|
| if (backend_type_ == net::CACHE_BACKEND_SIMPLE && type_ == net::DISK_CACHE) {
|
| disk_cache::SimpleBackendImpl* simple_cache =
|
| - new disk_cache::SimpleBackendImpl(path_, max_bytes_, type_, thread_,
|
| - net_log_);
|
| + new disk_cache::SimpleBackendImpl(path_, max_bytes_, type_,
|
| + thread_.get(), net_log_);
|
| created_cache_ = simple_cache;
|
| return simple_cache->Init(
|
| base::Bind(&CacheCreator::OnIOComplete, base::Unretained(this)));
|
| }
|
| - DCHECK(backend_type_ == net::CACHE_BACKEND_BLOCKFILE ||
|
| - backend_type_ == net::CACHE_BACKEND_DEFAULT);
|
| disk_cache::BackendImpl* new_cache =
|
| - new disk_cache::BackendImpl(path_, thread_, net_log_);
|
| + new disk_cache::BackendImpl(path_, thread_.get(), net_log_);
|
| created_cache_ = new_cache;
|
| new_cache->SetMaxSize(max_bytes_);
|
| new_cache->SetType(type_);
|
|
|