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

Unified Diff: sync/api/fake_syncable_service.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: 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/api/fake_syncable_service.h
diff --git a/sync/api/fake_syncable_service.h b/sync/api/fake_syncable_service.h
index 4fd0c5573fd3238999aec7d84b306d4571eaa6a1..3edeb61d92267e1b519c714af9dced2282edbc48 100644
--- a/sync/api/fake_syncable_service.h
+++ b/sync/api/fake_syncable_service.h
@@ -23,7 +23,7 @@ class FakeSyncableService : public SyncableService {
void set_process_sync_changes_error(const SyncError& error);
// Setter for AttachmentStore.
- void set_attachment_store(scoped_ptr<AttachmentStore> attachment_store);
+ void set_attachment_store(std::unique_ptr<AttachmentStore> attachment_store);
// AttachmentService should be set when this syncable service is connected,
// just before MergeDataAndStartSyncing. NULL is returned by default.
@@ -37,24 +37,24 @@ class FakeSyncableService : public SyncableService {
SyncMergeResult MergeDataAndStartSyncing(
ModelType type,
const SyncDataList& initial_sync_data,
- scoped_ptr<SyncChangeProcessor> sync_processor,
- scoped_ptr<SyncErrorFactory> sync_error_factory) override;
+ std::unique_ptr<SyncChangeProcessor> sync_processor,
+ std::unique_ptr<SyncErrorFactory> sync_error_factory) override;
void StopSyncing(ModelType type) override;
SyncDataList GetAllSyncData(ModelType type) const override;
SyncError ProcessSyncChanges(const tracked_objects::Location& from_here,
const SyncChangeList& change_list) override;
- scoped_ptr<AttachmentStoreForSync> GetAttachmentStoreForSync() override;
+ std::unique_ptr<AttachmentStoreForSync> GetAttachmentStoreForSync() override;
void SetAttachmentService(
- scoped_ptr<AttachmentService> attachment_service) override;
+ std::unique_ptr<AttachmentService> attachment_service) override;
private:
- scoped_ptr<SyncChangeProcessor> sync_processor_;
+ std::unique_ptr<SyncChangeProcessor> sync_processor_;
SyncError merge_data_and_start_syncing_error_;
SyncError process_sync_changes_error_;
bool syncing_;
ModelType type_;
- scoped_ptr<AttachmentStore> attachment_store_;
- scoped_ptr<AttachmentService> attachment_service_;
+ std::unique_ptr<AttachmentStore> attachment_store_;
+ std::unique_ptr<AttachmentService> attachment_service_;
};
} // namespace syncer
« no previous file with comments | « sync/api/data_batch.h ('k') | sync/api/fake_syncable_service.cc » ('j') | sync/api/sync_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698