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

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

Issue 337373004: Docserver: Replace instances of 'Api' with 'API' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « chrome/common/extensions/docs/server2/compiled_file_system.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/server2/whats_new_data_source.py
diff --git a/chrome/common/extensions/docs/server2/whats_new_data_source.py b/chrome/common/extensions/docs/server2/whats_new_data_source.py
index 6055a74729cca2c4fd214c6d0157fa55b6550cb6..fd26764017dd1bd3f012009ae3dd3526d222e101 100644
--- a/chrome/common/extensions/docs/server2/whats_new_data_source.py
+++ b/chrome/common/extensions/docs/server2/whats_new_data_source.py
@@ -32,21 +32,21 @@ class WhatsNewDataSource(DataSource):
'version': change['version']
} for change_id, change in whats_new_json.iteritems()]
- def _GetApiVersion(self, platform, api_name):
+ def _GetAPIVersion(self, platform, api_name):
version = None
category = self._api_categorizer.GetCategory(platform, api_name)
if category == 'chrome':
- channel_info = self._availability_finder.GetApiAvailability(
+ channel_info = self._availability_finder.GetAPIAvailability(
api_name).channel_info
channel = channel_info.channel
if channel == 'stable':
version = channel_info.version
return version
- def _GenerateApiListWithVersion(self, platform):
+ def _GenerateAPIListWithVersion(self, platform):
data = []
for api_name, api_model in self._api_models.IterModels():
- version = self._GetApiVersion(platform, api_name)
+ version = self._GetAPIVersion(platform, api_name)
if version:
api = {
'name': api_name,
@@ -64,7 +64,7 @@ class WhatsNewDataSource(DataSource):
def _MakeDictByPlatform(platform):
whats_new_json = whats_new_json_future.Get()
platform_list = []
- apis = self._GenerateApiListWithVersion(platform)
+ apis = self._GenerateAPIListWithVersion(platform)
apis.extend(self._GenerateChangesListWithVersion(platform,
whats_new_json))
apis.sort(key=itemgetter('version'), reverse=True)
« no previous file with comments | « chrome/common/extensions/docs/server2/compiled_file_system.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698