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

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

Issue 1835863002: Added check for behavior feature existense (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « extensions/browser/extension_zoom_request_client.cc ('k') | extensions/common/features/feature_provider.cc » ('j') | 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 ae975137b508e845f81fca7498652006bf2bcaa3..ce575f27061b00d6f60ac2df80a02227e740e847 100644
--- a/extensions/common/features/feature_provider.h
+++ b/extensions/common/features/feature_provider.h
@@ -13,6 +13,7 @@
namespace extensions {
+class Extension;
benwells 2016/04/14 06:36:15 It's nice that this file doesn't depend on Extensi
class Feature;
using FeatureMap = std::map<std::string, scoped_ptr<Feature>>;
@@ -42,7 +43,12 @@ class FeatureProvider {
static const Feature* GetAPIFeature(const std::string& name);
static const Feature* GetManifestFeature(const std::string& name);
static const Feature* GetPermissionFeature(const std::string& name);
- static const Feature* GetBehaviorFeature(const std::string& name);
+
+ // Check if behavior feature exists and is available for extension.
+ // Feature existence should be checked as sometimes JSONReader fails to read
+ // resource file correctly. See http://crbug.com/176381
+ static bool BehaviorFeatureIsAvailable(const std::string& name,
+ const Extension* extension);
//
// Instance methods.
« no previous file with comments | « extensions/browser/extension_zoom_request_client.cc ('k') | extensions/common/features/feature_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698