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

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

Issue 24367003: Refactored users of PolicySchema to use the new policy::Schema class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments 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
« no previous file with comments | « components/policy/core/common/schema.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema.cc
diff --git a/components/policy/core/common/schema.cc b/components/policy/core/common/schema.cc
index cbfde46faf3374115c91a4ec670873c2cf43d7c5..b3e63d7f3b263e4e645baaeea9e1cb0ec58e5823 100644
--- a/components/policy/core/common/schema.cc
+++ b/components/policy/core/common/schema.cc
@@ -74,6 +74,8 @@ Schema Schema::Iterator::schema() const {
return Schema(it_->schema);
}
+Schema::Schema() : schema_(NULL) {}
+
Schema::Schema(const internal::SchemaNode* schema) : schema_(schema) {}
Schema::Schema(const Schema& schema) : schema_(schema.schema_) {}
@@ -112,7 +114,7 @@ Schema Schema::GetKnownProperty(const std::string& key) const {
properties_node->begin, properties_node->end, key, CompareKeys);
if (it != properties_node->end && it->key == key)
return Schema(it->schema);
- return Schema(NULL);
+ return Schema();
}
Schema Schema::GetAdditionalProperties() const {
« no previous file with comments | « components/policy/core/common/schema.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698