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

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

Issue 549353002: Fix regression where some apis were registered, but didn't exist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/schema_processor.py
diff --git a/chrome/common/extensions/docs/server2/schema_processor.py b/chrome/common/extensions/docs/server2/schema_processor.py
index 836f1a51d8bfc665e8edcbc319c40af0546e7219..af0cdd70a2a74824fb309551f784e2610df74893 100644
--- a/chrome/common/extensions/docs/server2/schema_processor.py
+++ b/chrome/common/extensions/docs/server2/schema_processor.py
@@ -126,7 +126,10 @@ class SchemaProcessor(object):
api_features = self._features_bundle.GetAPIFeatures().Get()
# We don't want to inline the events API, as it's handled differently
- if schema.get('namespace', '') != 'events':
+ # Also, the webviewTag API is handled differently, as it only exists
+ # for the purpose of documentation, it's not a true internal api
+ namespace = schema.get('namespace', '')
+ if namespace != 'events' and namespace != 'webviewTag':
internal_api = api_features.get(schema.get('namespace', ''), {}).get(
'internal', False)
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | extensions/common/api/_api_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698