Chromium Code Reviews| Index: components/policy/core/common/schema.h |
| diff --git a/components/policy/core/common/schema.h b/components/policy/core/common/schema.h |
| index 91dc850087617be85cd1b0fcc23acba4a22f80f1..dcc78284eb246145726c7c50e93d869404360c06 100644 |
| --- a/components/policy/core/common/schema.h |
| +++ b/components/policy/core/common/schema.h |
| @@ -51,6 +51,16 @@ class POLICY_EXPORT Schema { |
| // is returned and |error| contains a reason for the failure. |
| static Schema Parse(const std::string& schema, std::string* error); |
| + // Same as Parse(), but if |with_backwards_compatibility| is true then arrays |
| + // that don't declare a schema for their items will default to be arrays of |
| + // strings. This is meant to support Legacy Browser Support until it is |
| + // updated to use a proper schema. |
|
Mattias Nissler (ping if slow)
2013/12/03 20:22:00
I don't get why LBS needs this - shouldn't arrays
Joao da Silva
2013/12/04 10:20:06
LBS does not include the "items" schema because ot
|
| + // TODO(joaodasilva): remove this by M35. http://crbug.com/325349 |
| + static Schema ParseWithBackwardsCompatibility( |
| + const std::string& schema, |
| + std::string* error, |
| + bool with_backwards_compatibility); |
| + |
| // Returns true if this Schema is valid. Schemas returned by the methods below |
| // may be invalid, and in those cases the other methods must not be used. |
| bool valid() const { return node_ != NULL; } |