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

Unified Diff: sync/api/conflict_resolution.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/api/conflict_resolution.h
diff --git a/sync/api/conflict_resolution.h b/sync/api/conflict_resolution.h
index 929d3e6e4e843cd4c0aab3eb245f8f4a998c1fbe..abc98eb70c1ba98d67f288561e03ef9e3dd5ef8a 100644
--- a/sync/api/conflict_resolution.h
+++ b/sync/api/conflict_resolution.h
@@ -5,7 +5,8 @@
#ifndef SYNC_API_CONFLICT_RESOLUTION_H_
#define SYNC_API_CONFLICT_RESOLUTION_H_
-#include "base/memory/scoped_ptr.h"
+#include <memory>
+
#include "sync/api/entity_data.h"
namespace syncer_v2 {
@@ -29,7 +30,7 @@ class SYNC_EXPORT ConflictResolution {
// Convenience functions for brevity.
static ConflictResolution UseLocal();
static ConflictResolution UseRemote();
- static ConflictResolution UseNew(scoped_ptr<EntityData> data);
+ static ConflictResolution UseNew(std::unique_ptr<EntityData> data);
// Move constructor since we can't copy a scoped_ptr.
ConflictResolution(ConflictResolution&& other);
@@ -38,13 +39,13 @@ class SYNC_EXPORT ConflictResolution {
Type type() const { return type_; }
// Get the data for USE_NEW, or nullptr. Can only be called once.
- scoped_ptr<EntityData> ExtractData();
+ std::unique_ptr<EntityData> ExtractData();
private:
- ConflictResolution(Type type, scoped_ptr<EntityData> data);
+ ConflictResolution(Type type, std::unique_ptr<EntityData> data);
const Type type_;
- scoped_ptr<EntityData> data_;
+ std::unique_ptr<EntityData> data_;
DISALLOW_COPY_AND_ASSIGN(ConflictResolution);
};

Powered by Google App Engine
This is Rietveld 408576698