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

Unified Diff: components/sync_driver/sync_api_component_factory_mock.cc

Issue 1907683003: Convert //components/sync_driver from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Build fix, address feedback 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
« no previous file with comments | « components/sync_driver/sync_api_component_factory_mock.h ('k') | components/sync_driver/sync_prefs.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_api_component_factory_mock.cc
diff --git a/components/sync_driver/sync_api_component_factory_mock.cc b/components/sync_driver/sync_api_component_factory_mock.cc
index 81a3c5b3a8ae7aa2b189975477bd81c2091f79d5..64f95ce9aa27a78e5d67ddd4b2ebcf9e5593fca9 100644
--- a/components/sync_driver/sync_api_component_factory_mock.cc
+++ b/components/sync_driver/sync_api_component_factory_mock.cc
@@ -36,9 +36,9 @@ SyncApiComponentFactoryMock::SyncApiComponentFactoryMock(
SyncApiComponentFactoryMock::~SyncApiComponentFactoryMock() {}
-scoped_ptr<syncer::AttachmentService>
+std::unique_ptr<syncer::AttachmentService>
SyncApiComponentFactoryMock::CreateAttachmentService(
- scoped_ptr<syncer::AttachmentStoreForSync> attachment_store,
+ std::unique_ptr<syncer::AttachmentStoreForSync> attachment_store,
const syncer::UserShare& user_share,
const std::string& store_birthday,
syncer::ModelType model_type,
@@ -52,12 +52,12 @@ SyncApiComponentFactoryMock::MakeSyncComponents() {
model_associator_.release(), change_processor_.release());
}
-scoped_ptr<sync_driver::LocalDeviceInfoProvider>
+std::unique_ptr<sync_driver::LocalDeviceInfoProvider>
SyncApiComponentFactoryMock::CreateLocalDeviceInfoProvider() {
return std::move(local_device_);
}
void SyncApiComponentFactoryMock::SetLocalDeviceInfoProvider(
- scoped_ptr<sync_driver::LocalDeviceInfoProvider> local_device) {
+ std::unique_ptr<sync_driver::LocalDeviceInfoProvider> local_device) {
local_device_ = std::move(local_device);
}
« no previous file with comments | « components/sync_driver/sync_api_component_factory_mock.h ('k') | components/sync_driver/sync_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698