diff options
author | ahernandez.miralles@gmail.com <ahernandez.miralles@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-07 22:05:04 +0000 |
---|---|---|
committer | ahernandez.miralles@gmail.com <ahernandez.miralles@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-07 22:05:04 +0000 |
commit | 1d0e548a86cae4b6274fe9eef38b96a8e49aa12a (patch) | |
tree | b27dc9eb3319da3c9eaa93bb30493b6a6f63aac5 /chrome/common/extensions/docs/server2/server_instance.py | |
parent | 177489835f6e988ff03548e579b50013785007e5 (diff) | |
download | chromium_src-1d0e548a86cae4b6274fe9eef38b96a8e49aa12a.zip chromium_src-1d0e548a86cae4b6274fe9eef38b96a8e49aa12a.tar.gz chromium_src-1d0e548a86cae4b6274fe9eef38b96a8e49aa12a.tar.bz2 |
Docserver: Factor SamplesModel out of SamplesDataSource
BUG=275039
NOTRY=True
Review URL: https://codereview.chromium.org/437323003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/docs/server2/server_instance.py')
-rw-r--r-- | chrome/common/extensions/docs/server2/server_instance.py | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/chrome/common/extensions/docs/server2/server_instance.py b/chrome/common/extensions/docs/server2/server_instance.py index 6d3deee..a790821 100644 --- a/chrome/common/extensions/docs/server2/server_instance.py +++ b/chrome/common/extensions/docs/server2/server_instance.py @@ -73,25 +73,8 @@ class ServerInstance(object): self.compiled_fs_factory, host_fs_at_trunk, self.host_file_system_iterator, - self.object_store_creator) - - # Note: samples are super slow in the dev server because it doesn't support - # async fetch, so disable them. - if IsDevServer(): - extension_samples_fs = EmptyDirFileSystem() - app_samples_fs = EmptyDirFileSystem() - else: - extension_samples_fs = host_fs_at_trunk - # TODO(kalman): Re-enable the apps samples, see http://crbug.com/344097. - app_samples_fs = EmptyDirFileSystem() - #app_samples_fs = github_file_system_provider.Create( - # 'GoogleChrome', 'chrome-app-samples') - self.samples_data_source_factory = SamplesDataSource.Factory( - extension_samples_fs, - app_samples_fs, - CompiledFileSystem.Factory(object_store_creator), - self.platform_bundle, - base_path) + self.object_store_creator, + self.base_path) self.content_providers = ContentProviders( object_store_creator, |