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

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: Update extension_api_stub.cc 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
« no previous file with comments | « extensions/common/extension_api_stub.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « extensions/common/extension_api_stub.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698