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

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

Issue 26538009: Docserver: make file_system a property of Create (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: niggles Created 7 years, 2 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/redirector.py
diff --git a/chrome/common/extensions/docs/server2/redirector.py b/chrome/common/extensions/docs/server2/redirector.py
index 957f029aab8f054e392a28806bc112e98305a0d0..9c8136ea0d9cce43c3adfbf0f7161fa61f941e86 100644
--- a/chrome/common/extensions/docs/server2/redirector.py
+++ b/chrome/common/extensions/docs/server2/redirector.py
@@ -13,7 +13,7 @@ class Redirector(object):
self._root_path = root_path
self._file_system = file_system
self._cache = compiled_fs_factory.Create(
- lambda _, rules: Parse(rules), Redirector)
+ file_system, lambda _, rules: Parse(rules), Redirector)
def Redirect(self, host, path):
''' Check if a path should be redirected, first according to host
« no previous file with comments | « chrome/common/extensions/docs/server2/path_canonicalizer.py ('k') | chrome/common/extensions/docs/server2/redirector_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698