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

Unified Diff: chrome/browser/media_galleries/linux/mtp_read_file_worker.cc

Issue 2334613003: Re-write many calls to WrapUnique() with MakeUnique() (Closed)
Patch Set: Changes from review by sky Created 4 years, 3 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/media_galleries/linux/mtp_read_file_worker.cc
diff --git a/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc b/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
index aba6690c0cfe73e5b38065d13d4953d0b2f4be7c..c5a081d86b127070e58eb261bc605c03df20dcd5 100644
--- a/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
+++ b/chrome/browser/media_galleries/linux/mtp_read_file_worker.cc
@@ -51,8 +51,8 @@ void MTPReadFileWorker::WriteDataIntoSnapshotFile(
const SnapshotRequestInfo& request_info,
const base::File::Info& snapshot_file_info) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
- ReadDataChunkFromDeviceFile(base::WrapUnique(
- new SnapshotFileDetails(request_info, snapshot_file_info)));
+ ReadDataChunkFromDeviceFile(
+ base::MakeUnique<SnapshotFileDetails>(request_info, snapshot_file_info));
}
void MTPReadFileWorker::ReadDataChunkFromDeviceFile(

Powered by Google App Engine
This is Rietveld 408576698