summaryrefslogtreecommitdiffstats
path: root/sync/api
diff options
context:
space:
mode:
Diffstat (limited to 'sync/api')
-rw-r--r--sync/api/sync_data.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sync/api/sync_data.cc b/sync/api/sync_data.cc
index 0dd567d..d6c9152 100644
--- a/sync/api/sync_data.cc
+++ b/sync/api/sync_data.cc
@@ -155,10 +155,9 @@ std::string SyncData::ToString() const {
std::string type = ModelTypeToString(GetDataType());
std::string specifics;
- scoped_ptr<base::DictionaryValue> value(
- EntitySpecificsToValue(GetSpecifics()));
- base::JSONWriter::WriteWithOptions(
- value.get(), base::JSONWriter::OPTIONS_PRETTY_PRINT, &specifics);
+ base::JSONWriter::WriteWithOptions(*EntitySpecificsToValue(GetSpecifics()),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &specifics);
if (IsLocal()) {
SyncDataLocal sync_data_local(*this);