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

Unified Diff: net/disk_cache/blockfile/mapped_file_win.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/mapped_file_posix.cc ('k') | net/disk_cache/blockfile/rankings.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/mapped_file_win.cc
diff --git a/net/disk_cache/blockfile/mapped_file_win.cc b/net/disk_cache/blockfile/mapped_file_win.cc
index d725238e32eba567ba530dd9c8eec96a4c2f2d24..9a128a36d0e6af66af392d758c0861a41b2a4f0e 100644
--- a/net/disk_cache/blockfile/mapped_file_win.cc
+++ b/net/disk_cache/blockfile/mapped_file_win.cc
@@ -4,9 +4,10 @@
#include "net/disk_cache/blockfile/mapped_file.h"
+#include <memory>
+
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "net/disk_cache/disk_cache.h"
namespace disk_cache {
@@ -29,7 +30,7 @@ void* MappedFile::Init(const base::FilePath& name, size_t size) {
// Make sure we detect hardware failures reading the headers.
size_t temp_len = size ? size : 4096;
- scoped_ptr<char[]> temp(new char[temp_len]);
+ std::unique_ptr<char[]> temp(new char[temp_len]);
if (!Read(temp.get(), temp_len, 0))
return NULL;
« no previous file with comments | « net/disk_cache/blockfile/mapped_file_posix.cc ('k') | net/disk_cache/blockfile/rankings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698