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

Unified Diff: tools/json_schema_compiler/model.py

Issue 9617010: Move chrome.downloads out of experimental to dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 6 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
Index: tools/json_schema_compiler/model.py
diff --git a/tools/json_schema_compiler/model.py b/tools/json_schema_compiler/model.py
index 23b77c6d1402dba8ee88cf0d33b7f78b28b0ef81..b233752f3a98b4a5863f50ca00a7fe8b68d5b8af 100644
--- a/tools/json_schema_compiler/model.py
+++ b/tools/json_schema_compiler/model.py
@@ -78,6 +78,12 @@ class Type(object):
from_client=True)
elif json.get('type') == 'string':
self.type_ = PropertyType.STRING
+ elif json.get('type') == 'integer':
+ self.type_ = PropertyType.INTEGER
+ elif json.get('type') == 'double':
+ self.type_ = PropertyType.DOUBLE
+ elif json.get('type') == 'enum':
+ self.type_ = PropertyType.ENUM
else:
if not (
'properties' in json or

Powered by Google App Engine
This is Rietveld 408576698