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

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

Issue 10878056: Extensions Docs Server: Fix samples page and ExampleZipper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test + fixes 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 9c54c55b67afe189eb459fd4864dcc986b8de22e..bc251c0759742859c8b564ae14584a2320c82554 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -93,7 +93,7 @@ def _GetInstanceForBranch(channel_name, local_path):
cache_factory,
[INTRO_PATH, ARTICLE_PATH])
samples_data_source_factory = SamplesDataSource.Factory(
- branch,
+ channel_name,
file_system,
GITHUB_FILE_SYSTEM,
cache_factory,
@@ -113,8 +113,7 @@ def _GetInstanceForBranch(channel_name, local_path):
PRIVATE_TEMPLATE_PATH)
example_zipper = ExampleZipper(file_system,
cache_factory,
- DOCS_PATH,
- EXAMPLES_PATH)
+ DOCS_PATH)
SERVER_INSTANCES[branch] = ServerInstance(
template_data_source_factory,
example_zipper,

Powered by Google App Engine
This is Rietveld 408576698