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

Unified Diff: extensions/browser/info_map.cc

Issue 2821473002: Service CreateNewWindow on the UI thread with a new mojo interface (Closed)
Patch Set: MakeShared goodness Created 3 years, 8 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
« content/test/test_render_frame.cc ('K') | « extensions/browser/info_map.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« content/test/test_render_frame.cc ('K') | « extensions/browser/info_map.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698