diff options
author | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 13:26:25 +0000 |
---|---|---|
committer | gbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-10 13:26:25 +0000 |
commit | 0e1886438d1e5aeb04b6c88014aeabf57452da64 (patch) | |
tree | 12ce362eb1db7def73237df09a7b27ecd6e19438 /content/renderer/geolocation_dispatcher.cc | |
parent | 64768d482ab8f9ce4da37ec413d5821d0ff1ba37 (diff) | |
download | chromium_src-0e1886438d1e5aeb04b6c88014aeabf57452da64.zip chromium_src-0e1886438d1e5aeb04b6c88014aeabf57452da64.tar.gz chromium_src-0e1886438d1e5aeb04b6c88014aeabf57452da64.tar.bz2 |
[Geolocation] Attach user gesture indicator to permission request call.
This enables permissions bubble policies that rely on user gesture signals for deciding when/how to show bubble UI for permission requests.
BUG=332115
Review URL: https://codereview.chromium.org/185813004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/geolocation_dispatcher.cc')
-rw-r--r-- | content/renderer/geolocation_dispatcher.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/renderer/geolocation_dispatcher.cc b/content/renderer/geolocation_dispatcher.cc index a764b61..7b48ca5 100644 --- a/content/renderer/geolocation_dispatcher.cc +++ b/content/renderer/geolocation_dispatcher.cc @@ -12,6 +12,7 @@ #include "third_party/WebKit/public/web/WebGeolocationClient.h" #include "third_party/WebKit/public/web/WebGeolocationPosition.h" #include "third_party/WebKit/public/web/WebGeolocationError.h" +#include "third_party/WebKit/public/web/WebUserGestureIndicator.h" using blink::WebGeolocationController; using blink::WebGeolocationError; @@ -89,7 +90,8 @@ void GeolocationDispatcher::requestPermission( int bridge_id = pending_permissions_->add(permissionRequest); base::string16 origin = permissionRequest.securityOrigin().toString(); Send(new GeolocationHostMsg_RequestPermission( - routing_id(), bridge_id, GURL(origin))); + routing_id(), bridge_id, GURL(origin), + blink::WebUserGestureIndicator::isProcessingUserGesture())); } // TODO(jknotten): Change the messages to use a security origin, so no |