Chromium Code Reviews| Index: content/browser/geolocation/geolocation_dispatcher_host.cc |
| diff --git a/content/browser/geolocation/geolocation_dispatcher_host.cc b/content/browser/geolocation/geolocation_dispatcher_host.cc |
| index ad1f2fcc4441f138726f67d6f0e8e049302e5962..e6a560b30011060f309b9584e2104a5286b8568e 100644 |
| --- a/content/browser/geolocation/geolocation_dispatcher_host.cc |
| +++ b/content/browser/geolocation/geolocation_dispatcher_host.cc |
| @@ -130,6 +130,15 @@ void GeolocationDispatcherHost::OnLocationUpdate( |
| for (std::map<RenderFrameHost*, bool>::iterator i = updating_frames_.begin(); |
| i != updating_frames_.end(); ++i) { |
| + RenderFrameHost* topFrame = i->first; |
|
jam
2014/07/14 18:20:53
nit: top_frame per style guide
Daniel Nishi
2014/07/14 22:25:05
Done.
|
| + while (topFrame->GetParent()) { |
| + topFrame = topFrame->GetParent(); |
| + } |
| + GetContentClient()->browser()->DidUseGeolocationPermission( |
| + web_contents(), |
| + i->first->GetLastCommittedURL().GetOrigin(), |
| + topFrame->GetLastCommittedURL().GetOrigin()); |
| + |
| i->first->Send(new GeolocationMsg_PositionUpdated( |
| i->first->GetRoutingID(), geoposition)); |
| } |