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

Unified Diff: chrome/browser/chromeos/fileapi/file_system_backend.cc

Issue 2257103002: 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
Index: chrome/browser/chromeos/fileapi/file_system_backend.cc
diff --git a/chrome/browser/chromeos/fileapi/file_system_backend.cc b/chrome/browser/chromeos/fileapi/file_system_backend.cc
index 1b11154c4d31dfe19a43c61ddba4553125011149..fc0e1d16791029c3a5ee3f956a7cc9406f2f92c8 100644
--- a/chrome/browser/chromeos/fileapi/file_system_backend.cc
+++ b/chrome/browser/chromeos/fileapi/file_system_backend.cc
@@ -283,8 +283,8 @@ storage::FileSystemOperation* FileSystemBackend::CreateFileSystemOperation(
// MTP file operations run on MediaTaskRunner.
return storage::FileSystemOperation::Create(
url, context,
- base::WrapUnique(new storage::FileSystemOperationContext(
- context, MediaFileSystemBackend::MediaTaskRunner().get())));
+ base::MakeUnique<storage::FileSystemOperationContext>(
+ context, MediaFileSystemBackend::MediaTaskRunner().get()));
}
DCHECK(url.type() == storage::kFileSystemTypeNativeLocal ||
@@ -293,7 +293,7 @@ storage::FileSystemOperation* FileSystemBackend::CreateFileSystemOperation(
url.type() == storage::kFileSystemTypeProvided);
return storage::FileSystemOperation::Create(
url, context,
- base::WrapUnique(new storage::FileSystemOperationContext(context)));
+ base::MakeUnique<storage::FileSystemOperationContext>(context));
}
bool FileSystemBackend::SupportsStreaming(

Powered by Google App Engine
This is Rietveld 408576698