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

Unified Diff: chrome/browser/net/net_log_logger.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
Index: chrome/browser/net/net_log_logger.cc
diff --git a/chrome/browser/net/net_log_logger.cc b/chrome/browser/net/net_log_logger.cc
index bc9cd6ad30d0965b8adb2c572f3edf0f37086888..9ef34d5e7c8ff50d25b438247e556683bdb71ef5 100644
--- a/chrome/browser/net/net_log_logger.cc
+++ b/chrome/browser/net/net_log_logger.cc
@@ -24,7 +24,7 @@ NetLogLogger::NetLogLogger(const FilePath &log_path) {
// between Chrome versions.
scoped_ptr<Value> value(NetInternalsUI::GetConstants());
std::string json;
- base::JSONWriter::Write(value.get(), false, &json);
+ base::JSONWriter::Write(value.get(), &json);
fprintf(file_.get(), "{\"constants\": %s,\n", json.c_str());
fprintf(file_.get(), "\"events\": [\n");
}
@@ -50,7 +50,7 @@ void NetLogLogger::OnAddEntry(net::NetLog::EventType type,
// instead of integer identifiers allows logs from older versions to be
// loaded, though a little extra parsing has to be done when loading a log.
std::string json;
- base::JSONWriter::Write(value.get(), false, &json);
+ base::JSONWriter::Write(value.get(), &json);
if (!file_.get()) {
VLOG(1) << json;
} else {
« no previous file with comments | « chrome/browser/history/starred_url_database.cc ('k') | chrome/browser/policy/configuration_policy_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698