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

Unified Diff: chrome/test/webdriver/webdriver_dispatch.cc

Issue 9960077: Modify the base::JSONReader interface to take a set of options rather than a boolean flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 8 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/test/webdriver/webdriver_dispatch.cc
diff --git a/chrome/test/webdriver/webdriver_dispatch.cc b/chrome/test/webdriver/webdriver_dispatch.cc
index 33ac629299b1f219f233cfb64a0ace943a940561..d5a278408d90cce9dda62fd09ded223f5fdd8ebe 100644
--- a/chrome/test/webdriver/webdriver_dispatch.cc
+++ b/chrome/test/webdriver/webdriver_dispatch.cc
@@ -320,7 +320,7 @@ bool ParseRequestInfo(const struct mg_request_info* const request_info,
if (json.length() > 0) {
std::string error_msg;
scoped_ptr<Value> params(base::JSONReader::ReadAndReturnError(
- json, true, NULL, &error_msg));
+ json, base::JSON_ALLOW_TRAILING_COMMAS, NULL, &error_msg));
if (!params.get()) {
response->SetError(new Error(
kBadRequest,

Powered by Google App Engine
This is Rietveld 408576698