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

Unified Diff: sync/sessions/nudge_tracker.cc

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/nudge_tracker.cc
diff --git a/sync/sessions/nudge_tracker.cc b/sync/sessions/nudge_tracker.cc
index e3f23892e16fd25536e088daf57f6ec0bbea3ffa..1c098a71ed99652a88ace600431e147bc33cdd3c 100644
--- a/sync/sessions/nudge_tracker.cc
+++ b/sync/sessions/nudge_tracker.cc
@@ -8,6 +8,7 @@
#include <utility>
+#include "base/memory/ptr_util.h"
#include "sync/internal_api/public/engine/polling_constants.h"
#include "sync/protocol/sync.pb.h"
@@ -64,7 +65,7 @@ NudgeTracker::NudgeTracker()
for (ModelTypeSet::Iterator it = protocol_types.First(); it.Good();
it.Inc()) {
type_trackers_.insert(
- std::make_pair(it.Get(), make_scoped_ptr(new DataTypeTracker())));
+ std::make_pair(it.Get(), base::WrapUnique(new DataTypeTracker())));
}
}
@@ -158,7 +159,7 @@ base::TimeDelta NudgeTracker::RecordLocalRefreshRequest(ModelTypeSet types) {
base::TimeDelta NudgeTracker::RecordRemoteInvalidation(
syncer::ModelType type,
- scoped_ptr<InvalidationInterface> invalidation) {
+ std::unique_ptr<InvalidationInterface> invalidation) {
// Forward the invalidations to the proper recipient.
TypeTrackerMap::const_iterator tracker_it = type_trackers_.find(type);
DCHECK(tracker_it != type_trackers_.end());

Powered by Google App Engine
This is Rietveld 408576698