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

Unified Diff: components/policy/core/common/policy_schema.cc

Issue 22645011: policy: use JSON schema to deserialize entries from Windows registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix chrome schema unit tests Created 7 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/core/common/policy_schema.cc
diff --git a/components/policy/core/common/policy_schema.cc b/components/policy/core/common/policy_schema.cc
index 8c3145ce43afdd1e79d2c34e5c7dd8ac7e9e5caa..7e9ab7dc31cd1865af5a9d255c7b42ff9423e3bb 100644
--- a/components/policy/core/common/policy_schema.cc
+++ b/components/policy/core/common/policy_schema.cc
@@ -230,14 +230,6 @@ scoped_ptr<PolicySchema> PolicySchema::Parse(const std::string& content,
return scoped_ptr<PolicySchema>();
}
- // Checks for invalid attributes at the top-level.
- if (dict->HasKey(json_schema_constants::kAdditionalProperties) ||
- dict->HasKey(json_schema_constants::kPatternProperties)) {
- *error = "\"additionalProperties\" and \"patternProperties\" are not "
- "supported at the main schema.";
- return scoped_ptr<PolicySchema>();
- }
-
return ParseSchema(*dict, error);
}

Powered by Google App Engine
This is Rietveld 408576698