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

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

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.cc
diff --git a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
index febf9f193be1d67fb598e6a69ad7f769320f4574..d2501511f41ce66f97449bf07e84450b1538855c 100644
--- a/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
+++ b/chrome/browser/sync_file_system/local/sync_file_system_backend.cc
@@ -159,7 +159,7 @@ storage::FileSystemOperation* SyncFileSystemBackend::CreateFileSystemOperation(
DCHECK(context);
DCHECK(error_code);
- scoped_ptr<storage::FileSystemOperationContext> operation_context =
+ std::unique_ptr<storage::FileSystemOperationContext> operation_context =
GetDelegate()->CreateFileSystemOperationContext(url, context, error_code);
if (!operation_context)
return nullptr;
@@ -183,7 +183,7 @@ bool SyncFileSystemBackend::HasInplaceCopyImplementation(
return false;
}
-scoped_ptr<storage::FileStreamReader>
+std::unique_ptr<storage::FileStreamReader>
SyncFileSystemBackend::CreateFileStreamReader(
const storage::FileSystemURL& url,
int64_t offset,
@@ -195,7 +195,7 @@ SyncFileSystemBackend::CreateFileStreamReader(
url, offset, expected_modification_time, context);
}
-scoped_ptr<storage::FileStreamWriter>
+std::unique_ptr<storage::FileStreamWriter>
SyncFileSystemBackend::CreateFileStreamWriter(
const storage::FileSystemURL& url,
int64_t offset,
@@ -234,7 +234,7 @@ SyncFileSystemBackend* SyncFileSystemBackend::GetBackend(
}
void SyncFileSystemBackend::SetLocalFileChangeTracker(
- scoped_ptr<LocalFileChangeTracker> tracker) {
+ std::unique_ptr<LocalFileChangeTracker> tracker) {
DCHECK(!change_tracker_);
DCHECK(tracker);
change_tracker_ = std::move(tracker);

Powered by Google App Engine
This is Rietveld 408576698