Index: chrome/common/extensions/docs/server2/handler.py |
diff --git a/chrome/common/extensions/docs/server2/handler.py b/chrome/common/extensions/docs/server2/handler.py |
index 9cf6c0f24939f14df82d82990d6f89c974175fdc..ddbbc91dda2b0127def8df3cdb134619ebea1f7d 100644 |
--- a/chrome/common/extensions/docs/server2/handler.py |
+++ b/chrome/common/extensions/docs/server2/handler.py |
@@ -75,12 +75,13 @@ def _GetInstanceForBranch(channel_name, local_path): |
AppEngineMemcache(branch)) |
cache_builder = FileSystemCache.Builder(file_system) |
- api_list_data_source = APIListDataSource(cache_builder, |
- file_system, |
- API_PATH, |
- PUBLIC_TEMPLATE_PATH) |
- intro_data_source = IntroDataSource(cache_builder, |
- [INTRO_PATH, ARTICLE_PATH]) |
+ api_list_data_source_factory = APIListDataSource.Factory(cache_builder, |
+ file_system, |
+ API_PATH, |
+ PUBLIC_TEMPLATE_PATH) |
+ intro_data_source_factory = IntroDataSource.Factory( |
+ cache_builder, |
+ [INTRO_PATH, ARTICLE_PATH]) |
samples_data_source_factory = SamplesDataSource.Factory(branch, |
file_system, |
GITHUB_FILE_SYSTEM, |
@@ -93,8 +94,8 @@ def _GetInstanceForBranch(channel_name, local_path): |
template_data_source_factory = TemplateDataSource.Factory( |
channel_name, |
api_data_source_factory, |
- api_list_data_source, |
- intro_data_source, |
+ api_list_data_source_factory, |
+ intro_data_source_factory, |
samples_data_source_factory, |
cache_builder, |
PUBLIC_TEMPLATE_PATH, |