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

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

Issue 61733018: Docserver: Update to the latest version of handlebar. Lots of re-syntaxifying. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments, rebase Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/api_list_data_source.py
diff --git a/chrome/common/extensions/docs/server2/api_list_data_source.py b/chrome/common/extensions/docs/server2/api_list_data_source.py
index 217d1a5fc3fb1d90f6ce1c0578edb6311ab09d68..ace616145664e0cf42eee6e15f41f6c65d7b8406 100644
--- a/chrome/common/extensions/docs/server2/api_list_data_source.py
+++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
@@ -8,6 +8,7 @@ import posixpath
import docs_server_utils as utils
from branch_utility import ChannelInfo
+from environment import IsPreviewServer
from extensions_paths import PUBLIC_TEMPLATES
from file_system import FileNotFoundError
@@ -75,6 +76,7 @@ class APIListDataSource(object):
documented_apis = self._cache.GetFromFileListing(PUBLIC_TEMPLATES).Get()
def _GetChannelInfo(api_name):
+ if IsPreviewServer(): return ChannelInfo('dev', 'dev', 1000)
return self._availability_finder.GetApiAvailability(api_name)
def _GetApiPlatform(api_name):
« no previous file with comments | « no previous file | chrome/common/extensions/docs/server2/app.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698