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

Unified Diff: net/disk_cache/blockfile/mapped_file.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/blockfile/index_table_v3_unittest.cc ('k') | net/disk_cache/blockfile/mapped_file_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/mapped_file.cc
diff --git a/net/disk_cache/blockfile/mapped_file.cc b/net/disk_cache/blockfile/mapped_file.cc
index d26cead89aab2064646b598e8b7b0ac5f0520c1e..571f21fed16cb1f95b34445ec1248936369ea925 100644
--- a/net/disk_cache/blockfile/mapped_file.cc
+++ b/net/disk_cache/blockfile/mapped_file.cc
@@ -5,8 +5,7 @@
#include "net/disk_cache/blockfile/mapped_file.h"
#include <algorithm>
-
-#include "base/memory/scoped_ptr.h"
+#include <memory>
namespace disk_cache {
@@ -38,7 +37,7 @@ bool MappedFile::Store(const FileBlock* block,
bool MappedFile::Preload() {
size_t file_len = GetLength();
- scoped_ptr<char[]> buf(new char[file_len]);
+ std::unique_ptr<char[]> buf(new char[file_len]);
if (!Read(buf.get(), file_len, 0))
return false;
return true;
« no previous file with comments | « net/disk_cache/blockfile/index_table_v3_unittest.cc ('k') | net/disk_cache/blockfile/mapped_file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698