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

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: Patch android Created 6 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 | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/common/geolocation_messages.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 0efa457b40d87d8bfa6beec2f81e8f77c365e90b..9502382bd991be2310a490399f42a72035f074da 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.cc
+++ b/content/browser/geolocation/geolocation_dispatcher_host.cc
@@ -103,7 +103,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);
@@ -203,7 +204,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;
@@ -213,6 +215,7 @@ void GeolocationDispatcherHostImpl::OnRequestPermission(
render_view_id,
bridge_id,
requesting_frame,
+ user_gesture,
base::Bind(&SendGeolocationPermissionResponse,
render_process_id_,
render_view_id,
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/common/geolocation_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698