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

Unified Diff: chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h

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.h
diff --git a/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h b/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h
index 4d20d7a9bf478a18f9bf960ae18716541e86cf4b..4bfd32f14081eea25f222196d8fee6d985f1d65a 100644
--- a/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h
+++ b/chrome/browser/chromeos/fileapi/mtp_file_system_backend_delegate.h
@@ -7,8 +7,9 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/fileapi/file_system_backend_delegate.h"
#include "chrome/browser/chromeos/fileapi/mtp_watcher_manager.h"
@@ -40,13 +41,13 @@ class MTPFileSystemBackendDelegate : public FileSystemBackendDelegate {
// FileSystemBackendDelegate overrides.
storage::AsyncFileUtil* GetAsyncFileUtil(
storage::FileSystemType type) override;
- scoped_ptr<storage::FileStreamReader> CreateFileStreamReader(
+ std::unique_ptr<storage::FileStreamReader> CreateFileStreamReader(
const storage::FileSystemURL& url,
int64_t offset,
int64_t max_bytes_to_read,
const base::Time& expected_modification_time,
storage::FileSystemContext* context) override;
- scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
+ std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
const storage::FileSystemURL& url,
int64_t offset,
storage::FileSystemContext* context) override;
@@ -56,8 +57,8 @@ class MTPFileSystemBackendDelegate : public FileSystemBackendDelegate {
const storage::URLCallback& callback) override;
private:
- scoped_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
- scoped_ptr<MTPWatcherManager> mtp_watcher_manager_;
+ std::unique_ptr<DeviceMediaAsyncFileUtil> device_media_async_file_util_;
+ std::unique_ptr<MTPWatcherManager> mtp_watcher_manager_;
DISALLOW_COPY_AND_ASSIGN(MTPFileSystemBackendDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698