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

Unified Diff: sync/internal_api/public/data_batch_impl.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/data_batch_impl.h
diff --git a/sync/internal_api/public/data_batch_impl.h b/sync/internal_api/public/data_batch_impl.h
index 575377fa54f6cd47f57f1638e7468cb15c7e8f43..239f8f95ac9d4071d590e3c4193efa0ddb5fc530 100644
--- a/sync/internal_api/public/data_batch_impl.h
+++ b/sync/internal_api/public/data_batch_impl.h
@@ -7,12 +7,12 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "sync/api/data_batch.h"
#include "sync/api/entity_data.h"
@@ -31,7 +31,8 @@ class SYNC_EXPORT DataBatchImpl : public DataBatch {
// Takes ownership of the data tied to a given tag used for storage. Put
// should be called at most once for any given client_tag. Data will be
// readable in the same order that they are put into the batch.
- void Put(const std::string& client_tag, scoped_ptr<EntityData> entity_data);
+ void Put(const std::string& client_tag,
+ std::unique_ptr<EntityData> entity_data);
// DataBatch implementation.
bool HasNext() const override;

Powered by Google App Engine
This is Rietveld 408576698