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

Side by Side Diff: chrome/common/extensions/docs/server2/cron_servlet.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import logging 5 import logging
6 import time 6 import time
7 import traceback 7 import traceback
8 8
9 from app_yaml_helper import AppYamlHelper 9 from app_yaml_helper import AppYamlHelper
10 from appengine_wrappers import ( 10 from appengine_wrappers import (
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 '''Creates a ServerInstance pinned to |revision|, or HEAD if None. 258 '''Creates a ServerInstance pinned to |revision|, or HEAD if None.
259 NOTE: If passed None it's likely that during the cron run patches will be 259 NOTE: If passed None it's likely that during the cron run patches will be
260 submitted at HEAD, which may change data underneath the cron run. 260 submitted at HEAD, which may change data underneath the cron run.
261 ''' 261 '''
262 object_store_creator = ObjectStoreCreator(start_empty=True) 262 object_store_creator = ObjectStoreCreator(start_empty=True)
263 branch_utility = self._delegate.CreateBranchUtility(object_store_creator) 263 branch_utility = self._delegate.CreateBranchUtility(object_store_creator)
264 host_file_system_provider = self._delegate.CreateHostFileSystemProvider( 264 host_file_system_provider = self._delegate.CreateHostFileSystemProvider(
265 object_store_creator, max_trunk_revision=revision) 265 object_store_creator, max_trunk_revision=revision)
266 app_samples_file_system = self._delegate.CreateAppSamplesFileSystem( 266 app_samples_file_system = self._delegate.CreateAppSamplesFileSystem(
267 object_store_creator) 267 object_store_creator)
268 compiled_host_fs_factory = CompiledFileSystem.Factory(
269 host_file_system_provider.GetTrunk(),
270 object_store_creator)
271 return ServerInstance(object_store_creator, 268 return ServerInstance(object_store_creator,
272 app_samples_file_system, 269 app_samples_file_system,
273 compiled_host_fs_factory, 270 CompiledFileSystem.Factory(object_store_creator),
274 branch_utility, 271 branch_utility,
275 host_file_system_provider) 272 host_file_system_provider)
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | chrome/common/extensions/docs/server2/example_zipper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698