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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/read_directory.cc

Issue 1870793002: Convert //chrome/browser/chromeos from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc b/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
index 3cad4e2d759c3d7abf8eb9bfb7273ce94032ef90..92ab0673ee6caa82a2012fe61e1ad30ede8a3662 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/read_directory.cc
@@ -19,7 +19,7 @@ namespace operations {
namespace {
// Convert |input| into |output|. If parsing fails, then returns false.
-bool ConvertRequestValueToEntryList(scoped_ptr<RequestValue> value,
+bool ConvertRequestValueToEntryList(std::unique_ptr<RequestValue> value,
storage::AsyncFileUtil::EntryList* output) {
using extensions::api::file_system_provider::EntryMetadata;
using extensions::api::file_system_provider_internal::
@@ -85,7 +85,7 @@ bool ReadDirectory::Execute(int request_id) {
}
void ReadDirectory::OnSuccess(int /* request_id */,
- scoped_ptr<RequestValue> result,
+ std::unique_ptr<RequestValue> result,
bool has_more) {
storage::AsyncFileUtil::EntryList entry_list;
const bool convert_result =
@@ -104,7 +104,7 @@ void ReadDirectory::OnSuccess(int /* request_id */,
}
void ReadDirectory::OnError(int /* request_id */,
- scoped_ptr<RequestValue> /* result */,
+ std::unique_ptr<RequestValue> /* result */,
base::File::Error error) {
callback_.Run(
error, storage::AsyncFileUtil::EntryList(), false /* has_more */);

Powered by Google App Engine
This is Rietveld 408576698