Chromium Code Reviews| Index: content/renderer/geolocation_dispatcher.cc |
| diff --git a/content/renderer/geolocation_dispatcher.cc b/content/renderer/geolocation_dispatcher.cc |
| index a764b6107e2aa8fed1d33f4c8d5b016f62b6ccdf..7b48ca5da9b2e62196948385e7aa0f8ca55d4807 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())); |
|
palmer
2014/03/28 00:35:05
The trouble is, we can't trust renderers to tell t
Greg Billock
2014/03/28 15:52:52
I agree, but the failure mode here is "user shown
|
| } |
| // TODO(jknotten): Change the messages to use a security origin, so no |