diff options
author | dhnishi@chromium.org <dhnishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 22:30:20 +0000 |
---|---|---|
committer | dhnishi@chromium.org <dhnishi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-17 22:30:20 +0000 |
commit | bfcf45666488555a142ba159c1557b62f8b886a5 (patch) | |
tree | 0cd0d027090b56057091b4b6eff33d3eaa046cb5 /content/browser/geolocation | |
parent | f313245afd6b6568fc7456c8ee71d4dd187f8214 (diff) | |
download | chromium_src-bfcf45666488555a142ba159c1557b62f8b886a5.zip chromium_src-bfcf45666488555a142ba159c1557b62f8b886a5.tar.gz chromium_src-bfcf45666488555a142ba159c1557b62f8b886a5.tar.bz2 |
Audit the last time the Geolocation and Notification content settings
have been used.
This will be used as part of a resource/permission manager which will allow users to more easily see and modify which permissions are being granted to which websites.
Design Doc: https://docs.google.com/document/d/1oQwmj3AU4QYhTyGrYEGr6zaZhHUfx-wqUgEcQGbUU-U/edit?usp=sharing
BUG=372607
Review URL: https://codereview.chromium.org/356543003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283909 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/geolocation')
-rw-r--r-- | content/browser/geolocation/geolocation_dispatcher_host.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/content/browser/geolocation/geolocation_dispatcher_host.cc b/content/browser/geolocation/geolocation_dispatcher_host.cc index ad1f2fc..75abab5 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* top_frame = i->first; + while (top_frame->GetParent()) { + top_frame = top_frame->GetParent(); + } + GetContentClient()->browser()->DidUseGeolocationPermission( + web_contents(), + i->first->GetLastCommittedURL().GetOrigin(), + top_frame->GetLastCommittedURL().GetOrigin()); + i->first->Send(new GeolocationMsg_PositionUpdated( i->first->GetRoutingID(), geoposition)); } |