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

Unified Diff: chrome/browser/chromeos/cros/network_library_impl_cros.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 | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/cros/network_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library_impl_cros.cc
diff --git a/chrome/browser/chromeos/cros/network_library_impl_cros.cc b/chrome/browser/chromeos/cros/network_library_impl_cros.cc
index 97bcd789576ac196e5c6a561fd2ffea2f2b24eb8..375070e268b7731c45f5245a328969607f5dd532 100644
--- a/chrome/browser/chromeos/cros/network_library_impl_cros.cc
+++ b/chrome/browser/chromeos/cros/network_library_impl_cros.cc
@@ -365,7 +365,9 @@ void NetworkLibraryImplCros::CallConfigureService(const std::string& identifier,
if (VLOG_IS_ON(2)) {
scoped_ptr<DictionaryValue> dict(ConvertGHashTable(ghash));
std::string dict_json;
- base::JSONWriter::Write(static_cast<Value*>(dict.get()), true, &dict_json);
+ base::JSONWriter::WriteWithOptions(static_cast<Value*>(dict.get()),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &dict_json);
VLOG(2) << "ConfigureService will be called on:" << dict_json;
}
CrosConfigureService(identifier.c_str(), ghash,
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/cros/network_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698