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

Unified Diff: chrome/browser/chromeos/file_system_provider/provided_file_system.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/file_system_provider/provided_file_system.cc
diff --git a/chrome/browser/chromeos/file_system_provider/provided_file_system.cc b/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
index c0b5516f3e0580986004863dc2d8ac01f4e63195..db45db7dcd302521e0a136eaca49a4c372f7257c 100644
--- a/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
+++ b/chrome/browser/chromeos/file_system_provider/provided_file_system.cc
@@ -516,9 +516,9 @@ void ProvidedFileSystem::Notify(
watcher_queue_.Enqueue(
token, base::Bind(&ProvidedFileSystem::NotifyInQueue,
base::Unretained(this), // Outlived by the queue.
- base::Passed(base::WrapUnique(new NotifyInQueueArgs(
+ base::Passed(base::MakeUnique<NotifyInQueueArgs>(
token, entry_path, recursive, change_type,
- std::move(changes), tag, callback)))));
+ std::move(changes), tag, callback))));
}
void ProvidedFileSystem::Configure(
@@ -556,7 +556,7 @@ void ProvidedFileSystem::OnAbortCompleted(int operation_request_id,
return;
}
request_manager_->RejectRequest(operation_request_id,
- base::WrapUnique(new RequestValue()),
+ base::MakeUnique<RequestValue>(),
base::File::FILE_ERROR_ABORT);
}

Powered by Google App Engine
This is Rietveld 408576698