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

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

Issue 9447090: Allow comments in extension config files. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed up license headers to pass license tests Created 8 years, 10 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: 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 202854eb3973d92eca37bc248d1ea586d2494a6e..944a54b47932116c2c135e42b85456880aa9f6d8 100644
--- a/chrome/common/extensions/docs/js/api_page_generator.js
+++ b/chrome/common/extensions/docs/js/api_page_generator.js
@@ -183,7 +183,7 @@ function fetchSchema() {
schema = [];
function onSchemaContent(content) {
- schema = schema.concat(JSON.parse(content));
+ schema = schema.concat(JSON.parse(JSON.minify(content)));
if (++schemas_retrieved < schemas_to_retrieve.length)
return;
if (pageName.toLowerCase() == 'samples') {
@@ -204,7 +204,7 @@ function fetchSchema() {
function fetchSamples() {
// If we're rendering the samples directory, fetch the samples manifest.
fetchContent(SAMPLES, function(sampleManifest) {
- var data = JSON.parse(sampleManifest);
+ var data = JSON.parse(JSON.minify(sampleManifest));
samples = data.samples;
apiMapping = data.api;
renderTemplate();
« no previous file with comments | « chrome/common/extensions/docs/build/directory.py ('k') | chrome/common/extensions/docs/template/page_shell.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698