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

Unified Diff: sync/internal_api/change_record.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/internal_api/change_record.cc
diff --git a/sync/internal_api/change_record.cc b/sync/internal_api/change_record.cc
index a9a17ebe098bc0c55687ed0ca41e04fb4762184c..97cfeef77fc91395702a6c4907c62113f0b0b0ee 100644
--- a/sync/internal_api/change_record.cc
+++ b/sync/internal_api/change_record.cc
@@ -21,8 +21,8 @@ ChangeRecord::ChangeRecord(const ChangeRecord& other) = default;
ChangeRecord::~ChangeRecord() {}
-scoped_ptr<base::DictionaryValue> ChangeRecord::ToValue() const {
- scoped_ptr<base::DictionaryValue> value(new base::DictionaryValue());
+std::unique_ptr<base::DictionaryValue> ChangeRecord::ToValue() const {
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue());
std::string action_str;
switch (action) {
case ACTION_ADD:
@@ -59,7 +59,7 @@ ExtraPasswordChangeRecordData::ExtraPasswordChangeRecordData(
ExtraPasswordChangeRecordData::~ExtraPasswordChangeRecordData() {}
-scoped_ptr<base::DictionaryValue> ExtraPasswordChangeRecordData::ToValue()
+std::unique_ptr<base::DictionaryValue> ExtraPasswordChangeRecordData::ToValue()
const {
return PasswordSpecificsDataToValue(unencrypted_);
}

Powered by Google App Engine
This is Rietveld 408576698