Lines Matching defs:schema
15 #include "components/policy/core/common/schema.h"
24 // Converts a value (as read from the registry) to meet |schema|, converting
28 const Schema& schema) {
29 if (!schema.valid())
33 if (value.IsType(schema.type())) {
42 ConvertValue(entry.value(), schema.GetProperty(entry.key()));
52 ConvertValue(**entry, schema.GetItems());
64 switch (schema.type()) {
107 ConvertValue(*entry, schema.GetItems());
119 if (result && result->IsType(schema.type()))
131 << " to " << schema.type();
294 const Schema& schema) const {
296 schema.valid() ? schema.type() : base::Value::TYPE_DICTIONARY;
303 schema.valid() ? schema.GetProperty(entry->first) : Schema();
312 schema.valid() ? schema.GetProperty(entry->first) : Schema();
322 Schema item_schema = schema.valid() ? schema.GetItems() : Schema();
344 LOG(WARNING) << "Can't convert registry key to schema type " << type;