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

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: 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/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..5b5c4edfc69a9218af660c807199f6ec1f02456a 100644
--- a/sync/internal_api/public/internal_components_factory.h
+++ b/sync/internal_api/public/internal_components_factory.h
@@ -9,6 +9,7 @@
#ifndef SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_
#define SYNC_INTERNAL_API_PUBLIC_INTERNAL_COMPONENTS_FACTORY_H_
+#include <memory>
#include <string>
#include <vector>
@@ -86,12 +87,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 +101,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.
« no previous file with comments | « sync/internal_api/public/http_bridge_network_resources.h ('k') | sync/internal_api/public/internal_components_factory_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698