Index: components/sync/engine_impl/cycle/data_type_tracker.cc |
diff --git a/components/sync/engine_impl/cycle/data_type_tracker.cc b/components/sync/engine_impl/cycle/data_type_tracker.cc |
index 7040d4fe5baf5b152b77a44fb33833c73f83b87e..4a4634919f84f21ea73d1f483ebf5dafabb7d9d2 100644 |
--- a/components/sync/engine_impl/cycle/data_type_tracker.cc |
+++ b/components/sync/engine_impl/cycle/data_type_tracker.cc |
@@ -70,7 +70,7 @@ void DataTypeTracker::RecordRemoteInvalidation( |
// Insert before the existing and get iterator to inserted. |
ScopedVector<InvalidationInterface>::iterator it2 = |
- pending_invalidations_.insert(it, incoming.release()); |
+ pending_invalidations_.insert(it, std::move(incoming)); |
// Increment that iterator to the old one, then acknowledge and remove it. |
++it2; |
@@ -79,7 +79,7 @@ void DataTypeTracker::RecordRemoteInvalidation( |
} else { |
// The incoming has a version not in the pending_invalidations_ list. |
// Add it to the list at the proper position. |
- pending_invalidations_.insert(it, incoming.release()); |
+ pending_invalidations_.insert(it, std::move(incoming)); |
} |
// The incoming invalidation may have caused us to exceed our buffer size. |