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

Unified Diff: chrome/test/webdriver/webdriver_automation.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/commands/response.cc ('k') | chrome/test/webdriver/webdriver_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/webdriver_automation.cc
diff --git a/chrome/test/webdriver/webdriver_automation.cc b/chrome/test/webdriver/webdriver_automation.cc
index f8ea88aedd25216c1692556515c440c82e123492..400fcada59b65aed6979ffd07d833b6c5845f647 100644
--- a/chrome/test/webdriver/webdriver_automation.cc
+++ b/chrome/test/webdriver/webdriver_automation.cc
@@ -876,7 +876,7 @@ void Automation::SetLocalStatePreference(const std::string& pref,
request_dict.SetString("command", "SetLocalStatePrefs");
request_dict.SetString("path", pref);
request_dict.Set("value", scoped_value.release());
- base::JSONWriter::Write(&request_dict, false, &request);
+ base::JSONWriter::Write(&request_dict, &request);
if (!automation()->GetBrowserWindow(0)->SendJSONRequest(
request, -1, &response)) {
*error = new Error(kUnknownError, base::StringPrintf(
@@ -903,7 +903,7 @@ void Automation::SetPreference(const std::string& pref,
request_dict.SetInteger("windex", 0);
request_dict.SetString("path", pref);
request_dict.Set("value", scoped_value.release());
- base::JSONWriter::Write(&request_dict, false, &request);
+ base::JSONWriter::Write(&request_dict, &request);
if (!automation()->GetBrowserWindow(0)->SendJSONRequest(
request, -1, &response)) {
*error = new Error(kUnknownError, base::StringPrintf(
« no previous file with comments | « chrome/test/webdriver/commands/response.cc ('k') | chrome/test/webdriver/webdriver_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698