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

Unified Diff: chrome/test/webdriver/webdriver_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 | « chrome/test/webdriver/webdriver_session.cc ('k') | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_util.cc
diff --git a/chrome/test/webdriver/webdriver_util.cc b/chrome/test/webdriver/webdriver_util.cc
index 200ecc053cb1db49bf33ca22e3e34c08c482023c..66754a84965658a338de3547ed8bfb646d214d38 100644
--- a/chrome/test/webdriver/webdriver_util.cc
+++ b/chrome/test/webdriver/webdriver_util.cc
@@ -392,7 +392,7 @@ bool UnzipSoleFile(const FilePath& unzip_dir,
std::string JsonStringify(const Value* value) {
std::string json;
- base::JSONWriter::Write(value, false, &json);
+ base::JSONWriter::Write(value, &json);
return json;
}
@@ -456,7 +456,9 @@ std::string JsonStringifyForDisplay(const Value* value) {
TruncateContainedStrings(copy.get());
}
std::string json;
- base::JSONWriter::Write(copy.get(), true /* pretty_print */, &json);
+ base::JSONWriter::WriteWithOptions(copy.get(),
+ base::JSONWriter::OPTIONS_PRETTY_PRINT,
+ &json);
return json;
}
« no previous file with comments | « chrome/test/webdriver/webdriver_session.cc ('k') | content/browser/debugger/devtools_http_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698