| 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 d017f0161041d2baadfd48777832872b95a3b2f6..e73e2c248e1aad8f04bc5cd200426d47f33238a3 100644
|
| --- a/chrome/common/extensions/docs/server2/api_list_data_source.py
|
| +++ b/chrome/common/extensions/docs/server2/api_list_data_source.py
|
| @@ -68,8 +68,12 @@ class APIListDataSource(object):
|
| self._cache = cache
|
| self._api_path = api_path
|
|
|
| - def __getitem__(self, key):
|
| - return self.get(key)
|
| + def GetAllNames(self):
|
| + names = []
|
| + for i in ['apps', 'extensions']:
|
| + for j in ['chrome', 'experimental']:
|
| + names.extend(self.get(i).get(j))
|
| + return [api_name['name'] for api_name in names]
|
|
|
| def get(self, key):
|
| try:
|
|
|