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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 2808051: Refactored extension privilege enumeration and implemented URLPattern compari... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/browser/net/chrome_url_request_context.h ('k') | chrome/browser/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
===================================================================
--- chrome/browser/net/chrome_url_request_context.cc (revision 54542)
+++ chrome/browser/net/chrome_url_request_context.cc (working copy)
@@ -800,6 +800,17 @@
return result;
}
+ExtensionExtent
+ ChromeURLRequestContext::GetEffectiveHostPermissionsForExtension(
+ const std::string& id) {
+ ExtensionInfoMap::iterator iter = extension_info_.find(id);
+ ExtensionExtent result;
+ if (iter != extension_info_.end())
+ result = iter->second->effective_host_permissions;
+
+ return result;
+}
+
bool ChromeURLRequestContext::CheckURLAccessToExtensionPermission(
const GURL& url,
const char* permission_name) {
@@ -964,6 +975,7 @@
(*iter)->path(),
(*iter)->default_locale(),
(*iter)->web_extent(),
+ (*iter)->GetEffectiveHostPermissions(),
(*iter)->api_permissions()));
}
}
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | chrome/browser/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698