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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/get_actions.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/get_actions.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc b/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc
index aa16327e917c55bf30a25dbeba5da742642d9f4f..857b43718ce842c4bef93dbf615108c2d7389330 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/get_actions.cc
@@ -17,7 +17,7 @@ namespace operations {
namespace {
// Convert the request |value| into a list of actions.
-Actions ConvertRequestValueToActions(scoped_ptr<RequestValue> value) {
+Actions ConvertRequestValueToActions(std::unique_ptr<RequestValue> value) {
using extensions::api::file_system_provider_internal::
GetActionsRequestedSuccess::Params;
@@ -67,14 +67,14 @@ bool GetActions::Execute(int request_id) {
}
void GetActions::OnSuccess(int /* request_id */,
- scoped_ptr<RequestValue> result,
+ std::unique_ptr<RequestValue> result,
bool has_more) {
callback_.Run(ConvertRequestValueToActions(std::move(result)),
base::File::FILE_OK);
}
void GetActions::OnError(int /* request_id */,
- scoped_ptr<RequestValue> /* result */,
+ std::unique_ptr<RequestValue> /* result */,
base::File::Error error) {
callback_.Run(Actions(), error);
}

Powered by Google App Engine
This is Rietveld 408576698