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

Unified Diff: chrome/browser/history/starred_url_database.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/history/history_extension_api.cc ('k') | chrome/browser/net/net_log_logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/history/starred_url_database.cc
diff --git a/chrome/browser/history/starred_url_database.cc b/chrome/browser/history/starred_url_database.cc
index 6bec5e026441803089b102fd67e2a8522ca72538..7b981668adbc4fb3489be1dfbcea905f0f509e2d 100644
--- a/chrome/browser/history/starred_url_database.cc
+++ b/chrome/browser/history/starred_url_database.cc
@@ -650,7 +650,9 @@ bool StarredURLDatabase::MigrateBookmarksToFileImpl(const FilePath& path) {
scoped_ptr<Value> encoded_bookmarks(
encoder.Encode(&bookmark_bar_node, &other_node, &mobile_node));
std::string content;
- base::JSONWriter::Write(encoded_bookmarks.get(), true, &content);
+ base::JSONWriter::WriteWithOptions(encoded_bookmarks.get(),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &content);
return (file_util::WriteFile(path, content.c_str(),
static_cast<int>(content.length())) != -1);
« no previous file with comments | « chrome/browser/history/history_extension_api.cc ('k') | chrome/browser/net/net_log_logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698