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

Unified Diff: sync/internal_api/test/fake_sync_manager.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: Rebase and fix conflicts 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
« no previous file with comments | « sync/internal_api/test/fake_sync_context.cc ('k') | sync/internal_api/test/model_type_store_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/test/fake_sync_manager.cc
diff --git a/sync/internal_api/test/fake_sync_manager.cc b/sync/internal_api/test/fake_sync_manager.cc
index 90ffa1b86d5ad5167ee21fc9ede99843f2a7767e..e2dd498eb9ca9916a0397808c35e97554cbad3c9 100644
--- a/sync/internal_api/test/fake_sync_manager.cc
+++ b/sync/internal_api/test/fake_sync_manager.cc
@@ -227,9 +227,9 @@ FakeSyncManager::GetBufferedProtocolEvents() {
return ScopedVector<syncer::ProtocolEvent>();
}
-scoped_ptr<base::ListValue> FakeSyncManager::GetAllNodesForType(
+std::unique_ptr<base::ListValue> FakeSyncManager::GetAllNodesForType(
syncer::ModelType type) {
- return scoped_ptr<base::ListValue>(new base::ListValue());
+ return std::unique_ptr<base::ListValue>(new base::ListValue());
}
void FakeSyncManager::RefreshTypes(ModelTypeSet types) {
@@ -251,7 +251,7 @@ void FakeSyncManager::RequestEmitDebugInfo() {}
void FakeSyncManager::OnIncomingInvalidation(
syncer::ModelType type,
- scoped_ptr<InvalidationInterface> invalidation) {
+ std::unique_ptr<InvalidationInterface> invalidation) {
num_invalidations_received_++;
}
« no previous file with comments | « sync/internal_api/test/fake_sync_context.cc ('k') | sync/internal_api/test/model_type_store_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698