Chromium Code Reviews| Index: chrome/browser/geolocation/geolocation_permission_context.cc |
| diff --git a/chrome/browser/geolocation/geolocation_permission_context.cc b/chrome/browser/geolocation/geolocation_permission_context.cc |
| index dd4f7942bc66685a302393a52cc11f6cde2db071..5e388fa9262bec69499bf11ff956251aae266255 100644 |
| --- a/chrome/browser/geolocation/geolocation_permission_context.cc |
| +++ b/chrome/browser/geolocation/geolocation_permission_context.cc |
| @@ -201,9 +201,12 @@ void GeolocationPermissionContext::DecidePermission( |
| DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
| ContentSetting content_setting = |
| - profile_->GetHostContentSettingsMap()->GetContentSetting( |
| - requesting_frame, embedder, CONTENT_SETTINGS_TYPE_GEOLOCATION, |
| - std::string()); |
| + profile_->GetHostContentSettingsMap() |
| + ->GetContentSettingAndMaybeUpdateLastUsage( |
|
Michael van Ouwerkerk
2014/07/01 11:02:23
This doesn't make sense to me. If permission has a
Daniel Nishi
2014/07/01 18:37:48
This location only tracks if permission is asked f
Michael van Ouwerkerk
2014/07/02 18:51:15
Cool, thanks.
|
| + requesting_frame, |
| + embedder, |
| + CONTENT_SETTINGS_TYPE_GEOLOCATION, |
| + std::string()); |
| switch (content_setting) { |
| case CONTENT_SETTING_BLOCK: |
| PermissionDecided(id, requesting_frame, embedder, callback, false); |