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

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

Issue 10162023: An extension docs experiment. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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/autoupdate.html ('k') | chrome/common/extensions/docs/static/autoupdate.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 e9ccdc26ab5a39380748dff3c725e0bda81ed4ea..377c0491dc74c04d0945c5088fc6c06668bf2093 100644
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -186,7 +186,8 @@ function fetchSchema() {
schema = [];
function onSchemaContent(content) {
- schema = schema.concat(JSON.parse(JSON.minify(content)));
+ if (content)
+ schema = schema.concat(JSON.parse(JSON.minify(content)));
if (++schemas_retrieved < schemas_to_retrieve.length)
return;
if (pageName.toLowerCase() == 'samples') {
@@ -199,7 +200,7 @@ function fetchSchema() {
for (var i = 0; i < schemas_to_retrieve.length; ++i) {
var schema_path = schemas_to_retrieve[i];
fetchContent(schema_path, onSchemaContent, function(error) {
- alert('Failed to load ' + schema_path);
+ onSchemaContent("");
});
}
}
« no previous file with comments | « chrome/common/extensions/docs/autoupdate.html ('k') | chrome/common/extensions/docs/static/autoupdate.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698