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

Unified Diff: extensions/common/extension_api.cc

Issue 802653003: Convert EventRouter to use ProcessMap::GetMostLikelyContextType rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delete some code! Created 6 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.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extension_api.cc
diff --git a/extensions/common/extension_api.cc b/extensions/common/extension_api.cc
index 8267695b62b9da73b2a6865c6c0a3c3b401b4564..01fb8906945eb0abb63e989ea5620c7d90919d80 100644
--- a/extensions/common/extension_api.cc
+++ b/extensions/common/extension_api.cc
@@ -296,19 +296,6 @@ Feature::Availability ExtensionAPI::IsAvailable(const std::string& full_name,
return feature->IsAvailableToContext(extension, context, url);
}
-bool ExtensionAPI::IsAvailableInUntrustedContext(const std::string& name,
- const Extension* extension) {
- return IsAvailable(name, extension, Feature::CONTENT_SCRIPT_CONTEXT, GURL())
- .is_available() ||
- IsAvailable(
- name, extension, Feature::UNBLESSED_EXTENSION_CONTEXT, GURL())
- .is_available() ||
- IsAvailable(name, extension, Feature::BLESSED_WEB_PAGE_CONTEXT, GURL())
- .is_available() ||
- IsAvailable(name, extension, Feature::WEB_PAGE_CONTEXT, GURL())
- .is_available();
-}
-
bool ExtensionAPI::IsAvailableToWebUI(const std::string& name,
const GURL& url) {
return IsAvailable(name, NULL, Feature::WEBUI_CONTEXT, url).is_available();
« no previous file with comments | « extensions/common/extension_api.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698