summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-22 10:00:58 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-22 10:00:58 +0000
commit46ba9087f6fe10e5d9ce94cd84b2311ac264f423 (patch)
tree0a2916bdb5a204124017e78a4d6f8cf0e35707ec /chrome/browser/geolocation
parentf31208dd5a80964dc4724f95efb5b50ec3026cae (diff)
downloadchromium_src-46ba9087f6fe10e5d9ce94cd84b2311ac264f423.zip
chromium_src-46ba9087f6fe10e5d9ce94cd84b2311ac264f423.tar.gz
chromium_src-46ba9087f6fe10e5d9ce94cd84b2311ac264f423.tar.bz2
Move content settings related events into their own delegate.
This will allow for implementing content settings related handlers outside of the tab contents object. BUG=45230 TEST=none Review URL: http://codereview.chromium.org/2870015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50440 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/geolocation')
-rw-r--r--chrome/browser/geolocation/geolocation_permission_context.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/geolocation/geolocation_permission_context.cc b/chrome/browser/geolocation/geolocation_permission_context.cc
index c88b659..ebd59b5 100644
--- a/chrome/browser/geolocation/geolocation_permission_context.cc
+++ b/chrome/browser/geolocation/geolocation_permission_context.cc
@@ -426,11 +426,12 @@ void GeolocationPermissionContext::NotifyPermissionSet(
const GURL& requesting_frame, bool allowed) {
DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
- RenderViewHostDelegate::Resource* resource =
+ RenderViewHostDelegate::ContentSettings* content_settings =
tab_util::GetTabContentsByID(render_process_id, render_view_id);
// TabContents may have gone away (or not exists for extension).
- if (resource)
- resource->OnGeolocationPermissionSet(requesting_frame.GetOrigin(), allowed);
+ if (content_settings)
+ content_settings->OnGeolocationPermissionSet(requesting_frame.GetOrigin(),
+ allowed);
CallRenderViewHost(
render_process_id, render_view_id,