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

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

Issue 512453002: Docserver: Add more skip_not_found support and cache "not found"s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bumpin yaml 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/chained_compiled_file_system.py
diff --git a/chrome/common/extensions/docs/server2/chained_compiled_file_system.py b/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
index 74e2a59a3c73286b92c1580d0ac34e9c6512c78f..1b5640d354424636f7cef3b147b6783a0e086d60 100644
--- a/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
+++ b/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
@@ -46,11 +46,11 @@ class ChainedCompiledFileSystem(object):
self._compiled_fs_chain = compiled_fs_chain
self._identity = identity
- def GetFromFile(self, path):
+ def GetFromFile(self, path, skip_not_found=False):
return self._GetImpl(
path,
- lambda compiled_fs: compiled_fs.GetFromFile(path),
- lambda compiled_fs: compiled_fs.GetFileVersion(path))
+ lambda cfs: cfs.GetFromFile(path, skip_not_found=skip_not_found),
+ lambda cfs: cfs.GetFileVersion(path))
def GetFromFileListing(self, path):
path = ToDirectory(path)

Powered by Google App Engine
This is Rietveld 408576698