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

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

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revisions, Offline/Online Access (bypassed-hooks) 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..d8b795e31974ffd3249ac6693cacd62eb5a51de5 100644
--- a/chrome/common/extensions/docs/server2/instance_servlet.py
+++ b/chrome/common/extensions/docs/server2/instance_servlet.py
@@ -37,16 +37,22 @@ class _OfflineRenderServletDelegate(RenderServlet.Delegate):
def CreateServerInstanceForChannel(self, channel):
object_store_creator = ObjectStoreCreator(channel, start_empty=False)
branch = (self._delegate.CreateBranchUtility(object_store_creator)
- .GetBranchForChannel(channel))
+ .GetChannelInfo(channel).branch)
host_file_system = CachingFileSystem(
OfflineFileSystem(self._delegate.CreateHostFileSystemForBranch(branch)),
object_store_creator)
app_samples_file_system = self._delegate.CreateAppSamplesFileSystem(
object_store_creator)
+ def create_file_system(branch):
+ object_store_creator = ObjectStoreCreator(branch, start_empty=False)
+ return CachingFileSystem(
+ OfflineFileSystem(SubversionFileSystem.Create(branch)),
+ object_store_creator)
return ServerInstance(channel,
object_store_creator,
host_file_system,
- app_samples_file_system)
+ app_samples_file_system,
+ create_file_system)
class InstanceServlet(object):
'''Servlet for running on normal AppEngine instances.

Powered by Google App Engine
This is Rietveld 408576698