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

Unified Diff: sync/api/sync_data.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another rebase Created 5 years, 7 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
« no previous file with comments | « remoting/host/video_frame_recorder_host_extension.cc ('k') | sync/engine/traffic_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_data.cc
diff --git a/sync/api/sync_data.cc b/sync/api/sync_data.cc
index 0dd567d64520f4b9d588fad8ca109c6b28af0143..d6c91528d188671ecfce80a429eb2def582e394a 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);
« no previous file with comments | « remoting/host/video_frame_recorder_host_extension.cc ('k') | sync/engine/traffic_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698