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

Unified Diff: components/sync/driver/sync_service.h

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 years, 3 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: components/sync/driver/sync_service.h
diff --git a/components/sync/driver/sync_service.h b/components/sync/driver/sync_service.h
index e74fedbf2ca458e312e8b07490ce2d3257d74c49..2f536bc46d377b14ae1a6f16ddd604527c46cd46 100644
--- a/components/sync/driver/sync_service.h
+++ b/components/sync/driver/sync_service.h
@@ -268,7 +268,7 @@ class SyncService : public DataTypeEncryptionHandler {
// enable or activate the synchronization of the data type (see
// ActivateDataType). Takes ownership of the pointer.
virtual void RegisterDataTypeController(
- DataTypeController* data_type_controller) = 0;
+ std::unique_ptr<DataTypeController> data_type_controller) = 0;
// Called to re-enable a type disabled by DisableDatatype(..). Note, this does
// not change the preferred state of a datatype, and is not persisted across
« no previous file with comments | « components/sync/driver/sync_api_component_factory_mock.cc ('k') | components/sync/driver/ui_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698