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

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

Issue 102493002: Use schemas bundled in extensions to convert policies loaded on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: added bug url Created 7 years 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/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; }
« no previous file with comments | « components/policy/core/common/registry_dict_win_unittest.cc ('k') | components/policy/core/common/schema.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698