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

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

Issue 10835012: Extension Docs Server: Include a list of samples used in the api reference page. (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
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 ee8b3bb2b507b1a474f0d980b836d52bdd0be981..92e7c77e7c7c399ce7b59ccba2ababe006d84b6d 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -68,7 +68,6 @@ def _GetInstanceForBranch(branch, local_path):
AppEngineMemcache(branch))
cache_builder = FileSystemCache.Builder(file_system)
- api_data_source = APIDataSource(cache_builder, API_PATH)
api_list_data_source = APIListDataSource(cache_builder,
file_system,
API_PATH,
@@ -79,9 +78,12 @@ def _GetInstanceForBranch(branch, local_path):
file_system,
cache_builder,
EXAMPLES_PATH)
+ api_data_source_factory = APIDataSource.Factory(cache_builder,
+ API_PATH,
+ samples_data_source_factory)
template_data_source_factory = TemplateDataSource.Factory(
branch,
- api_data_source,
+ api_data_source_factory,
api_list_data_source,
intro_data_source,
samples_data_source_factory,

Powered by Google App Engine
This is Rietveld 408576698