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

Unified Diff: chrome/common/extensions/docs/server2/api_models.py

Issue 48263002: list apis by channel info, e.g. dev, stable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: polish test data in api list tests Created 7 years, 1 month 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: chrome/common/extensions/docs/server2/api_models.py
diff --git a/chrome/common/extensions/docs/server2/api_models.py b/chrome/common/extensions/docs/server2/api_models.py
index e55ccb8dc773819bd0b4496ef3dd3e0fbf2e9273..e695128a7295d129380d2769a0b9a204ba322af0 100644
--- a/chrome/common/extensions/docs/server2/api_models.py
+++ b/chrome/common/extensions/docs/server2/api_models.py
@@ -19,6 +19,7 @@ def _CreateAPIModel(path, data):
schema = ProcessSchema(path, data)
if os.path.splitext(path)[1] == '.json':
schema = schema[0]
+ if not schema: return None
not at google - send to devlin 2013/11/10 01:39:57 Ok. Please reference crbug.com/317197 here.
hukun 2013/11/11 10:23:03 Done
return Namespace(schema, schema['namespace'])

Powered by Google App Engine
This is Rietveld 408576698