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

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

Issue 185813004: [Geolocation] Attach user gesture indicator to permission request call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: plumb through Created 6 years, 9 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
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 edb2692f36f232894ace3e678a8a17d9ec4c43d8..ceb71d97d49e11dac1d2bd3f89a692998a339c93 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.cc
+++ b/content/browser/geolocation/geolocation_dispatcher_host.cc
@@ -60,7 +60,8 @@ class GeolocationDispatcherHostImpl : public GeolocationDispatcherHost {
void OnRequestPermission(int render_view_id,
int bridge_id,
- const GURL& requesting_frame);
+ const GURL& requesting_frame,
+ bool user_gesture);
void OnCancelPermissionRequest(int render_view_id,
int bridge_id,
const GURL& requesting_frame);
@@ -159,7 +160,8 @@ void GeolocationDispatcherHostImpl::OnLocationUpdate(
void GeolocationDispatcherHostImpl::OnRequestPermission(
int render_view_id,
int bridge_id,
- const GURL& requesting_frame) {
+ const GURL& requesting_frame,
+ bool user_gesture) {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
DVLOG(1) << __FUNCTION__ << " " << render_process_id_ << ":"
<< render_view_id << ":" << bridge_id;
@@ -169,6 +171,7 @@ void GeolocationDispatcherHostImpl::OnRequestPermission(
render_view_id,
bridge_id,
requesting_frame,
+ user_gesture,
base::Bind(&SendGeolocationPermissionResponse,
render_process_id_,
render_view_id,

Powered by Google App Engine
This is Rietveld 408576698