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

Unified Diff: chrome/common/extensions/docs/js/api_page_generator.js

Issue 8869003: Move the "extension" namespace from extension_api.json into extension_api_extension.json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build.py again? Created 9 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 | « chrome/common/extensions/docs/experimental.socket.html ('k') | chrome/common/extensions/docs/samples.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/js/api_page_generator.js
diff --git a/chrome/common/extensions/docs/js/api_page_generator.js b/chrome/common/extensions/docs/js/api_page_generator.js
index ea9103773184080f183ab423ae02a7a087a5286b..07b5c8a635d7744ba023a821d840d24062862c98 100644
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -20,6 +20,7 @@
var API_TEMPLATE = 'template/api_template.html';
var SCHEMA = '../api/extension_api.json';
+var MODULE_SCHEMAS = ['../api/extension.json'];
var DEVTOOLS_SCHEMA = '../api/devtools_api.json';
var USE_DEVTOOLS_SCHEMA =
/\.devtools[^/]*\.html/.test(location.pathname);
@@ -116,8 +117,10 @@ function fetchSchema() {
var is_experimental_index = /\/experimental\.html$/.test(location.pathname);
var schemas_to_retrieve = [];
- if (!USE_DEVTOOLS_SCHEMA || is_experimental_index)
+ if (!USE_DEVTOOLS_SCHEMA || is_experimental_index) {
schemas_to_retrieve.push(SCHEMA);
+ schemas_to_retrieve = schemas_to_retrieve.concat(MODULE_SCHEMAS);
+ }
if (USE_DEVTOOLS_SCHEMA || is_experimental_index)
schemas_to_retrieve.push(DEVTOOLS_SCHEMA);
« no previous file with comments | « chrome/common/extensions/docs/experimental.socket.html ('k') | chrome/common/extensions/docs/samples.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698