Index: components/sync/device_info/device_info.cc |
diff --git a/components/sync/device_info/device_info.cc b/components/sync/device_info/device_info.cc |
index f2c87336062737546b74371bb0efe204ab67ccaa..70c699c2a4ec976c197eaf0e0cd8d2cd5b882890 100644 |
--- a/components/sync/device_info/device_info.cc |
+++ b/components/sync/device_info/device_info.cc |
@@ -96,8 +96,8 @@ bool DeviceInfo::Equals(const DeviceInfo& other) const { |
this->signin_scoped_device_id() == other.signin_scoped_device_id(); |
} |
-base::DictionaryValue* DeviceInfo::ToValue() { |
- base::DictionaryValue* value = new base::DictionaryValue(); |
+std::unique_ptr<base::DictionaryValue> DeviceInfo::ToValue() { |
+ std::unique_ptr<base::DictionaryValue> value(new base::DictionaryValue()); |
value->SetString("name", client_name_); |
value->SetString("id", public_id_); |
value->SetString("os", GetOSString()); |