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

Unified Diff: extensions/common/features/feature_provider.h

Issue 109683007: Pass a Feature* to IsAnyFeatureAvailableToContext instead of a string name. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix dumb compilation error Created 7 years 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/features/feature_provider.h
diff --git a/extensions/common/features/feature_provider.h b/extensions/common/features/feature_provider.h
index a295fe0dd252aedbd1f4d12e627e3c16cf43cdaf..0951196f167776a48587ad155fb27dacb4021f71 100644
--- a/extensions/common/features/feature_provider.h
+++ b/extensions/common/features/feature_provider.h
@@ -19,13 +19,13 @@ class FeatureProvider {
virtual ~FeatureProvider() {}
// Returns the feature with the specified name.
- virtual Feature* GetFeature(const std::string& name) = 0;
+ virtual Feature* GetFeature(const std::string& name) const = 0;
// Returns the parent feature of |feature|, or NULL if there isn't one.
- virtual Feature* GetParent(Feature* feature) = 0;
+ virtual Feature* GetParent(Feature* feature) const = 0;
// Returns all features described by this instance.
- virtual const std::vector<std::string>& GetAllFeatureNames() = 0;
+ virtual const std::vector<std::string>& GetAllFeatureNames() const = 0;
// Gets a feature provider for a specific feature type, like "permission".
static FeatureProvider* GetByName(const std::string& name);
« chrome/common/extensions/api/extension_api_unittest.cc ('K') | « extensions/common/extension_api.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698