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

Unified Diff: sync/syncable/model_type.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/model_type.cc
diff --git a/sync/syncable/model_type.cc b/sync/syncable/model_type.cc
index 9219af247bcc8d5366857cef228df596ddcc14d9..bf491045185cfa7f10f1867b5dc0fdf8134429d2 100644
--- a/sync/syncable/model_type.cc
+++ b/sync/syncable/model_type.cc
@@ -652,8 +652,8 @@ ModelTypeSet ModelTypeSetFromString(const std::string& model_types_string) {
return model_types;
}
-scoped_ptr<base::ListValue> ModelTypeSetToValue(ModelTypeSet model_types) {
- scoped_ptr<base::ListValue> value(new base::ListValue());
+std::unique_ptr<base::ListValue> ModelTypeSetToValue(ModelTypeSet model_types) {
+ std::unique_ptr<base::ListValue> value(new base::ListValue());
for (ModelTypeSet::Iterator it = model_types.First(); it.Good(); it.Inc()) {
value->AppendString(ModelTypeToString(it.Get()));
}

Powered by Google App Engine
This is Rietveld 408576698