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

Unified Diff: chrome/browser/sync_file_system/local/canned_syncable_file_system.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/canned_syncable_file_system.cc
diff --git a/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc b/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
index 3c09c35a74bb0f00ab225ac76abfcf664f33eec0..d9a9e48f3d3a4e6d3fc0728638dfc39eab24c9b0 100644
--- a/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
+++ b/chrome/browser/sync_file_system/local/canned_syncable_file_system.cc
@@ -187,8 +187,8 @@ class WriteHelper {
private:
int64_t bytes_written_;
- scoped_ptr<MockBlobURLRequestContext> request_context_;
- scoped_ptr<ScopedTextBlob> blob_data_;
+ std::unique_ptr<MockBlobURLRequestContext> request_context_;
+ std::unique_ptr<ScopedTextBlob> blob_data_;
DISALLOW_COPY_AND_ASSIGN(WriteHelper);
};
@@ -474,7 +474,7 @@ File::Error CannedSyncableFileSystem::ReadDirectory(
int64_t CannedSyncableFileSystem::Write(
net::URLRequestContext* url_request_context,
const FileSystemURL& url,
- scoped_ptr<storage::BlobDataHandle> blob_data_handle) {
+ std::unique_ptr<storage::BlobDataHandle> blob_data_handle) {
return RunOnThread<int64_t>(
io_task_runner_.get(), FROM_HERE,
base::Bind(&CannedSyncableFileSystem::DoWrite, base::Unretained(this),
@@ -685,7 +685,7 @@ void CannedSyncableFileSystem::DoReadDirectory(
void CannedSyncableFileSystem::DoWrite(
net::URLRequestContext* url_request_context,
const FileSystemURL& url,
- scoped_ptr<storage::BlobDataHandle> blob_data_handle,
+ std::unique_ptr<storage::BlobDataHandle> blob_data_handle,
const WriteCallback& callback) {
EXPECT_TRUE(io_task_runner_->RunsTasksOnCurrentThread());
EXPECT_TRUE(is_filesystem_opened_);

Powered by Google App Engine
This is Rietveld 408576698