Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Unified Diff: net/disk_cache/simple/simple_synchronous_entry.cc

Issue 1894733002: Change scoped_ptr to std::unique_ptr in //net/disk_cache. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/simple/simple_synchronous_entry.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_synchronous_entry.cc
diff --git a/net/disk_cache/simple/simple_synchronous_entry.cc b/net/disk_cache/simple/simple_synchronous_entry.cc
index 220f6a8fea89f5a9623f38d146b745afc98622f0..d68e426d37cf0ab722c17f2630c43c1d7277b539 100644
--- a/net/disk_cache/simple/simple_synchronous_entry.cc
+++ b/net/disk_cache/simple/simple_synchronous_entry.cc
@@ -640,7 +640,7 @@ void SimpleSynchronousEntry::CheckEOFRecord(int index,
void SimpleSynchronousEntry::Close(
const SimpleEntryStat& entry_stat,
- scoped_ptr<std::vector<CRCRecord> > crc32s_to_write,
+ std::unique_ptr<std::vector<CRCRecord>> crc32s_to_write,
net::GrowableIOBuffer* stream_0_data) {
DCHECK(stream_0_data);
// Write stream 0 data.
@@ -955,7 +955,7 @@ int SimpleSynchronousEntry::InitializeForOpen(
return net::ERR_FAILED;
}
- scoped_ptr<char[]> key(new char[header.key_length]);
+ std::unique_ptr<char[]> key(new char[header.key_length]);
int key_read_result = files_[i].Read(sizeof(header), key.get(),
header.key_length);
if (key_read_result != base::checked_cast<int>(header.key_length)) {
« no previous file with comments | « net/disk_cache/simple/simple_synchronous_entry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698