Index: chrome/common/extensions/docs/server2/sidenav_data_source.py |
diff --git a/chrome/common/extensions/docs/server2/sidenav_data_source.py b/chrome/common/extensions/docs/server2/sidenav_data_source.py |
index e51fa476c1356eb0c9d301f0f5ce782808646950..be3cc491a661952bf84537ba0c1cdf90013adcf1 100644 |
--- a/chrome/common/extensions/docs/server2/sidenav_data_source.py |
+++ b/chrome/common/extensions/docs/server2/sidenav_data_source.py |
@@ -10,14 +10,18 @@ import compiled_file_system as compiled_fs |
from file_system import FileNotFoundError |
from third_party.json_schema_compiler.model import UnixName |
+# Increment this if the data model changes for SidenavDataSource. |
+_VERSION = 1 |
+ |
class SidenavDataSource(object): |
"""This class reads in and caches a JSON file representing the side navigation |
menu. |
""" |
class Factory(object): |
- def __init__(self, cache_factory, json_path): |
- self._cache = cache_factory.Create(self._CreateSidenavDict, |
- compiled_fs.SIDENAV) |
+ def __init__(self, compiled_fs_factory, json_path): |
+ self._cache = compiled_fs_factory.Create(self._CreateSidenavDict, |
+ SidenavDataSource, |
+ version=_VERSION) |
self._json_path = json_path |
def Create(self, path): |