summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/docs/server2/chained_compiled_file_system.py
diff options
context:
space:
mode:
authorahernandez.miralles <ahernandez.miralles@gmail.com>2014-08-27 13:40:08 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-27 20:41:03 +0000
commite8fc5eb6f26108bd00f85108e1ec4272e6196481 (patch)
tree8c5f29af44034b746213652cf6d47d1d26d9873b /chrome/common/extensions/docs/server2/chained_compiled_file_system.py
parent7465b7135d712f057977e81516ec947939ad6337 (diff)
downloadchromium_src-e8fc5eb6f26108bd00f85108e1ec4272e6196481.zip
chromium_src-e8fc5eb6f26108bd00f85108e1ec4272e6196481.tar.gz
chromium_src-e8fc5eb6f26108bd00f85108e1ec4272e6196481.tar.bz2
Docserver: Add more skip_not_found support and cache "not found"s
BUG=305280 NOTRY=True Review URL: https://codereview.chromium.org/512453002 Cr-Commit-Position: refs/heads/master@{#292212}
Diffstat (limited to 'chrome/common/extensions/docs/server2/chained_compiled_file_system.py')
-rw-r--r--chrome/common/extensions/docs/server2/chained_compiled_file_system.py6
1 files changed, 3 insertions, 3 deletions
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 74e2a59..1b5640d 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)