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

Unified Diff: base/files/file_proxy.cc

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after r384946 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 | « base/files/file_path_watcher_unittest.cc ('k') | base/files/file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_proxy.cc
diff --git a/base/files/file_proxy.cc b/base/files/file_proxy.cc
index f157d4d4caa170056203bfebea2cd66e289a6a79..829f7005d6f569737145ca1bd4ad2f79af441eac 100644
--- a/base/files/file_proxy.cc
+++ b/base/files/file_proxy.cc
@@ -192,7 +192,7 @@ class ReadHelper : public FileHelper {
}
private:
- scoped_ptr<char[]> buffer_;
+ std::unique_ptr<char[]> buffer_;
int bytes_to_read_;
int bytes_read_;
DISALLOW_COPY_AND_ASSIGN(ReadHelper);
@@ -222,7 +222,7 @@ class WriteHelper : public FileHelper {
}
private:
- scoped_ptr<char[]> buffer_;
+ std::unique_ptr<char[]> buffer_;
int bytes_to_write_;
int bytes_written_;
DISALLOW_COPY_AND_ASSIGN(WriteHelper);
« no previous file with comments | « base/files/file_path_watcher_unittest.cc ('k') | base/files/file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698