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

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

Issue 10834329: Extension docs server: many changes to bring down the latency of the server, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/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,

Powered by Google App Engine
This is Rietveld 408576698