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

Unified Diff: chrome/common/extensions/manifest.cc

Issue 9950046: Implement FeatureProvider for ExtensionAPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: hate hate hate Created 8 years, 9 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
« no previous file with comments | « chrome/common/extensions/feature_unittest.cc ('k') | chrome/common/extensions/manifest_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/manifest.cc
diff --git a/chrome/common/extensions/manifest.cc b/chrome/common/extensions/manifest.cc
index 2449d443da9365d97d309b138869c42b51e1d7a7..aa4a4957c35266fd9d96c5e72e16547233bfa089 100644
--- a/chrome/common/extensions/manifest.cc
+++ b/chrome/common/extensions/manifest.cc
@@ -38,7 +38,7 @@ bool Manifest::ValidateManifest(string16* error) const {
continue;
}
- Feature::Availability result = feature->IsAvailable(
+ Feature::Availability result = feature->IsAvailableToManifest(
extension_id_, GetType(), Feature::ConvertLocation(location_),
GetManifestVersion());
if (result != Feature::IS_AVAILABLE) {
@@ -155,7 +155,7 @@ bool Manifest::CanAccessKey(const std::string& key) const {
if (!feature.get())
return false;
- return Feature::IS_AVAILABLE == feature->IsAvailable(
+ return Feature::IS_AVAILABLE == feature->IsAvailableToManifest(
extension_id_, GetType(), Feature::ConvertLocation(location_),
GetManifestVersion());
}
« no previous file with comments | « chrome/common/extensions/feature_unittest.cc ('k') | chrome/common/extensions/manifest_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698