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

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: comment typo 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
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..d2d35c50360bbf3de34073d65147ccbec069cad6 100644
--- a/chrome/common/extensions/features/simple_feature.cc
+++ b/chrome/common/extensions/features/simple_feature.cc
@@ -493,6 +493,8 @@ bool SimpleFeature::IsInternal() const {
return false;
}
+bool SimpleFeature::IsBlockedInServiceWorker() const { return false; }
+
bool SimpleFeature::IsIdInWhitelist(const std::string& extension_id) const {
return IsIdInWhitelist(extension_id, whitelist_);
}

Powered by Google App Engine
This is Rietveld 408576698