Index: net/disk_cache/blockfile/backend_worker_v3.cc |
diff --git a/net/disk_cache/blockfile/backend_worker_v3.cc b/net/disk_cache/blockfile/backend_worker_v3.cc |
index 897ee3c3d3933539ac1b3c4934e5cd7273de02b8..db74fbad3b40dc5be162292bf8850e31e966c3e1 100644 |
--- a/net/disk_cache/blockfile/backend_worker_v3.cc |
+++ b/net/disk_cache/blockfile/backend_worker_v3.cc |
@@ -417,7 +417,7 @@ bool BackendImpl::CheckIndex() { |
mask_ = data_->header.table_len - 1; |
// Load the table into memory with a single read. |
- scoped_ptr<char[]> buf(new char[current_size]); |
+ std::unique_ptr<char[]> buf(new char[current_size]); |
return index_->Read(buf.get(), current_size, 0); |
} |
@@ -446,7 +446,7 @@ bool BackendImpl::InitStats() { |
if (!file) |
return false; |
- scoped_ptr<char[]> data(new char[size]); |
+ std::unique_ptr<char[]> data(new char[size]); |
size_t offset = address.start_block() * address.BlockSize() + |
kBlockHeaderSize; |
if (!file->Read(data.get(), size, offset)) |