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

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

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: handlebar 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
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 2c0774801c6546002f8c8001cbae74cbb3cd9ff7..538a2de6294412e8f05bd00979c1e7b4425b0a69 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -39,7 +39,7 @@ class TemplateDataSource(object):
branch,
api_data_source,
intro_data_source,
- samples_data_source,
+ samples_data_source_factory,
cache_builder,
base_paths):
self._branch_info = _MakeBranchDict(branch)
@@ -47,7 +47,7 @@ class TemplateDataSource(object):
'/static')
self._api_data_source = api_data_source
self._intro_data_source = intro_data_source
- self._samples_data_source = samples_data_source
+ self._samples_data_source_factory = samples_data_source_factory
self._cache = cache_builder.build(Handlebar)
self._base_paths = base_paths
@@ -58,7 +58,7 @@ class TemplateDataSource(object):
self._static_resources,
self._api_data_source,
self._intro_data_source,
- self._samples_data_source,
+ self._samples_data_source_factory,
self._cache,
self._base_paths,
request)
@@ -68,7 +68,7 @@ class TemplateDataSource(object):
static_resources,
api_data_source,
intro_data_source,
- samples_data_source,
+ samples_data_source_factory,
cache,
base_paths,
request):
@@ -76,7 +76,7 @@ class TemplateDataSource(object):
self._static_resources = static_resources
self._api_data_source = api_data_source
self._intro_data_source = intro_data_source
- self._samples_data_source = samples_data_source
+ self._samples_data_source = samples_data_source_factory.Create(request)
self._cache = cache
self._base_paths = base_paths
self._request = request

Powered by Google App Engine
This is Rietveld 408576698