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

Side by Side Diff: chrome/common/extensions/docs/server2/server_instance.py

Issue 168153002: Docserver: Disable NaCL docs and apps samples. The bug referenced is for the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 from api_categorizer import APICategorizer 5 from api_categorizer import APICategorizer
6 from api_data_source import APIDataSource 6 from api_data_source import APIDataSource
7 from api_list_data_source import APIListDataSource 7 from api_list_data_source import APIListDataSource
8 from api_models import APIModels 8 from api_models import APIModels
9 from availability_finder import AvailabilityFinder 9 from availability_finder import AvailabilityFinder
10 from compiled_file_system import CompiledFileSystem 10 from compiled_file_system import CompiledFileSystem
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 self.api_data_source_factory.SetReferenceResolverFactory( 117 self.api_data_source_factory.SetReferenceResolverFactory(
118 self.ref_resolver_factory) 118 self.ref_resolver_factory)
119 119
120 # Note: samples are super slow in the dev server because it doesn't support 120 # Note: samples are super slow in the dev server because it doesn't support
121 # async fetch, so disable them. 121 # async fetch, so disable them.
122 if IsDevServer(): 122 if IsDevServer():
123 extension_samples_fs = EmptyDirFileSystem() 123 extension_samples_fs = EmptyDirFileSystem()
124 app_samples_fs = EmptyDirFileSystem() 124 app_samples_fs = EmptyDirFileSystem()
125 else: 125 else:
126 extension_samples_fs = host_fs_at_trunk 126 extension_samples_fs = host_fs_at_trunk
127 app_samples_fs = github_file_system_provider.Create( 127 # TODO(kalman): Re-enable the apps samples, see http://crbug.com/344097.
128 'GoogleChrome', 'chrome-app-samples') 128 app_samples_fs = EmptyDirFileSystem()
129 #app_samples_fs = github_file_system_provider.Create(
130 # 'GoogleChrome', 'chrome-app-samples')
129 self.samples_data_source_factory = SamplesDataSource.Factory( 131 self.samples_data_source_factory = SamplesDataSource.Factory(
130 extension_samples_fs, 132 extension_samples_fs,
131 app_samples_fs, 133 app_samples_fs,
132 CompiledFileSystem.Factory(object_store_creator), 134 CompiledFileSystem.Factory(object_store_creator),
133 self.ref_resolver_factory, 135 self.ref_resolver_factory,
134 base_path) 136 base_path)
135 137
136 self.api_data_source_factory.SetSamplesDataSourceFactory( 138 self.api_data_source_factory.SetSamplesDataSourceFactory(
137 self.samples_data_source_factory) 139 self.samples_data_source_factory)
138 140
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 store_type=TestObjectStore) 186 store_type=TestObjectStore)
185 host_file_system_provider = HostFileSystemProvider.ForLocal( 187 host_file_system_provider = HostFileSystemProvider.ForLocal(
186 object_store_creator) 188 object_store_creator)
187 return ServerInstance( 189 return ServerInstance(
188 object_store_creator, 190 object_store_creator,
189 CompiledFileSystem.Factory(object_store_creator), 191 CompiledFileSystem.Factory(object_store_creator),
190 TestBranchUtility.CreateWithCannedData(), 192 TestBranchUtility.CreateWithCannedData(),
191 host_file_system_provider, 193 host_file_system_provider,
192 GithubFileSystemProvider.ForEmpty(), 194 GithubFileSystemProvider.ForEmpty(),
193 CloudStorageFileSystemProvider(object_store_creator)) 195 CloudStorageFileSystemProvider(object_store_creator))
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/cron.yaml ('k') | chrome/common/extensions/docs/templates/json/chrome_sidenav.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698