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

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

Issue 14125010: Docserver: Add support for viewing docs with a codereview patch applied (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: add executable bits for tests Created 7 years, 7 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/instance_servlet.py
diff --git a/chrome/common/extensions/docs/server2/instance_servlet.py b/chrome/common/extensions/docs/server2/instance_servlet.py
index 5a091fa2e39924a295319e4865add0febd41a984..2523d996d47b9520784f1abd5186def52db6d4a3 100644
--- a/chrome/common/extensions/docs/server2/instance_servlet.py
+++ b/chrome/common/extensions/docs/server2/instance_servlet.py
@@ -5,6 +5,7 @@
from appengine_wrappers import IsDevServer
from branch_utility import BranchUtility
from caching_file_system import CachingFileSystem
+from compiled_file_system import CompiledFileSystem
from empty_dir_file_system import EmptyDirFileSystem
from github_file_system import GithubFileSystem
from third_party.json_schema_compiler.memoize import memoize
@@ -43,10 +44,16 @@ class _OfflineRenderServletDelegate(RenderServlet.Delegate):
object_store_creator)
app_samples_file_system = self._delegate.CreateAppSamplesFileSystem(
object_store_creator)
+ compiled_host_fs_factory = CompiledFileSystem.Factory(
+ host_file_system,
+ object_store_creator)
return ServerInstance(channel,
object_store_creator,
host_file_system,
- app_samples_file_system)
+ app_samples_file_system,
+ '/static' if channel == 'stable' else
+ '/%s/static' % channel,
+ compiled_host_fs_factory)
class InstanceServlet(object):
'''Servlet for running on normal AppEngine instances.
« no previous file with comments | « chrome/common/extensions/docs/server2/handler.py ('k') | chrome/common/extensions/docs/server2/patch_servlet.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698