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

Unified Diff: sync/internal_api/public/model_type_processor.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/model_type_processor.h
diff --git a/sync/internal_api/public/model_type_processor.h b/sync/internal_api/public/model_type_processor.h
index fee08a06c4d5a9e6057cc3a1371f2fb05f956752..e877dc5ac69688bb339919517e0fc18c76ba1ca3 100644
--- a/sync/internal_api/public/model_type_processor.h
+++ b/sync/internal_api/public/model_type_processor.h
@@ -5,7 +5,8 @@
#ifndef SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_PROCESSOR_H_
#define SYNC_INTERNAL_API_PUBLIC_MODEL_TYPE_PROCESSOR_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/non_blocking_sync_common.h"
#include "sync/protocol/data_type_state.pb.h"
@@ -23,7 +24,7 @@ class SYNC_EXPORT ModelTypeProcessor {
// the processor will send any pending and future commits via this channel.
// This can only be called multiple times if the processor is disconnected
// (via the DataTypeController) in between.
- virtual void ConnectSync(scoped_ptr<CommitQueue> commit_queue) = 0;
+ virtual void ConnectSync(std::unique_ptr<CommitQueue> commit_queue) = 0;
// Disconnect this processor from the sync engine. Change metadata will
// continue being processed and persisted, but no commits can be made until

Powered by Google App Engine
This is Rietveld 408576698