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

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

Issue 453713002: Docserver: Generate a table of extension/app API owners (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/caching_file_system.py
diff --git a/chrome/common/extensions/docs/server2/caching_file_system.py b/chrome/common/extensions/docs/server2/caching_file_system.py
index 15a81a36f8c4f78ff0a7ddbb23ca3dde5dcd53f5..a3b65897e92d96e9b946e3b803bfe5b016e76b49 100644
--- a/chrome/common/extensions/docs/server2/caching_file_system.py
+++ b/chrome/common/extensions/docs/server2/caching_file_system.py
@@ -60,7 +60,7 @@ class CachingFileSystem(FileSystem):
dir_stat = self._stat_object_store.Get(dir_path).Get()
if dir_stat is not None:
- return Future(value=make_stat_info(dir_stat))
+ return Future(value=dir_stat).Then(make_stat_info)
ahernandez 2014/08/21 18:07:27 I had to change it to this to avoid FileNotFoundEr
not at google - send to devlin 2014/08/21 21:39:57 Heh, I needed to make that fix as well: https://c
def next(dir_stat):
assert dir_stat is not None # should have raised a FileNotFoundError

Powered by Google App Engine
This is Rietveld 408576698