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

Unified Diff: chrome/browser/chromeos/file_system_provider/operations/write_file.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/write_file.cc
diff --git a/chrome/browser/chromeos/file_system_provider/operations/write_file.cc b/chrome/browser/chromeos/file_system_provider/operations/write_file.cc
index a1478c6fc045c89c3151dc2102358949d40bda57..2ccbc2f4a49c00b2a92a9bbd7a05351c0e5a9a92 100644
--- a/chrome/browser/chromeos/file_system_provider/operations/write_file.cc
+++ b/chrome/browser/chromeos/file_system_provider/operations/write_file.cc
@@ -48,12 +48,12 @@ bool WriteFile::Execute(int request_id) {
// Set the data directly on base::Value() to avoid an extra string copy.
DCHECK(buffer_.get());
- scoped_ptr<base::DictionaryValue> options_as_value = options.ToValue();
+ std::unique_ptr<base::DictionaryValue> options_as_value = options.ToValue();
options_as_value->Set(
"data",
base::BinaryValue::CreateWithCopiedBuffer(buffer_->data(), length_));
- scoped_ptr<base::ListValue> event_args(new base::ListValue);
+ std::unique_ptr<base::ListValue> event_args(new base::ListValue);
event_args->Append(options_as_value.release());
return SendEvent(
@@ -64,14 +64,14 @@ bool WriteFile::Execute(int request_id) {
}
void WriteFile::OnSuccess(int /* request_id */,
- scoped_ptr<RequestValue> /* result */,
+ std::unique_ptr<RequestValue> /* result */,
bool /* has_more */) {
TRACE_EVENT0("file_system_provider", "WriteFile::OnSuccess");
callback_.Run(base::File::FILE_OK);
}
void WriteFile::OnError(int /* request_id */,
- scoped_ptr<RequestValue> /* result */,
+ std::unique_ptr<RequestValue> /* result */,
base::File::Error error) {
TRACE_EVENT0("file_system_provider", "WriteFile::OnError");
callback_.Run(error);

Powered by Google App Engine
This is Rietveld 408576698