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 4be6d372d68490c9fe7e1bf90a8eca2397f371c9..ba75496c5026d7c4f319bc65a8200ee23b4a4737 100644 |
--- a/chrome/browser/geolocation/chrome_geolocation_permission_context.cc |
+++ b/chrome/browser/geolocation/chrome_geolocation_permission_context.cc |
@@ -551,14 +551,13 @@ void ChromeGeolocationPermissionContext::RequestGeolocationPermission( |
} |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- ExtensionService* extensions = profile_->GetExtensionService(); |
- if (extensions) { |
- const Extension* ext = extensions->GetExtensionByURL(requesting_frame); |
- if (!ext) |
- ext = extensions->GetExtensionByWebExtent(requesting_frame); |
+ ExtensionService* ext_service = profile_->GetExtensionService(); |
+ if (ext_service) { |
+ const Extension* ext = |
+ ext_service->extensions()->GetByURL(ExtensionURLInfo(requesting_frame)); |
abarth-chromium
2011/12/07 23:51:44
This one probably needs a SecurityOrigin too. San
Yoyo Zhou
2011/12/08 01:04:51
Looks like this one is changing a security origin
|
if (ext && ext->HasAPIPermission(ExtensionAPIPermission::kGeolocation)) { |
// Make sure the extension is in the calling process. |
- if (extensions->process_map()->Contains(ext->id(), render_process_id)) { |
+ if (ext_service->process_map()->Contains(ext->id(), render_process_id)) { |
NotifyPermissionSet(render_process_id, render_view_id, bridge_id, |
requesting_frame, callback, true); |
return; |