| Index: net/http/http_cache.cc
|
| diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
|
| index b689c9e71581a53d15f6352581a7056c1cfe53bf..6fe5a8148b72e8a3d7a83152781d640079715ae5 100644
|
| --- a/net/http/http_cache.cc
|
| +++ b/net/http/http_cache.cc
|
| @@ -76,8 +76,14 @@ int HttpCache::DefaultBackend::CreateBackend(
|
| NetLog* net_log, disk_cache::Backend** backend,
|
| const CompletionCallback& callback) {
|
| DCHECK_GE(max_bytes_, 0);
|
| - return disk_cache::CreateCacheBackend(type_, backend_type_, path_, max_bytes_,
|
| - true, thread_, net_log, backend,
|
| + return disk_cache::CreateCacheBackend(type_,
|
| + backend_type_,
|
| + path_,
|
| + max_bytes_,
|
| + true,
|
| + thread_.get(),
|
| + net_log,
|
| + backend,
|
| callback);
|
| }
|
|
|
| @@ -242,7 +248,8 @@ void HttpCache::MetadataWriter::VerifyResponse(int result) {
|
| return SelfDestroy();
|
|
|
| result = transaction_->WriteMetadata(
|
| - buf_, buf_len_,
|
| + buf_.get(),
|
| + buf_len_,
|
| base::Bind(&MetadataWriter::OnIOComplete, base::Unretained(this)));
|
| if (result != ERR_IO_PENDING)
|
| SelfDestroy();
|
|
|