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

Unified Diff: chrome/browser/sync_file_system/local/sync_file_system_backend.h

Issue 1873683002: Convert //chrome/browser/sync_file_system from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/sync_file_system/local/sync_file_system_backend.h
diff --git a/chrome/browser/sync_file_system/local/sync_file_system_backend.h b/chrome/browser/sync_file_system/local/sync_file_system_backend.h
index 043f995ba22367afd6bb1e35fc1ab932ba2892c0..753fcf41c1e536707df8fd74322e3a1eb852f9b3 100644
--- a/chrome/browser/sync_file_system/local/sync_file_system_backend.h
+++ b/chrome/browser/sync_file_system/local/sync_file_system_backend.h
@@ -50,13 +50,13 @@ class SyncFileSystemBackend : public storage::FileSystemBackend {
bool SupportsStreaming(const storage::FileSystemURL& url) const override;
bool HasInplaceCopyImplementation(
storage::FileSystemType type) const 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) const override;
- scoped_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
+ std::unique_ptr<storage::FileStreamWriter> CreateFileStreamWriter(
const storage::FileSystemURL& url,
int64_t offset,
storage::FileSystemContext* context) const override;
@@ -72,7 +72,8 @@ class SyncFileSystemBackend : public storage::FileSystemBackend {
const storage::FileSystemContext* context);
LocalFileChangeTracker* change_tracker() { return change_tracker_.get(); }
- void SetLocalFileChangeTracker(scoped_ptr<LocalFileChangeTracker> tracker);
+ void SetLocalFileChangeTracker(
+ std::unique_ptr<LocalFileChangeTracker> tracker);
LocalFileSyncContext* sync_context() { return sync_context_.get(); }
void set_sync_context(LocalFileSyncContext* sync_context);
@@ -97,11 +98,11 @@ class SyncFileSystemBackend : public storage::FileSystemBackend {
// Not owned.
storage::FileSystemContext* context_;
- scoped_ptr<LocalFileChangeTracker> change_tracker_;
+ std::unique_ptr<LocalFileChangeTracker> change_tracker_;
scoped_refptr<LocalFileSyncContext> sync_context_;
// Should be accessed on the UI thread.
- scoped_ptr<ProfileHolder> profile_holder_;
+ std::unique_ptr<ProfileHolder> profile_holder_;
// A flag to skip the initialization sequence of SyncFileSystemService for
// testing.

Powered by Google App Engine
This is Rietveld 408576698