summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/disk_cache/entry_impl.cc2
-rw-r--r--net/disk_cache/entry_impl.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index d2a4b0f..b25aad3 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -531,7 +531,7 @@ bool EntryImpl::MoveToLocalBuffer(int index) {
Addr address(entry_.Data()->data_addr[index]);
DCHECK(!user_buffers_[index].get());
DCHECK(address.is_initialized());
- scoped_ptr<char> buffer(new char[kMaxBlockSize]);
+ scoped_array<char> buffer(new char[kMaxBlockSize]);
File* file = GetBackingFile(address, index);
size_t len = entry_.Data()->data_size[index];
diff --git a/net/disk_cache/entry_impl.h b/net/disk_cache/entry_impl.h
index 8000f37..c3e2eed 100644
--- a/net/disk_cache/entry_impl.h
+++ b/net/disk_cache/entry_impl.h
@@ -155,7 +155,7 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> {
CacheEntryBlock entry_; // Key related information for this entry.
CacheRankingsBlock node_; // Rankings related information for this entry.
BackendImpl* backend_; // Back pointer to the cache.
- scoped_ptr<char> user_buffers_[2]; // Store user data.
+ scoped_array<char> user_buffers_[2]; // Store user data.
scoped_refptr<File> files_[3]; // Files to store external user data and key.
int unreported_size_[2]; // Bytes not reported yet to the backend.
bool doomed_; // True if this entry was removed from the cache.