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

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

Issue 176973009: Doc server: support interfaces in src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/api_models.py
diff --git a/chrome/common/extensions/docs/server2/api_models.py b/chrome/common/extensions/docs/server2/api_models.py
index 1875a1e329ac15732de66e410272265e32496bb4..7355d96134de38d4a76e6f714cff775bec7b11db 100644
--- a/chrome/common/extensions/docs/server2/api_models.py
+++ b/chrome/common/extensions/docs/server2/api_models.py
@@ -6,7 +6,7 @@ import os
import posixpath
from compiled_file_system import SingleFile, Unicode
-from extensions_paths import API
+from extensions_paths import API, CORE_API
from file_system import FileNotFoundError
from future import Gettable, Future
from schema_util import ProcessSchema
@@ -63,14 +63,15 @@ class APIModels(object):
basename.replace('devtools_' , '')))
futures = [self._model_cache.GetFromFile(
- posixpath.join(API, '%s.%s' % (file_name, ext)))
- for ext in ('json', 'idl')]
+ posixpath.join(api_path, '%s.%s' % (file_name, ext)))
+ for ext in ('json', 'idl')
+ for api_path in (API, CORE_API)]
def resolve():
for future in futures:
try:
return future.Get()
except FileNotFoundError: pass
- # Propagate the first FileNotFoundError if neither were found.
+ # Propagate the first FileNotFoundError if no files were found.
futures[0].Get()
return Future(delegate=Gettable(resolve))

Powered by Google App Engine
This is Rietveld 408576698