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

Unified Diff: sync/internal_api/public/base/progress_marker_map.cc

Issue 106793004: Revert of Stop doing unnecessary UTF-8 to UTF-16 conversions in JSONWriter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « sync/internal_api/public/base/ordinal.h ('k') | sync/syncable/entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/public/base/progress_marker_map.cc
diff --git a/sync/internal_api/public/base/progress_marker_map.cc b/sync/internal_api/public/base/progress_marker_map.cc
index ea1f177b7d3e9703599c7d39b96e7e645534fb15..b2810134ebf30859e01725efabdc18dafdda2292 100644
--- a/sync/internal_api/public/base/progress_marker_map.cc
+++ b/sync/internal_api/public/base/progress_marker_map.cc
@@ -16,8 +16,9 @@
for (ProgressMarkerMap::const_iterator it = marker_map.begin();
it != marker_map.end(); ++it) {
std::string printable_payload;
- base::EscapeJSONString(
- it->second, false /* put_in_quotes */, &printable_payload);
+ base::JsonDoubleQuote(it->second,
+ false /* put_in_quotes */,
+ &printable_payload);
value->SetString(ModelTypeToString(it->first), printable_payload);
}
return value.Pass();
« no previous file with comments | « sync/internal_api/public/base/ordinal.h ('k') | sync/syncable/entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698