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

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

Issue 15009006: Docserver: refactor Servlet, ObjectStore, and ServerInstance architecture to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cduvall, redirect fix Created 7 years, 7 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 eae53303e5d01c0d561df7757db575e5d2c81bee..ba78f434a58b257c1ae225e74937c40e5ab15e92 100644
--- a/chrome/common/extensions/docs/server2/template_data_source.py
+++ b/chrome/common/extensions/docs/server2/template_data_source.py
@@ -17,7 +17,7 @@ EXTENSIONS_URL = '/chrome/extensions'
def _MakeChannelDict(channel_name):
channel_dict = {
- 'channels': [{'name': name} for name in BranchUtility.GetAllBranchNames()],
+ 'channels': [{'name': name} for name in BranchUtility.GetAllChannelNames()],
'current': channel_name
}
for channel in channel_dict['channels']:
@@ -128,6 +128,11 @@ class TemplateDataSource(object):
'apps_title': 'Apps',
'extensions_title': 'Extensions',
'apps_samples_url': url_constants.GITHUB_BASE,
+ # TODO(kalman): this is wrong, it's always getting from trunk, but meh
+ # it hardly ever shows up (only in the "cannot fetch samples" message).
+ # In fact I don't even know if it can show up anymore due the samples data
+ # being persisent. In any case, when the channel distinctions are gone
+ # this can go away, so, double meh.
'extensions_samples_url': url_constants.EXTENSIONS_SAMPLES,
'true': True,
'false': False

Powered by Google App Engine
This is Rietveld 408576698