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

Unified Diff: chrome/browser/geolocation/chrome_geolocation_permission_context.cc

Issue 7003098: Start refractoring extension permissions into ExtensionPermissionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: See if rebasing fixes the tests... Created 9 years, 6 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/extensions/extension_tabs_module.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/geolocation/chrome_geolocation_permission_context.cc
diff --git a/chrome/browser/geolocation/chrome_geolocation_permission_context.cc b/chrome/browser/geolocation/chrome_geolocation_permission_context.cc
index 9b3bd604114d9fe8cede4474e36259cf7cb297d7..8b8a4556ab2ff2194a3c6000fd14192e207545d4 100644
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context.cc
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.cc
@@ -517,7 +517,7 @@ void ChromeGeolocationPermissionContext::RequestGeolocationPermission(
const Extension* ext = extensions->GetExtensionByURL(requesting_frame);
if (!ext)
ext = extensions->GetExtensionByWebExtent(requesting_frame);
- if (ext && ext->HasApiPermission(Extension::kGeolocationPermission)) {
+ if (ext && ext->HasAPIPermission(ExtensionAPIPermission::kGeolocation)) {
ExtensionProcessManager* epm = profile_->GetExtensionProcessManager();
RenderProcessHost* process = epm->GetExtensionProcess(requesting_frame);
if (process && process->id() == render_process_id) {
« no previous file with comments | « chrome/browser/extensions/extension_tabs_module.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698