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

Unified Diff: extensions/common/manifest.cc

Issue 241673002: Support a "policy" extension location in extension features files. At the same (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: different approach (yoz) Created 6 years, 8 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: extensions/common/manifest.cc
diff --git a/extensions/common/manifest.cc b/extensions/common/manifest.cc
index a02fdc31c90c53dfc8e6765b84463bd08428b20e..bbf2ff85e932f73c5d0cf992d57be1f87469d0c1 100644
--- a/extensions/common/manifest.cc
+++ b/extensions/common/manifest.cc
@@ -159,8 +159,7 @@ bool Manifest::ValidateManifest(
Feature* feature = manifest_feature_provider->GetFeature(*feature_name);
Feature::Availability result = feature->IsAvailableToManifest(
- extension_id_, type_, Feature::ConvertLocation(location_),
- GetManifestVersion());
+ extension_id_, type_, location_, GetManifestVersion());
if (!result.is_available())
warnings->push_back(InstallWarning(result.message(), *feature_name));
}
@@ -260,8 +259,8 @@ bool Manifest::CanAccessKey(const std::string& key) const {
return true;
return feature->IsAvailableToManifest(
- extension_id_, type_, Feature::ConvertLocation(location_),
- GetManifestVersion()).is_available();
+ extension_id_, type_, location_, GetManifestVersion())
+ .is_available();
}
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698