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

Unified Diff: sync/sessions/nudge_tracker.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/nudge_tracker.h
diff --git a/sync/sessions/nudge_tracker.h b/sync/sessions/nudge_tracker.h
index eb3b7eb60be8b6ebdfef9c18e7a301ad60dc78b1..2a0581e28172d3f7f02fdffed7bc45ab04794847 100644
--- a/sync/sessions/nudge_tracker.h
+++ b/sync/sessions/nudge_tracker.h
@@ -11,10 +11,10 @@
#include <list>
#include <map>
+#include <memory>
#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "sync/base/sync_export.h"
#include "sync/internal_api/public/base/invalidation_interface.h"
@@ -68,7 +68,7 @@ class SYNC_EXPORT NudgeTracker {
// Returns the current nudge delay for a remote invalidation.
base::TimeDelta RecordRemoteInvalidation(
syncer::ModelType type,
- scoped_ptr<InvalidationInterface> invalidation);
+ std::unique_ptr<InvalidationInterface> invalidation);
// Take note that an initial sync is pending for this type.
void RecordInitialSyncRequired(syncer::ModelType type);
@@ -161,7 +161,7 @@ class SYNC_EXPORT NudgeTracker {
void SetDefaultNudgeDelay(base::TimeDelta nudge_delay);
private:
- using TypeTrackerMap = std::map<ModelType, scoped_ptr<DataTypeTracker>>;
+ using TypeTrackerMap = std::map<ModelType, std::unique_ptr<DataTypeTracker>>;
TypeTrackerMap type_trackers_;

Powered by Google App Engine
This is Rietveld 408576698