summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-30 18:20:14 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-07-30 18:20:14 +0000
commitdc4e78acfa4989da822482e8789ae6f5824cc995 (patch)
treec88a2b3efe3439936dcf4197400c995f854ad41e /net
parent377a1110d0ab5a9866bbfd3501bbe1fab82909cf (diff)
downloadchromium_src-dc4e78acfa4989da822482e8789ae6f5824cc995.zip
chromium_src-dc4e78acfa4989da822482e8789ae6f5824cc995.tar.gz
chromium_src-dc4e78acfa4989da822482e8789ae6f5824cc995.tar.bz2
Replace scoped_ptr with scoped_array.
BUG=1291138 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@125 0039d316-1c4b-4281-b951-d872f2087c98
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.