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

Unified Diff: sync/sessions/session_state.cc

Issue 9590002: JSONWriter cleanup: integrate pretty print into write options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict 7. Created 8 years, 9 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 | « sync/js/js_event_details.cc ('k') | sync/syncable/model_type_payload_map.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/session_state.cc
diff --git a/sync/sessions/session_state.cc b/sync/sessions/session_state.cc
index a6655f94202672e68811626d661dfc46934bf6ea..2c681259b3344c16f856585f693565d2ec84a8dd 100644
--- a/sync/sessions/session_state.cc
+++ b/sync/sessions/session_state.cc
@@ -176,7 +176,9 @@ DictionaryValue* SyncSessionSnapshot::ToValue() const {
std::string SyncSessionSnapshot::ToString() const {
scoped_ptr<DictionaryValue> value(ToValue());
std::string json;
- base::JSONWriter::Write(value.get(), true, &json);
+ base::JSONWriter::WriteWithOptions(value.get(),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &json);
return json;
}
« no previous file with comments | « sync/js/js_event_details.cc ('k') | sync/syncable/model_type_payload_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698