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

Unified Diff: sync/sessions/model_type_registry.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/sessions/model_type_registry.h
diff --git a/sync/sessions/model_type_registry.h b/sync/sessions/model_type_registry.h
index 576535a894d773304b8240dab21af0270fea292d..722164c9415709e919ab2cd43e2d7244b206a571 100644
--- a/sync/sessions/model_type_registry.h
+++ b/sync/sessions/model_type_registry.h
@@ -6,11 +6,11 @@
#define SYNC_SESSIONS_MODEL_TYPE_REGISTRY_H_
#include <map>
+#include <memory>
#include <string>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "sync/base/sync_export.h"
@@ -62,9 +62,9 @@ class SYNC_EXPORT ModelTypeRegistry : public syncer_v2::SyncContext,
// and its task_runner to the newly created worker.
//
// Expects that the proxy's ModelType is not currently enabled.
- void ConnectSyncTypeToWorker(
- syncer::ModelType type,
- scoped_ptr<syncer_v2::ActivationContext> activation_context) override;
+ void ConnectSyncTypeToWorker(syncer::ModelType type,
+ std::unique_ptr<syncer_v2::ActivationContext>
+ activation_context) override;
// Disables the syncing of an off-thread type.
//
@@ -137,7 +137,7 @@ class SYNC_EXPORT ModelTypeRegistry : public syncer_v2::SyncContext,
syncable::Directory* directory_;
// A copy of the directory's most recent cryptographer.
- scoped_ptr<Cryptographer> cryptographer_;
+ std::unique_ptr<Cryptographer> cryptographer_;
// The set of encrypted types.
ModelTypeSet encrypted_types_;

Powered by Google App Engine
This is Rietveld 408576698