Index: extensions/browser/info_map.cc |
diff --git a/extensions/browser/info_map.cc b/extensions/browser/info_map.cc |
index 7efb736535590b61a421c9b6937ea5ff74269e70..f894cb59eecb746642ccf815a27e03b5a1d4b77b 100644 |
--- a/extensions/browser/info_map.cc |
+++ b/extensions/browser/info_map.cc |
@@ -139,28 +139,6 @@ void InfoMap::UnregisterAllExtensionsInProcess(int process_id) { |
process_map_.RemoveAllFromProcess(process_id); |
} |
-bool InfoMap::SecurityOriginHasAPIPermission( |
- const GURL& origin, |
- int process_id, |
- APIPermission::ID permission) const { |
- CheckOnValidThread(); |
- if (origin.SchemeIs(kExtensionScheme)) { |
- const std::string& id = origin.host(); |
- const Extension* extension = extensions_.GetByID(id); |
- return extension && |
- extension->permissions_data()->HasAPIPermission(permission) && |
- process_map_.Contains(id, process_id); |
- } |
- for (const auto& extension : extensions_) { |
- if (extension->web_extent().MatchesSecurityOrigin(origin) && |
- extension->permissions_data()->HasAPIPermission(permission) && |
- process_map_.Contains(extension->id(), process_id)) { |
- return true; |
- } |
- } |
- return false; |
-} |
- |
// This function is security sensitive. Bugs could cause problems that break |
// restrictions on local file access or NaCl's validation caching. If you modify |
// this function, please get a security review from a NaCl person. |