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

Unified Diff: chrome/common/extensions/docs/server2/strings_data_source.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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/strings_data_source.py
diff --git a/chrome/common/extensions/docs/server2/strings_data_source.py b/chrome/common/extensions/docs/server2/strings_data_source.py
index a602c75c38bc96a767e6029aa731fb2ef239c2b9..b4042bfaa829a506c64340191060d8322cbb10ac 100644
--- a/chrome/common/extensions/docs/server2/strings_data_source.py
+++ b/chrome/common/extensions/docs/server2/strings_data_source.py
@@ -10,8 +10,10 @@ class StringsDataSource(DataSource):
JSON configuration file.
'''
def __init__(self, server_instance, _):
- self._cache = server_instance.compiled_host_fs_factory.Create(
- lambda _, strings_json: Parse(strings_json), StringsDataSource)
+ self._cache = server_instance.compiled_fs_factory.Create(
+ server_instance.host_file_system_provider.GetTrunk(),
+ lambda _, strings_json: Parse(strings_json),
+ StringsDataSource)
self._strings_json_path = server_instance.strings_json_path
def Cron(self):

Powered by Google App Engine
This is Rietveld 408576698