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

Unified Diff: chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.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/fileapi/mtp_file_system_backend_delegate.cc
diff --git a/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc b/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc
index ff9887c5227b8d035a43fab77cda9d9121feb976..c7795dcdb433ac829e4b0a973b413a64c8947707 100644
--- a/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc
+++ b/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.cc
@@ -29,7 +29,7 @@ storage::AsyncFileUtil* MTPFileSystemBackendDelegate::GetAsyncFileUtil(
return device_media_async_file_util_.get();
}
-scoped_ptr<storage::FileStreamReader>
+std::unique_ptr<storage::FileStreamReader>
MTPFileSystemBackendDelegate::CreateFileStreamReader(
const storage::FileSystemURL& url,
int64_t offset,
@@ -42,7 +42,7 @@ MTPFileSystemBackendDelegate::CreateFileStreamReader(
url, offset, expected_modification_time, context);
}
-scoped_ptr<storage::FileStreamWriter>
+std::unique_ptr<storage::FileStreamWriter>
MTPFileSystemBackendDelegate::CreateFileStreamWriter(
const storage::FileSystemURL& url,
int64_t offset,
@@ -50,7 +50,7 @@ MTPFileSystemBackendDelegate::CreateFileStreamWriter(
DCHECK_EQ(storage::kFileSystemTypeDeviceMediaAsFileStorage, url.type());
// TODO(kinaba): support writing.
- return scoped_ptr<storage::FileStreamWriter>();
+ return std::unique_ptr<storage::FileStreamWriter>();
}
storage::WatcherManager* MTPFileSystemBackendDelegate::GetWatcherManager(

Powered by Google App Engine
This is Rietveld 408576698