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

Unified Diff: sync/test/mock_invalidation_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/test/mock_invalidation_tracker.cc
diff --git a/sync/test/mock_invalidation_tracker.cc b/sync/test/mock_invalidation_tracker.cc
index 3c3a498e1572821b23ef95a642490b36d0495dd5..3ba02d9936dd4b97af3f732f903a6d7cde2201d2 100644
--- a/sync/test/mock_invalidation_tracker.cc
+++ b/sync/test/mock_invalidation_tracker.cc
@@ -11,16 +11,16 @@
namespace syncer {
-scoped_ptr<TrackableMockInvalidation>
+std::unique_ptr<TrackableMockInvalidation>
MockInvalidationTracker::IssueUnknownVersionInvalidation() {
- return scoped_ptr<TrackableMockInvalidation>(
+ return std::unique_ptr<TrackableMockInvalidation>(
new TrackableMockInvalidation(true, -1, std::string(), this, next_id_++));
}
-scoped_ptr<TrackableMockInvalidation>
+std::unique_ptr<TrackableMockInvalidation>
MockInvalidationTracker::IssueInvalidation(int64_t version,
const std::string& payload) {
- return scoped_ptr<TrackableMockInvalidation>(
+ return std::unique_ptr<TrackableMockInvalidation>(
new TrackableMockInvalidation(false, version, payload, this, next_id_++));
}

Powered by Google App Engine
This is Rietveld 408576698