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

Unified Diff: chrome/test/automation/automation_json_requests.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/automation/automation_json_requests.cc
diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc
index bc2fbc8a9e088d43e23a2a85b47fac8bde2e18dd..11fc25a4f8d753d4e38d8cbd9e527645cead3537 100644
--- a/chrome/test/automation/automation_json_requests.cc
+++ b/chrome/test/automation/automation_json_requests.cc
@@ -46,7 +46,8 @@ bool SendAutomationJSONRequest(AutomationMessageSender* sender,
LOG(INFO) << error->message();
return false;
}
- scoped_ptr<Value> value(base::JSONReader::Read(reply, true));
+ scoped_ptr<Value> value(
+ base::JSONReader::Read(reply, base::JSON_ALLOW_TRAILING_COMMAS));
if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) {
*error = Error("JSON request did not return a dictionary");
LOG(ERROR) << "JSON request did not return dict: " << command << "\n";

Powered by Google App Engine
This is Rietveld 408576698