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

Unified Diff: sync/syncable/directory.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/syncable/directory.cc
diff --git a/sync/syncable/directory.cc b/sync/syncable/directory.cc
index 207b8d55a334248884f14191dbd24a390c3659cc..b6d314364fd0f3bb11a6e48557dfda6853d8cf7c 100644
--- a/sync/syncable/directory.cc
+++ b/sync/syncable/directory.cc
@@ -1134,10 +1134,10 @@ void Directory::CollectMetaHandleCounts(
}
}
-scoped_ptr<base::ListValue> Directory::GetNodeDetailsForType(
+std::unique_ptr<base::ListValue> Directory::GetNodeDetailsForType(
BaseTransaction* trans,
ModelType type) {
- scoped_ptr<base::ListValue> nodes(new base::ListValue());
+ std::unique_ptr<base::ListValue> nodes(new base::ListValue());
ScopedKernelLock lock(this);
for (MetahandlesMap::iterator it = kernel_->metahandles_map.begin();
@@ -1147,7 +1147,7 @@ scoped_ptr<base::ListValue> Directory::GetNodeDetailsForType(
}
EntryKernel* kernel = it->second;
- scoped_ptr<base::DictionaryValue> node(
+ std::unique_ptr<base::DictionaryValue> node(
kernel->ToValue(GetCryptographer(trans)));
// Add the position index if appropriate. This must be done here (and not

Powered by Google App Engine
This is Rietveld 408576698