Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1305)

Unified Diff: content/browser/geolocation/geolocation_dispatcher_host.cc

Issue 10107017: Remove requesting_frame parameters from Geolocation stack (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comment addressed. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/geolocation/geolocation_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63d809924d3d402a7fb9f9fdaa5a619f2062218f..5ee8af057958799febaad6be02a0f0d58c5e8104 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.cc
+++ b/content/browser/geolocation/geolocation_dispatcher_host.cc
@@ -23,15 +23,15 @@ using content::RenderViewHostImpl;
namespace {
-void NotifyArbitratorPermissionGranted(
- const GURL& requesting_frame) {
+void NotifyArbitratorPermissionGranted() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
- GeolocationProvider::GetInstance()->OnPermissionGranted(requesting_frame);
+ GeolocationProvider::GetInstance()->OnPermissionGranted();
}
-void SendGeolocationPermissionResponse(
- const GURL& requesting_frame, int render_process_id, int render_view_id,
- int bridge_id, bool allowed) {
+void SendGeolocationPermissionResponse(int render_process_id,
+ int render_view_id,
+ int bridge_id,
+ bool allowed) {
RenderViewHostImpl* r = RenderViewHostImpl::FromID(
render_process_id, render_view_id);
if (!r)
@@ -41,7 +41,7 @@ void SendGeolocationPermissionResponse(
if (allowed) {
BrowserThread::PostTask(
BrowserThread::IO, FROM_HERE,
- base::Bind(&NotifyArbitratorPermissionGranted, requesting_frame));
+ base::Bind(&NotifyArbitratorPermissionGranted));
}
}
@@ -144,7 +144,7 @@ void GeolocationDispatcherHostImpl::OnRequestPermission(
render_process_id_, render_view_id, bridge_id,
requesting_frame,
base::Bind(
- &SendGeolocationPermissionResponse, requesting_frame,
+ &SendGeolocationPermissionResponse,
render_process_id_, render_view_id, bridge_id));
}
« no previous file with comments | « no previous file | content/browser/geolocation/geolocation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698