Index: chrome/browser/geolocation/geolocation_infobar_delegate.cc |
diff --git a/chrome/browser/geolocation/geolocation_infobar_delegate.cc b/chrome/browser/geolocation/geolocation_infobar_delegate.cc |
index 0d1e5aa8a63d2655dbc6db48bf58da1a7add66b9..852e9227bf472aea7c2ee17a2a497028bbf7e0e3 100644 |
--- a/chrome/browser/geolocation/geolocation_infobar_delegate.cc |
+++ b/chrome/browser/geolocation/geolocation_infobar_delegate.cc |
@@ -65,8 +65,8 @@ bool GeolocationInfoBarDelegate::Accept() { |
void GeolocationInfoBarDelegate::SetPermission(bool update_content_setting, |
bool allowed) { |
if (web_contents()) { |
- controller_->OnPermissionSet(id_, requesting_frame_, |
- web_contents()->GetURL(), |
+ GURL embedder = web_contents()->GetLastCommittedURL().GetOrigin(); |
+ controller_->OnPermissionSet(id_, requesting_frame_, embedder, |
update_content_setting, allowed); |
} |
} |