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

Unified Diff: components/policy/tools/generate_policy_source.py

Issue 1323923002: Remove use of JSONReader::DeprecatedRead from components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Error fix Created 5 years, 3 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: components/policy/tools/generate_policy_source.py
diff --git a/components/policy/tools/generate_policy_source.py b/components/policy/tools/generate_policy_source.py
index 62a37fbf5c798a5fa84d3bd7068db2027e196df7..105a8606721ccff5ebf6f72953f29619ba1a0966 100755
--- a/components/policy/tools/generate_policy_source.py
+++ b/components/policy/tools/generate_policy_source.py
@@ -930,8 +930,8 @@ base::ListValue* DecodeStringList(const em::StringList& string_list) {
}
base::Value* DecodeJson(const std::string& json) {
- scoped_ptr<base::Value> root(
- base::JSONReader::DeprecatedRead(json, base::JSON_ALLOW_TRAILING_COMMAS));
+ scoped_ptr<base::Value> root =
+ base::JSONReader::Read(json, base::JSON_ALLOW_TRAILING_COMMAS);
if (!root)
LOG(WARNING) << "Invalid JSON string, ignoring: " << json;

Powered by Google App Engine
This is Rietveld 408576698