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

Unified Diff: chrome/common/extensions/docs/server2/features_bundle.py

Issue 68873003: Docserver: Serve docs out of src/ not src/chrome/common/extensions. This allows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix samples Created 7 years, 1 month 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/features_bundle.py
diff --git a/chrome/common/extensions/docs/server2/features_bundle.py b/chrome/common/extensions/docs/server2/features_bundle.py
index ffa0f790916ee5d1266d749fef3e7f1f1ea642a2..d843b216b22c1f4fae503e48b63de9c0ce4ab65e 100644
--- a/chrome/common/extensions/docs/server2/features_bundle.py
+++ b/chrome/common/extensions/docs/server2/features_bundle.py
@@ -2,9 +2,10 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+from extensions_paths import (
+ API_FEATURES, JSON_TEMPLATES, MANIFEST_FEATURES, PERMISSION_FEATURES)
import features_utility
from future import Gettable, Future
-import svn_constants
from third_party.json_schema_compiler.json_parse import Parse
@@ -64,17 +65,17 @@ class FeaturesBundle(object):
self._api_cache = _FeaturesCache(
file_system,
compiled_fs_factory,
- svn_constants.API_FEATURES_PATH)
+ API_FEATURES)
self._manifest_cache = _FeaturesCache(
file_system,
compiled_fs_factory,
- svn_constants.MANIFEST_FEATURES_PATH,
- svn_constants.MANIFEST_JSON_PATH)
+ MANIFEST_FEATURES,
+ '%s/manifest.json' % JSON_TEMPLATES)
self._permission_cache = _FeaturesCache(
file_system,
compiled_fs_factory,
- svn_constants.PERMISSION_FEATURES_PATH,
- svn_constants.PERMISSIONS_JSON_PATH)
+ PERMISSION_FEATURES,
+ '%s/permissions.json' % JSON_TEMPLATES)
self._object_store = object_store_creator.Create(_FeaturesCache, 'features')
def GetPermissionFeatures(self):
« no previous file with comments | « chrome/common/extensions/docs/server2/fake_fetchers.py ('k') | chrome/common/extensions/docs/server2/features_bundle_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698