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

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

Issue 10830115: Injection stuff. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 5 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/samples_data_source.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e4d634601ce0f00aa820533819df880dd3af4f62..65039a48b5398aa785526e8aac3931eb0314fd64 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -60,24 +60,25 @@ class TemplateDataSource(object):
def Create(self, request):
"""Returns a new TemplateDataSource bound to |request|.
"""
- return TemplateDataSource(self._branch_info,
- self._static_resources,
- self._api_data_source_factory,
- self._api_list_data_source,
- self._intro_data_source,
- self._samples_data_source_factory,
- self._cache,
- self._public_template_path,
- self._private_template_path,
- request)
+ return TemplateDataSource(
+ self._branch_info,
+ self._static_resources,
+ self._api_data_source_factory.Create(request),
+ self._api_list_data_source,
+ self._intro_data_source,
+ self._samples_data_source_factory.Create(request),
+ self._cache,
+ self._public_template_path,
+ self._private_template_path,
+ request)
def __init__(self,
branch_info,
static_resources,
- api_data_source_factory,
+ api_data_source,
api_list_data_source,
intro_data_source,
- samples_data_source_factory,
+ samples_data_source,
cache,
public_template_path,
private_template_path,
@@ -86,9 +87,8 @@ class TemplateDataSource(object):
self._static_resources = static_resources
self._api_list_data_source = api_list_data_source
self._intro_data_source = intro_data_source
- self._samples_data_source = samples_data_source_factory.Create(request)
- self._api_data_source = api_data_source_factory.Create(
- self._samples_data_source.values())
+ self._samples_data_source = samples_data_source
+ self._api_data_source = api_data_source
self._cache = cache
self._public_template_path = public_template_path
self._private_template_path = private_template_path
« no previous file with comments | « chrome/common/extensions/docs/server2/samples_data_source.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698