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

Unified Diff: storage/browser/fileapi/native_file_util.cc

Issue 2254183002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « storage/browser/fileapi/local_file_util.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/native_file_util.cc
diff --git a/storage/browser/fileapi/native_file_util.cc b/storage/browser/fileapi/native_file_util.cc
index aa2b60771156afa3087d5e462753fddbe31e3d2f..1d61f62210a6bfaef5a982a83193a4942f4d90c7 100644
--- a/storage/browser/fileapi/native_file_util.cc
+++ b/storage/browser/fileapi/native_file_util.cc
@@ -211,9 +211,9 @@ base::File::Error NativeFileUtil::GetFileInfo(
std::unique_ptr<FileSystemFileUtil::AbstractFileEnumerator>
NativeFileUtil::CreateFileEnumerator(const base::FilePath& root_path,
bool recursive) {
- return base::WrapUnique(new NativeFileEnumerator(
+ return base::MakeUnique<NativeFileEnumerator>(
root_path, recursive,
- base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES));
+ base::FileEnumerator::FILES | base::FileEnumerator::DIRECTORIES);
}
base::File::Error NativeFileUtil::Touch(
« no previous file with comments | « storage/browser/fileapi/local_file_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698