Index: chrome/common/extensions/docs/server2/mock_file_system.py |
diff --git a/chrome/common/extensions/docs/server2/mock_file_system.py b/chrome/common/extensions/docs/server2/mock_file_system.py |
index e15f58c8f1c8c54df2420d78e0f563f69d730633..52a84bde7b4b54e6c88a03c39d0593dcd1d4ab56 100644 |
--- a/chrome/common/extensions/docs/server2/mock_file_system.py |
+++ b/chrome/common/extensions/docs/server2/mock_file_system.py |
@@ -42,16 +42,15 @@ class MockFileSystem(FileSystem): |
from |_updates|, if any. |
''' |
self._read_count += 1 |
- future_result = self._file_system.Read(paths, skip_not_found=skip_not_found) |
- def resolve(): |
+ def next(result): |
self._read_resolve_count += 1 |
- result = future_result.Get() |
for path in result.iterkeys(): |
update = self._GetMostRecentUpdate(path) |
if update is not None: |
result[path] = update |
return result |
- return Future(callback=resolve) |
+ return self._file_system.Read(paths, |
+ skip_not_found=skip_not_found).Then(next) |
def Refresh(self): |
return self._file_system.Refresh() |