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

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

Issue 11315018: Extensions Docs Server: Generalize $ref's to work for any schema node (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 8 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/template_data_source.py
diff --git a/chrome/common/extensions/docs/server2/template_data_source.py b/chrome/common/extensions/docs/server2/template_data_source.py
index e219564701be414fd7d3605c77b208fdfe08b1f1..c6e363c9345eec7ff4948c92a26e0790ce266cf3 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -67,12 +67,13 @@ class TemplateDataSource(object):
branch_info = self._branch_info.copy()
branch_info['showWarning'] = (not path.startswith('apps') and
branch_info['showWarning'])
+ samples_data_source = self._samples_data_source_factory.Create(request)
return TemplateDataSource(
branch_info,
- self._api_data_source_factory.Create(request),
+ self._api_data_source_factory.Create(request, samples_data_source),
self._api_list_data_source_factory.Create(),
self._intro_data_source_factory.Create(),
- self._samples_data_source_factory.Create(request),
+ samples_data_source,
self._known_issues_data_source,
self._cache,
self._public_template_path,

Powered by Google App Engine
This is Rietveld 408576698