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

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

Issue 10829348: Extensions Docs Server: Large performance increase (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/example_zipper.py
diff --git a/chrome/common/extensions/docs/server2/example_zipper.py b/chrome/common/extensions/docs/server2/example_zipper.py
index 26dbe1573f16313e6d0f5889e679cd15fb3515a5..7141381f50a770d3a3bb9c0f2a4810a3ca3650cb 100644
--- a/chrome/common/extensions/docs/server2/example_zipper.py
+++ b/chrome/common/extensions/docs/server2/example_zipper.py
@@ -7,12 +7,15 @@ from io import BytesIO
import re
from zipfile import ZipFile
+import file_system_cache as fs_cache
+
class ExampleZipper(object):
"""This class creates a zip file given a samples directory.
"""
def __init__(self, file_system, cache_builder, base_path, match_path):
self._base_path = base_path
- self._zip_cache = cache_builder.build(self._MakeZipFile)
+ self._zip_cache = cache_builder.build(self._MakeZipFile,
+ fs_cache.ZIP)
self._file_system = file_system
self._match_path = match_path
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | chrome/common/extensions/docs/server2/file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698