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

Unified Diff: sync/internal_api/public/attachments/on_disk_attachment_store.h

Issue 1866243002: Convert //sync from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix conflicts 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: sync/internal_api/public/attachments/on_disk_attachment_store.h
diff --git a/sync/internal_api/public/attachments/on_disk_attachment_store.h b/sync/internal_api/public/attachments/on_disk_attachment_store.h
index 4e9fe8d39ea954dcc0712e52f06f955409e86f08..b1a5af81e3a44ba8ee3b5363786498c3b0eedbd7 100644
--- a/sync/internal_api/public/attachments/on_disk_attachment_store.h
+++ b/sync/internal_api/public/attachments/on_disk_attachment_store.h
@@ -71,7 +71,7 @@ class SYNC_EXPORT OnDiskAttachmentStore : public AttachmentStoreBackend,
// result is UNSPECIFIED_ERROR.
AttachmentStore::Result OpenOrCreate(const base::FilePath& path);
// Reads single attachment from store. Returns nullptr in case of errors.
- scoped_ptr<Attachment> ReadSingleAttachment(
+ std::unique_ptr<Attachment> ReadSingleAttachment(
const AttachmentId& attachment_id,
AttachmentStore::Component component);
// Writes single attachment to store. Returns false in case of errors.
@@ -97,7 +97,7 @@ class SYNC_EXPORT OnDiskAttachmentStore : public AttachmentStoreBackend,
const attachment_store_pb::RecordMetadata& record_metadata);
const base::FilePath path_;
- scoped_ptr<leveldb::DB> db_;
+ std::unique_ptr<leveldb::DB> db_;
DISALLOW_COPY_AND_ASSIGN(OnDiskAttachmentStore);
};
« no previous file with comments | « sync/internal_api/public/attachments/attachment_uploader_impl.h ('k') | sync/internal_api/public/attachments/task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698