| Index: components/sync/protocol/sync_protocol_error.cc
|
| diff --git a/components/sync/protocol/sync_protocol_error.cc b/components/sync/protocol/sync_protocol_error.cc
|
| index 01fd3b09a7b08a618d1c3c3328283889a57c0adc..1f1ff0d3c1f9f30fb5f22cdc5f6f28f46089cf70 100644
|
| --- a/components/sync/protocol/sync_protocol_error.cc
|
| +++ b/components/sync/protocol/sync_protocol_error.cc
|
| @@ -4,7 +4,10 @@
|
|
|
| #include "components/sync/protocol/sync_protocol_error.h"
|
|
|
| +#include <utility>
|
| +
|
| #include "base/logging.h"
|
| +#include "base/memory/ptr_util.h"
|
|
|
| namespace syncer {
|
| #define ENUM_CASE(x) \
|
| @@ -52,8 +55,8 @@ SyncProtocolError::SyncProtocolError(const SyncProtocolError& other) = default;
|
|
|
| SyncProtocolError::~SyncProtocolError() {}
|
|
|
| -base::DictionaryValue* SyncProtocolError::ToValue() const {
|
| - base::DictionaryValue* value = new base::DictionaryValue();
|
| +std::unique_ptr<base::DictionaryValue> SyncProtocolError::ToValue() const {
|
| + auto value = base::MakeUnique<base::DictionaryValue>();
|
| value->SetString("ErrorType", GetSyncErrorTypeString(error_type));
|
| value->SetString("ErrorDescription", error_description);
|
| value->SetString("url", url);
|
|
|