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

Unified Diff: extensions/common/features/permission_feature.cc

Issue 2202733003: [Extensions] Remove JSONFeatureProvider, SimpleFeature::Parse (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Lei's Created 4 years, 4 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/common/features/permission_feature.h ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/features/permission_feature.cc
diff --git a/extensions/common/features/permission_feature.cc b/extensions/common/features/permission_feature.cc
index 27d18740c11780ec2ca0fc8703b0e996b88735a7..fe63041dc841a28489a60656e84effd3ba709017 100644
--- a/extensions/common/features/permission_feature.cc
+++ b/extensions/common/features/permission_feature.cc
@@ -33,22 +33,4 @@ Feature::Availability PermissionFeature::IsAvailableToContext(
return CreateAvailability(IS_AVAILABLE);
}
-bool PermissionFeature::Validate(std::string* error) {
- if (!SimpleFeature::Validate(error))
- return false;
-
- if (extension_types().empty()) {
- *error = name() + ": Permission features must specify at least one " +
- "value for extension_types.";
- return false;
- }
-
- if (!contexts().empty()) {
- *error = name() + ": Permission features do not support contexts.";
- return false;
- }
-
- return true;
-}
-
} // namespace extensions
« no previous file with comments | « extensions/common/features/permission_feature.h ('k') | extensions/common/features/simple_feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698