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

Unified Diff: chrome/browser/chromeos/drive/fileapi/fileapi_worker.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/drive/fileapi/fileapi_worker.cc
diff --git a/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc b/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
index c2ae8c6582a57af9a5d7a64987a0d0ba2632faaa..b62964ffd655f87f35c74d6f7c95a52a0e6246be 100644
--- a/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
+++ b/chrome/browser/chromeos/drive/fileapi/fileapi_worker.cc
@@ -57,7 +57,7 @@ void RunStatusCallbackByFileError(const StatusCallback& callback,
// Runs |callback| with arguments converted from |error| and |entry|.
void RunGetFileInfoCallback(const GetFileInfoCallback& callback,
FileError error,
- scoped_ptr<ResourceEntry> entry) {
+ std::unique_ptr<ResourceEntry> entry) {
if (error != FILE_ERROR_OK) {
callback.Run(FileErrorToBaseFileError(error), base::File::Info());
return;
@@ -72,7 +72,7 @@ void RunGetFileInfoCallback(const GetFileInfoCallback& callback,
// Runs |callback| with entries.
void RunReadDirectoryCallbackWithEntries(
const ReadDirectoryCallback& callback,
- scoped_ptr<ResourceEntryVector> resource_entries) {
+ std::unique_ptr<ResourceEntryVector> resource_entries) {
DCHECK(resource_entries);
std::vector<storage::DirectoryEntry> entries;
@@ -103,7 +103,7 @@ void RunReadDirectoryCallbackOnCompletion(const ReadDirectoryCallback& callback,
void RunCreateSnapshotFileCallback(const CreateSnapshotFileCallback& callback,
FileError error,
const base::FilePath& local_path,
- scoped_ptr<ResourceEntry> entry) {
+ std::unique_ptr<ResourceEntry> entry) {
if (error != FILE_ERROR_OK) {
callback.Run(FileErrorToBaseFileError(error),
base::File::Info(),

Powered by Google App Engine
This is Rietveld 408576698