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

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

Issue 2539363004: Make base::Value::TYPE a scoped enum. (Closed)
Patch Set: Rebase Created 4 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
« no previous file with comments | « components/policy/core/common/schema.cc ('k') | components/policy/core/common/schema_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema_internal.h
diff --git a/components/policy/core/common/schema_internal.h b/components/policy/core/common/schema_internal.h
index 586b3c3947cbe784d95ce5b770c6adc8d1df5dce..503bbc5ad7c4b2a97e3bf1a0060a6c7bd98b82af 100644
--- a/components/policy/core/common/schema_internal.h
+++ b/components/policy/core/common/schema_internal.h
@@ -20,15 +20,15 @@ struct POLICY_EXPORT SchemaNode {
// The policy type.
base::Value::Type type;
- // If |type| is TYPE_DICTIONARY then |extra| is an offset into
+ // If |type| is Type::DICTIONARY then |extra| is an offset into
// SchemaData::properties_nodes that indexes the PropertiesNode describing
// the entries of this dictionary.
//
- // If |type| is TYPE_LIST then |extra| is an offset into
+ // If |type| is Type::LIST then |extra| is an offset into
// SchemaData::schema_nodes that indexes the SchemaNode describing the items
// of this list.
//
- // If |type| is TYPE_INTEGER or TYPE_STRING, and contains corresponding
+ // If |type| is Type::INTEGER or Type::STRING, and contains corresponding
// restriction (enumeration of possible values, or range for integer), then
// |extra| is an offset into SchemaData::restriction_nodes that indexes the
// RestrictionNode describing the restriction on the value.
@@ -78,7 +78,7 @@ struct POLICY_EXPORT PropertiesNode {
int additional;
};
-// Represents the restriction on TYPE_INTEGER or TYPE_STRING instance of
+// Represents the restriction on Type::INTEGER or Type::STRING instance of
// base::Value.
union POLICY_EXPORT RestrictionNode {
// Offsets into SchemaData::int_enums or SchemaData::string_enums, the
« no previous file with comments | « components/policy/core/common/schema.cc ('k') | components/policy/core/common/schema_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698