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

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

Issue 3173018: Merge 55103 - Refactored extension privilege enumeration and implemented URLP... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/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/common/extensions/extension.h » ('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 56058)
+++ chrome/browser/net/chrome_url_request_context.cc (working copy)
@@ -798,6 +798,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) {
@@ -962,6 +973,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/common/extensions/extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698