| 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 fba08a89eafa023f455a41c220ff718af3a046f9..3a8675d33886ca41f2f497abd5e3b5cdc8766553 100644
|
| --- a/chrome/browser/geolocation/geolocation_infobar_delegate.cc
|
| +++ b/chrome/browser/geolocation/geolocation_infobar_delegate.cc
|
| @@ -106,11 +106,10 @@ bool GeolocationInfoBarDelegate::Accept() {
|
|
|
| void GeolocationInfoBarDelegate::SetPermission(bool update_content_setting,
|
| bool allowed) {
|
| - if (web_contents()) {
|
| - GURL embedder = web_contents()->GetLastCommittedURL().GetOrigin();
|
| - controller_->OnPermissionSet(id_, requesting_frame_, embedder,
|
| - update_content_setting, allowed);
|
| - }
|
| + controller_->OnPermissionSet(
|
| + id_, requesting_frame_,
|
| + web_contents()->GetLastCommittedURL().GetOrigin(),
|
| + update_content_setting, allowed);
|
| }
|
|
|
| void GeolocationInfoBarDelegate::InfoBarDismissed() {
|
|
|