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

Unified Diff: sync/engine/nigori_util.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/engine/model_safe_worker.cc ('k') | sync/js/js_arg_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/nigori_util.cc
diff --git a/sync/engine/nigori_util.cc b/sync/engine/nigori_util.cc
index 1b6d42a803288ef5c64cd6c2781b55ab8011f827..78bb33c697bec67a22c7ecb0b0bdd36b468b089c 100644
--- a/sync/engine/nigori_util.cc
+++ b/sync/engine/nigori_util.cc
@@ -179,7 +179,9 @@ bool UpdateEntryWithEncryption(
if (VLOG_IS_ON(2)) {
scoped_ptr<DictionaryValue> value(entry->ToValue());
std::string info;
- base::JSONWriter::Write(value.get(), true, &info);
+ base::JSONWriter::WriteWithOptions(value.get(),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &info);
DVLOG(2) << "Encrypting specifics of type "
<< syncable::ModelTypeToString(type)
<< " with content: "
« no previous file with comments | « sync/engine/model_safe_worker.cc ('k') | sync/js/js_arg_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698