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

Unified Diff: remoting/host/json_host_config.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 | « remoting/client/plugin/chromoting_instance.cc ('k') | sync/engine/model_safe_worker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/json_host_config.cc
diff --git a/remoting/host/json_host_config.cc b/remoting/host/json_host_config.cc
index 97f1d74850dd6f5c8740d76b9f5e75e6ce170a7b..3bddb4ef30e15edded47f557f69631da59f29ecb 100644
--- a/remoting/host/json_host_config.cc
+++ b/remoting/host/json_host_config.cc
@@ -50,7 +50,9 @@ void JsonHostConfig::Save() {
void JsonHostConfig::DoWrite() {
std::string file_content;
base::AutoLock auto_lock(lock_);
- base::JSONWriter::Write(values_.get(), true, &file_content);
+ base::JSONWriter::WriteWithOptions(values_.get(),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &file_content);
// TODO(sergeyu): Move ImportantFileWriter to base and use it here.
file_util::WriteFile(filename_, file_content.c_str(), file_content.size());
}
« no previous file with comments | « remoting/client/plugin/chromoting_instance.cc ('k') | sync/engine/model_safe_worker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698