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

Unified Diff: sync/sessions/data_type_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/data_type_tracker.h
diff --git a/sync/sessions/data_type_tracker.h b/sync/sessions/data_type_tracker.h
index 80fb164027f38819d2b4d66d41a819cbc26d8f7a..e2bf27cbb782324234b71d120bec7f6b0caf6f03 100644
--- a/sync/sessions/data_type_tracker.h
+++ b/sync/sessions/data_type_tracker.h
@@ -7,10 +7,10 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/time/time.h"
#include "sync/internal_api/public/base/invalidation_interface.h"
@@ -40,7 +40,8 @@ class DataTypeTracker {
void RecordLocalRefreshRequest();
// Tracks that we received invalidation notifications for this type.
- void RecordRemoteInvalidation(scoped_ptr<InvalidationInterface> incoming);
+ void RecordRemoteInvalidation(
+ std::unique_ptr<InvalidationInterface> incoming);
// Takes note that initial sync is pending for this type.
void RecordInitialSyncRequired();
@@ -139,7 +140,7 @@ class DataTypeTracker {
base::TimeTicks unthrottle_time_;
// A helper to keep track invalidations we dropped due to overflow.
- scoped_ptr<InvalidationInterface> last_dropped_invalidation_;
+ std::unique_ptr<InvalidationInterface> last_dropped_invalidation_;
// The amount of time to delay a sync cycle by when a local change for this
// type occurs.

Powered by Google App Engine
This is Rietveld 408576698