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

Unified Diff: chrome/common/extensions/docs/server2/path_canonicalizer.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/path_canonicalizer.py
diff --git a/chrome/common/extensions/docs/server2/path_canonicalizer.py b/chrome/common/extensions/docs/server2/path_canonicalizer.py
index c472f3be5f085a14ee323e3fc3c7a1a0bbef8846..b2ed8d2369184d86d08ab9ecf59acbc53d12dba4 100644
--- a/chrome/common/extensions/docs/server2/path_canonicalizer.py
+++ b/chrome/common/extensions/docs/server2/path_canonicalizer.py
@@ -24,11 +24,12 @@ class PathCanonicalizer(object):
many incarnations - e.g. there didn't use to be apps/ - there may be old
paths lying around the webs. We try to redirect those to where they are now.
'''
- def __init__(self, compiled_fs_factory):
+ def __init__(self, compiled_fs_factory, file_system):
# Map of simplified API names (for typo detection) to their real paths.
def make_public_apis(_, file_names):
return dict((_SimplifyFileName(name), name) for name in file_names)
- self._public_apis = compiled_fs_factory.Create(make_public_apis,
+ self._public_apis = compiled_fs_factory.Create(file_system,
+ make_public_apis,
PathCanonicalizer)
def Canonicalize(self, path):
« no previous file with comments | « chrome/common/extensions/docs/server2/patch_servlet_test.py ('k') | chrome/common/extensions/docs/server2/redirector.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698