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

Unified Diff: chrome/common/extensions/features/simple_feature.cc

Issue 217163003: Enable _api_features.json to block APIs from service worker contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/features/simple_feature.h ('k') | extensions/common/features/feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/features/simple_feature.cc
diff --git a/chrome/common/extensions/features/simple_feature.cc b/chrome/common/extensions/features/simple_feature.cc
index 70aceb34cc5a938de5bde72442585a560aaae6ae..12b1e0f17452e103f214e4713b9c63aaae1efcd0 100644
--- a/chrome/common/extensions/features/simple_feature.cc
+++ b/chrome/common/extensions/features/simple_feature.cc
@@ -489,10 +489,11 @@ std::set<Feature::Context>* SimpleFeature::GetContexts() {
}
bool SimpleFeature::IsInternal() const {
- NOTREACHED();
return false;
}
+bool SimpleFeature::IsBlockedInServiceWorker() const { return false; }
+
bool SimpleFeature::IsIdInWhitelist(const std::string& extension_id) const {
return IsIdInWhitelist(extension_id, whitelist_);
}
« no previous file with comments | « chrome/common/extensions/features/simple_feature.h ('k') | extensions/common/features/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698