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

Unified Diff: sync/internal_api/public/internal_components_factory.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/internal_api/public/internal_components_factory.h
diff --git a/sync/internal_api/public/internal_components_factory.h b/sync/internal_api/public/internal_components_factory.h
index fee9becdf97b2cc654be08de32c3af541ef625db..461c2ece3ee1db71de93f832e0febe1c8e7af73a 100644
--- a/sync/internal_api/public/internal_components_factory.h
+++ b/sync/internal_api/public/internal_components_factory.h
@@ -86,12 +86,12 @@ class SYNC_EXPORT InternalComponentsFactory {
virtual ~InternalComponentsFactory() {}
- virtual scoped_ptr<SyncScheduler> BuildScheduler(
+ virtual std::unique_ptr<SyncScheduler> BuildScheduler(
const std::string& name,
sessions::SyncSessionContext* context,
CancelationSignal* cancelation_signal) = 0;
- virtual scoped_ptr<sessions::SyncSessionContext> BuildContext(
+ virtual std::unique_ptr<sessions::SyncSessionContext> BuildContext(
ServerConnectionManager* connection_manager,
syncable::Directory* directory,
ExtensionsActivity* extensions_activity,
@@ -100,11 +100,10 @@ class SYNC_EXPORT InternalComponentsFactory {
ModelTypeRegistry* model_type_registry,
const std::string& invalidator_client_id) = 0;
- virtual scoped_ptr<syncable::DirectoryBackingStore>
- BuildDirectoryBackingStore(
- StorageOption storage,
- const std::string& dir_name,
- const base::FilePath& backing_filepath) = 0;
+ virtual std::unique_ptr<syncable::DirectoryBackingStore>
+ BuildDirectoryBackingStore(StorageOption storage,
+ const std::string& dir_name,
+ const base::FilePath& backing_filepath) = 0;
// Returns the Switches struct that this object is using as configuration, if
// the implementation is making use of one.

Powered by Google App Engine
This is Rietveld 408576698